Magboot Shuttlerides Redux (#11290)

This commit is contained in:
Geeves
2021-03-02 00:43:09 +02:00
committed by GitHub
parent 062f3a855a
commit 4951dd3a67
2 changed files with 21 additions and 11 deletions
+15 -11
View File
@@ -192,18 +192,22 @@
if(istype(TA, ceiling_type))
TA.ChangeTurf(get_base_turf_by_area(TA), 1, 1)
if(knockdown)
for(var/mob/M in A)
for(var/mob/living/carbon/M in A)
spawn(0)
if(istype(M, /mob/living/carbon))
if(M.buckled_to)
to_chat(M, "<span class='warning'>Sudden acceleration presses you into your chair!</span>")
shake_camera(M, 3, 1)
else
to_chat(M, "<span class='warning'>The floor lurches beneath you!</span>")
shake_camera(M, 10, 1)
M.visible_message("<span class='warning'>[M.name] is tossed around by the sudden acceleration!</span>")
M.throw_at_random(FALSE, 4, 1)
M.Weaken(3)
if(M.buckled_to)
to_chat(M, "<span class='warning'>Sudden acceleration presses you into your chair!</span>")
shake_camera(M, 3, 1)
else if(M.Check_Shoegrip(FALSE))
to_chat(M, SPAN_WARNING("You feel immense pressure in your feet as you cling to the floor!"))
M.apply_damage(10, PAIN, BP_L_FOOT)
M.apply_damage(10, PAIN, BP_R_FOOT)
shake_camera(M, 5, 1)
else
to_chat(M, "<span class='warning'>The floor lurches beneath you!</span>")
shake_camera(M, 10, 1)
M.visible_message("<span class='warning'>[M.name] is tossed around by the sudden acceleration!</span>")
M.throw_at_random(FALSE, 4, 1)
M.Weaken(3)
for(var/obj/structure/cable/C in A)
powernets |= C.powernet
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- rscadd: "Magboots now prevent you from being thrown about during shuttle rides."