Removes Bluespace Tile Speed, Replaces It With Anti-Slowdown (#22271)

* the start

* gear slowdown time

* nicer check

* trait time!

* dimach + henri review

* contra review

* sean review
This commit is contained in:
matttheficus
2023-10-01 12:41:09 -04:00
committed by GitHub
parent 53c3e893c2
commit 9d0c74b687
4 changed files with 33 additions and 17 deletions
@@ -290,20 +290,22 @@
ADD_SLOWDOWN(speed_mod)
if(H.wear_suit)
ADD_SLOWDOWN(H.wear_suit.slowdown)
if(H.head)
ADD_SLOWDOWN(H.head.slowdown)
if(H.gloves)
ADD_SLOWDOWN(H.gloves.slowdown)
if(!H.buckled && H.shoes)
ADD_SLOWDOWN(H.shoes.slowdown)
if(H.back)
ADD_SLOWDOWN(H.back.slowdown)
if(H.l_hand && (H.l_hand.flags & HANDSLOW))
ADD_SLOWDOWN(H.l_hand.slowdown)
if(H.r_hand && (H.r_hand.flags & HANDSLOW))
ADD_SLOWDOWN(H.r_hand.slowdown)
var/turf/simulated/floor/T = get_turf(H)
if(istype(T) && !HAS_TRAIT(T, TRAIT_BLUESPACE_SPEED))
if(H.wear_suit)
ADD_SLOWDOWN(H.wear_suit.slowdown)
if(H.head)
ADD_SLOWDOWN(H.head.slowdown)
if(H.gloves)
ADD_SLOWDOWN(H.gloves.slowdown)
if(!H.buckled && H.shoes)
ADD_SLOWDOWN(H.shoes.slowdown)
if(H.back)
ADD_SLOWDOWN(H.back.slowdown)
if(H.l_hand && (H.l_hand.flags & HANDSLOW))
ADD_SLOWDOWN(H.l_hand.slowdown)
if(H.r_hand && (H.r_hand.flags & HANDSLOW))
ADD_SLOWDOWN(H.r_hand.slowdown)
if(ignoreslow)
return . // Only malusses after here
@@ -574,7 +574,7 @@
/obj/item/stack/tile/bluespace
name = "bluespace floor tile"
singular_name = "floor tile"
desc = "Through a series of micro-teleports, these tiles let people move at incredible speeds."
desc = "Through a series of micro-teleports, these tiles allow you to move things that would otherwise slow you down."
icon_state = "tile-bluespace"
w_class = WEIGHT_CLASS_NORMAL
force = 6
@@ -588,11 +588,14 @@
/turf/simulated/floor/bluespace
slowdown = -1
icon_state = "bluespace"
desc = "Through a series of micro-teleports, these tiles let people move at incredible speeds."
desc = "Through a series of micro-teleports, these tiles allow you to move things that would otherwise slow you down."
floor_tile = /obj/item/stack/tile/bluespace
/turf/simulated/floor/bluespace/Initialize(mapload)
. = ..()
ADD_TRAIT(src, TRAIT_BLUESPACE_SPEED, FLOOR_EFFECT_TRAIT)
/obj/item/stack/tile/sepia
name = "sepia floor tile"