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
+5
View File
@@ -80,6 +80,11 @@ var/list/flooring_types
icon_base = "snowyplating"
flags = null
/decl/flooring/snow/ice
name = "ice"
desc = "Looks slippery."
icon_base = "ice"
/decl/flooring/snow/plating/drift
icon_base = "snowyplayingdrift"
+14 -1
View File
@@ -40,4 +40,17 @@
var/obj/S = new /obj/item/stack/material/snow(user.loc)
user.put_in_hands(S)
visible_message("[user] scoops up a pile of snow.", "You scoop up a pile of snow.")
return
return
/turf/simulated/floor/outdoors/ice
name = "ice"
icon_state = "ice"
desc = "Looks slippery."
/turf/simulated/floor/outdoors/ice/Entered(var/mob/living/M)
sleep(1 * world.tick_lag)
if(istype(M, /mob/living))
if(M.stunned == 0)
to_chat(M, "<span class='warning'>You slide across the ice!</span>")
M.SetStunned(2)
step(M,M.dir)
+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)