mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Adds Jump Boots (#19436)
* i surf professionally * stuff changes * buff, upgrades, and some other things * action button desc update * >burn_state = true * rip larva * fak
This commit is contained in:
@@ -161,3 +161,36 @@
|
||||
icon_state = "griffinboots"
|
||||
item_state = "griffinboots"
|
||||
pockets = /obj/item/weapon/storage/internal/pocket/shoes
|
||||
|
||||
/obj/item/clothing/shoes/bhop
|
||||
name = "jump boots"
|
||||
desc = "A specialized pair of combat boots with a built-in propulsion system for rapid foward movement."
|
||||
icon_state = "jetboots"
|
||||
item_state = "jackboots"
|
||||
item_color = "hosred"
|
||||
burn_state = FIRE_PROOF
|
||||
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/recharging_rate = 60 //default 6 seconds between each dash
|
||||
var/recharging_time = 0 //time until next dash
|
||||
var/jumping = FALSE //are we mid-jump?
|
||||
|
||||
/obj/item/clothing/shoes/bhop/ui_action_click(mob/user, actiontype)
|
||||
if(!isliving(usr))
|
||||
return
|
||||
|
||||
if(jumping)
|
||||
return
|
||||
|
||||
if(recharging_time > world.time)
|
||||
usr << "<span class='warning'>The boot's internal propulsion needs to recharge still!</span>"
|
||||
return
|
||||
|
||||
var/atom/target = get_edge_target_turf(usr, usr.dir) //gets the user's direction
|
||||
|
||||
jumping = TRUE
|
||||
playsound(src.loc, 'sound/effects/stealthoff.ogg', 50, 1, 1)
|
||||
usr.visible_message("<span class='warning'>[usr] dashes foward into the air!</span>")
|
||||
usr.throw_at(target,jumpdistance,1, spin=0, diagonals_first = 1)
|
||||
jumping = FALSE
|
||||
recharging_time = world.time + recharging_rate
|
||||
@@ -459,4 +459,4 @@
|
||||
|
||||
C.preserved()
|
||||
user << "<span class='notice'>You inject the [M] with the stabilizer. It will no longer go inert.</span>"
|
||||
qdel(src)
|
||||
qdel(src)
|
||||
@@ -45,6 +45,7 @@
|
||||
new /datum/data/mining_equipment("Drone Health Upgrade",/obj/item/device/mine_bot_ugprade/health, 400),
|
||||
new /datum/data/mining_equipment("Drone Ranged Upgrade",/obj/item/device/mine_bot_ugprade/cooldown, 600),
|
||||
new /datum/data/mining_equipment("Drone AI Upgrade", /obj/item/slimepotion/sentience/mining, 1000),
|
||||
new /datum/data/mining_equipment("Jump Boots", /obj/item/clothing/shoes/bhop, 2500),
|
||||
)
|
||||
|
||||
/datum/data/mining_equipment/
|
||||
|
||||
Reference in New Issue
Block a user