adds slippery ice tiles (#4935)

This commit is contained in:
BillyBangles
2018-02-24 11:04:58 -06:00
committed by Anewbe
parent 4e9aaf230c
commit 475d250d6a
4 changed files with 23 additions and 2 deletions
+4 -1
View File
@@ -768,16 +768,19 @@
if(status_flags & CANSTUN)
facing_dir = null
stunned = max(max(stunned,amount),0) //can't go below 0, getting a low amount of stun doesn't lower your current stun
update_canmove() //updates lying, canmove and icons
return
/mob/proc/SetStunned(amount) //if you REALLY need to set stun to a set amount without the whole "can't go below current stunned"
if(status_flags & CANSTUN)
stunned = max(amount,0)
update_canmove() //updates lying, canmove and icons
return
/mob/proc/AdjustStunned(amount)
if(status_flags & CANSTUN)
stunned = max(stunned + amount,0)
update_canmove() //updates lying, canmove and icons
return
/mob/proc/Weaken(amount)
@@ -790,7 +793,7 @@
/mob/proc/SetWeakened(amount)
if(status_flags & CANWEAKEN)
weakened = max(amount,0)
update_canmove() //updates lying, canmove and icons
update_canmove() //can you guess what this does yet?
return
/mob/proc/AdjustWeakened(amount)