mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 02:12:14 +00:00
Merge pull request #678 from Citadel-Station-13/upstream-merge-26663
[MIRROR] Buffs jump boot dash speed
This commit is contained in:
@@ -178,6 +178,7 @@
|
|||||||
pockets = /obj/item/weapon/storage/internal/pocket/shoes
|
pockets = /obj/item/weapon/storage/internal/pocket/shoes
|
||||||
actions_types = list(/datum/action/item_action/bhop)
|
actions_types = list(/datum/action/item_action/bhop)
|
||||||
var/jumpdistance = 5 //-1 from to see the actual distance, e.g 4 goes over 3 tiles
|
var/jumpdistance = 5 //-1 from to see the actual distance, e.g 4 goes over 3 tiles
|
||||||
|
var/jumpspeed = 3
|
||||||
var/recharging_rate = 60 //default 6 seconds between each dash
|
var/recharging_rate = 60 //default 6 seconds between each dash
|
||||||
var/recharging_time = 0 //time until next dash
|
var/recharging_time = 0 //time until next dash
|
||||||
var/jumping = FALSE //are we mid-jump?
|
var/jumping = FALSE //are we mid-jump?
|
||||||
@@ -198,7 +199,7 @@
|
|||||||
jumping = TRUE
|
jumping = TRUE
|
||||||
playsound(src.loc, 'sound/effects/stealthoff.ogg', 50, 1, 1)
|
playsound(src.loc, 'sound/effects/stealthoff.ogg', 50, 1, 1)
|
||||||
usr.visible_message("<span class='warning'>[usr] dashes foward into the air!</span>")
|
usr.visible_message("<span class='warning'>[usr] dashes foward into the air!</span>")
|
||||||
usr.throw_at(target, jumpdistance, 1, spin=0, diagonals_first = 1, callback = CALLBACK(src, .proc/hop_end))
|
usr.throw_at(target, jumpdistance, jumpspeed, spin=0, diagonals_first = 1, callback = CALLBACK(src, .proc/hop_end))
|
||||||
|
|
||||||
/obj/item/clothing/shoes/bhop/proc/hop_end()
|
/obj/item/clothing/shoes/bhop/proc/hop_end()
|
||||||
jumping = FALSE
|
jumping = FALSE
|
||||||
@@ -214,4 +215,4 @@
|
|||||||
name = "blue performer's boots"
|
name = "blue performer's boots"
|
||||||
desc = "These boots were made for dancing."
|
desc = "These boots were made for dancing."
|
||||||
icon_state = "bsing"
|
icon_state = "bsing"
|
||||||
put_on_delay = 50
|
put_on_delay = 50
|
||||||
|
|||||||
Reference in New Issue
Block a user