mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-07-14 09:12:32 +01:00
@@ -333,6 +333,7 @@ GLOBAL_LIST_INIT(cloth_recipes, list ( \
|
||||
new/datum/stack_recipe("black shoes", /obj/item/clothing/shoes/sneakers/black, 2), \
|
||||
new/datum/stack_recipe("cloth footwraps", /obj/item/clothing/shoes/footwraps, 2), \
|
||||
new/datum/stack_recipe("tunic", /obj/item/clothing/under/tunic, 3), \
|
||||
new/datum/stack_recipe("bathrobe", /obj/item/clothing/suit/bathrobe, 3), \
|
||||
null, \
|
||||
new/datum/stack_recipe("backpack", /obj/item/storage/backpack, 4), \
|
||||
new/datum/stack_recipe("duffel bag", /obj/item/storage/backpack/duffelbag, 6), \
|
||||
|
||||
@@ -150,6 +150,53 @@
|
||||
/obj/structure/fence/door/proc/can_open(mob/user)
|
||||
return TRUE
|
||||
|
||||
//HANDRAIL - Ported from Dymouth Gulch
|
||||
|
||||
/obj/structure/fence/handrail
|
||||
name = "handrail"
|
||||
desc = "A waist high handrail, perhaps you could climb over it."
|
||||
icon_state = "handrail"
|
||||
cuttable = FALSE
|
||||
climbable = TRUE
|
||||
max_integrity = 100
|
||||
var/health = 70
|
||||
var/maxhealth = 70
|
||||
resistance_flags = ACID_PROOF
|
||||
armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 80, "acid" = 100)
|
||||
CanAtmosPass = ATMOS_PASS_PROC
|
||||
var/breaksound = "shatter"
|
||||
var/hitsound = 'sound/effects/Glasshit.ogg'
|
||||
icon_state = "handrail"
|
||||
|
||||
/obj/structure/fence/handrail/handrail_end
|
||||
icon_state = "handrail_end"
|
||||
cuttable = FALSE
|
||||
climbable = TRUE
|
||||
|
||||
/obj/structure/fence/handrail/handrail_corner
|
||||
icon_state = "handrail_corner"
|
||||
cuttable = FALSE
|
||||
climbable = TRUE
|
||||
|
||||
/obj/structure/fence/handrail/examine(mob/user)
|
||||
. = ..()
|
||||
if(health < maxhealth)
|
||||
switch(health / maxhealth)
|
||||
if(0.0 to 0.5)
|
||||
. += "<span class='warning'>It looks severely damaged!</span>"
|
||||
if(0.25 to 0.5)
|
||||
. += "<span class='warning'>It looks damaged!</span>"
|
||||
if(0.5 to 1.0)
|
||||
. += "<span class='notice'>It has a few scrapes and dents.</span>"
|
||||
|
||||
/obj/structure/fence/handrail/take_damage(amount)
|
||||
health -= amount
|
||||
if(health <= 0)
|
||||
visible_message("<span class='warning'>\The [src] breaks down!</span>")
|
||||
playsound(src, 'sound/effects/grillehit.ogg', 50, 1)
|
||||
new /obj/item/stack/rods(get_turf(src))
|
||||
qdel(src)
|
||||
|
||||
#undef CUT_TIME
|
||||
#undef CLIMB_TIME
|
||||
|
||||
|
||||
Reference in New Issue
Block a user