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:
Militaires
2017-02-19 22:48:25 +03:00
committed by AnturK
parent f2b8beaf03
commit d0b2fa15ec
2 changed files with 19 additions and 0 deletions
@@ -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"