mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Cleans up slipping code
Puts slipping into one proc rather than being dealt with individually by each item. The only changes to functionality here are where it would have been possible to slip on some items whilst flying. It will make any changes decided on in #3490 or any future changes far more easy to implement
This commit is contained in:
@@ -985,16 +985,8 @@ steam.start() -- spawns the effect
|
||||
return
|
||||
|
||||
if (istype(AM, /mob/living/carbon))
|
||||
var/mob/M = AM
|
||||
if (istype(M, /mob/living/carbon/human) && (istype(M:shoes, /obj/item/clothing/shoes) && M:shoes.flags&NOSLIP) || M.buckled)
|
||||
return
|
||||
if (istype (M, /mob/living/carbon/human) && M:species.bodyflags & FEET_NOSLIP)
|
||||
return
|
||||
M.stop_pulling()
|
||||
M << "\blue You slipped on the foam!"
|
||||
playsound(src.loc, 'sound/misc/slip.ogg', 50, 1, -3)
|
||||
M.Stun(5)
|
||||
M.Weaken(2)
|
||||
var/mob/living/carbon/M = AM
|
||||
M.slip("foam", 5, 2)
|
||||
|
||||
|
||||
/datum/effect/system/foam_spread
|
||||
|
||||
Reference in New Issue
Block a user