[s] Fixes a thing (#27254)

* Fixes flight

* This slightly annoys me

---------

Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
This commit is contained in:
Chap
2024-11-01 16:06:14 +01:00
committed by GitHub
parent 6a28cfa30b
commit 63d3ebf7bd
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -341,11 +341,12 @@
return
var/atom/target = get_edge_target_turf(user, user.dir) //gets the user's direction
ADD_TRAIT(user, TRAIT_FLYING, "gravity_boots")
if(user.throw_at(target, jumpdistance, jumpspeed, spin = FALSE, diagonals_first = TRUE, callback = CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(callback_remove_trait), user, TRAIT_FLYING, "gravity_boots")))
ADD_TRAIT(user, TRAIT_FLYING, "gravity_boots")
playsound(src, 'sound/effects/stealthoff.ogg', 50, TRUE, 1)
user.visible_message("<span class='warning'>[usr] dashes forward into the air!</span>")
recharging_time = world.time + recharging_rate
cell.use(dash_cost)
else
REMOVE_TRAIT(user, TRAIT_FLYING, "gravity_boots")
to_chat(user, "<span class='warning'>Something prevents you from dashing forward!</span>")
+2 -1
View File
@@ -472,12 +472,13 @@
return
var/atom/target = get_edge_target_turf(user, user.dir) //gets the user's direction
ADD_TRAIT(user, TRAIT_FLYING, "bhop_shoes")
if(user.throw_at(target, jumpdistance, jumpspeed, spin = FALSE, diagonals_first = TRUE, callback = CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(callback_remove_trait), user, TRAIT_FLYING, "bhop_shoes")))
ADD_TRAIT(user, TRAIT_FLYING, "bhop_shoes")
playsound(src, 'sound/effects/stealthoff.ogg', 50, TRUE, 1)
user.visible_message("<span class='warning'>[usr] dashes forward into the air!</span>")
recharging_time = world.time + recharging_rate
else
REMOVE_TRAIT(user, TRAIT_FLYING, "bhop_shoes")
to_chat(user, "<span class='warning'>Something prevents you from dashing forward!</span>")
/obj/item/clothing/shoes/ducky