mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-24 09:03:05 +00:00
North solars expanded slightly Cargo can now order engine parts Power computer wont update every second so you can actually use the thing now Rotate verb for the emitters and Particle Accelerator Solar tracker does not use "in world" anymore git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1013 316c924e-a436-60f5-8080-3fe189b3f50e
71 lines
1.2 KiB
Plaintext
71 lines
1.2 KiB
Plaintext
/obj/accelerated_particle
|
|
name = "Accelerated Particles"
|
|
desc = "Small things moving very fast."
|
|
icon = 'particle_accelerator.dmi'
|
|
icon_state = "particle"//Need a new icon for this
|
|
anchored = 1
|
|
density = 1
|
|
var
|
|
movement_range = 10
|
|
energy = 10
|
|
|
|
weak
|
|
movement_range = 8
|
|
energy = 5
|
|
|
|
strong
|
|
movement_range = 15
|
|
energy = 15
|
|
|
|
|
|
New(loc, dir = 2)
|
|
src.loc = loc
|
|
src.dir = dir
|
|
if(movement_range > 20)
|
|
movement_range = 20
|
|
spawn(0)
|
|
move(1)
|
|
return
|
|
|
|
|
|
Bump(atom/A)
|
|
if (A)
|
|
if(ismob(A))
|
|
toxmob(A)
|
|
if((istype(A,/obj/machinery/the_singularitygen))||(istype(A,/obj/machinery/singularity/)))
|
|
A:energy += energy
|
|
return
|
|
|
|
|
|
Bumped(atom/A)
|
|
if(ismob(A))
|
|
Bump(A)
|
|
return
|
|
|
|
|
|
ex_act(severity)
|
|
del(src)
|
|
return
|
|
|
|
|
|
proc
|
|
toxmob(var/mob/M)
|
|
var/radiation = (energy*2)
|
|
if(istype(M,/mob/living/carbon/human))
|
|
if(M:wear_suit) //TODO: check for radiation protection
|
|
radiation = round(radiation/2,1)
|
|
M.radiation += radiation
|
|
M.updatehealth()
|
|
//M << "\red You feel odd."
|
|
return
|
|
|
|
|
|
move(var/lag)
|
|
if(!step(src,dir))
|
|
src.loc = get_step(src,dir)
|
|
movement_range--
|
|
if(movement_range <= 0)
|
|
del(src)
|
|
else
|
|
sleep(lag)
|
|
move(lag) |