mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Created a global list to track base turfs for explosions/shuttle moves. Remaps the asteroid to be a moonlet. Tidies up some references to 'asteroid', removes moonbase from the accessible z level list.
37 lines
897 B
Plaintext
37 lines
897 B
Plaintext
/turf/simulated/floor/engine/attack_hand(var/mob/user as mob)
|
|
if ((!( user.canmove ) || user.restrained() || !( user.pulling )))
|
|
return
|
|
if (user.pulling.anchored)
|
|
return
|
|
if ((user.pulling.loc != user.loc && get_dist(user, user.pulling) > 1))
|
|
return
|
|
if (ismob(user.pulling))
|
|
var/mob/M = user.pulling
|
|
var/atom/movable/t = M.pulling
|
|
M.stop_pulling()
|
|
step(user.pulling, get_dir(user.pulling.loc, src))
|
|
M.start_pulling(t)
|
|
else
|
|
step(user.pulling, get_dir(user.pulling.loc, src))
|
|
return
|
|
|
|
/turf/simulated/floor/engine/ex_act(severity)
|
|
switch(severity)
|
|
if(1.0)
|
|
ChangeTurf(get_base_turf(src.z))
|
|
qdel(src)
|
|
return
|
|
if(2.0)
|
|
if (prob(50))
|
|
ChangeTurf(get_base_turf(src.z))
|
|
qdel(src)
|
|
return
|
|
else
|
|
return
|
|
|
|
/turf/simulated/floor/engine/blob_act()
|
|
if (prob(25))
|
|
ChangeTurf(get_base_turf(src.z))
|
|
qdel(src)
|
|
return
|
|
return |