mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 09:35:30 +01:00
rare double latched toolboxes and very rare triple latched toolboxes (#24148)
* legendary * the legendary * wj_you_dont_understand * my cycles of guilt are inescapable help me * atomized pr for joan * dosh fixees conflict * aaaaaa * the mad citrus * reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee fix conflict * switch 0 1 true false * moves add overlay cut overlay to update icons * new to initialize
This commit is contained in:
@@ -13,6 +13,23 @@
|
||||
origin_tech = "combat=1;engineering=1"
|
||||
attack_verb = list("robusted")
|
||||
hitsound = 'sound/weapons/smash.ogg'
|
||||
var/hinges = "single_hinge"
|
||||
var/old = FALSE
|
||||
|
||||
/obj/item/weapon/storage/toolbox/Initialize()
|
||||
..()
|
||||
if(!old)
|
||||
if(prob(10))
|
||||
hinges = "double_hinge"
|
||||
else if(prob(1))
|
||||
hinges = "triple_hinge"
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/storage/toolbox/update_icon()
|
||||
..()
|
||||
cut_overlays()
|
||||
add_overlay(image('icons/obj/storage.dmi', "[hinges]"))
|
||||
|
||||
|
||||
/obj/item/weapon/storage/toolbox/suicide_act(mob/user)
|
||||
user.visible_message("<span class='suicide'>[user] robusts [user.p_them()]self with [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
||||
@@ -37,6 +54,7 @@
|
||||
/obj/item/weapon/storage/toolbox/emergency/old
|
||||
name = "rusty red toolbox"
|
||||
item_state = "toolbox_red_old"
|
||||
old = TRUE
|
||||
|
||||
/obj/item/weapon/storage/toolbox/mechanical
|
||||
name = "mechanical toolbox"
|
||||
@@ -55,6 +73,7 @@
|
||||
/obj/item/weapon/storage/toolbox/mechanical/old
|
||||
name = "rusty blue toolbox"
|
||||
item_state = "toolbox_blue_old"
|
||||
old = TRUE
|
||||
|
||||
/obj/item/weapon/storage/toolbox/electrical
|
||||
name = "electrical toolbox"
|
||||
|
||||
Reference in New Issue
Block a user