/obj/item/storage/toolbox/mechanical name = "mechanical toolbox" icon_state = "blue" inhand_icon_state = "toolbox_blue" material_flags = NONE /// If FALSE, someone with a ensouled soulstone can sacrifice a spirit to change the sprite of this toolbox. var/has_soul = FALSE /obj/item/storage/toolbox/mechanical/PopulateContents() new /obj/item/screwdriver(src) new /obj/item/wrench(src) new /obj/item/weldingtool(src) new /obj/item/crowbar(src) new /obj/item/analyzer(src) new /obj/item/wirecutters(src) /obj/item/storage/toolbox/mechanical/old name = "rusty blue toolbox" icon_state = "toolbox_blue_old" has_latches = FALSE has_soul = TRUE /obj/item/storage/toolbox/mechanical/old/heirloom name = "toolbox" //this will be named "X family toolbox" desc = "It's seen better days." force = 5 w_class = WEIGHT_CLASS_NORMAL storage_type = /datum/storage/toolbox/heirloom /obj/item/storage/toolbox/mechanical/old/heirloom/PopulateContents() return // version of below that isn't a traitor item /obj/item/storage/toolbox/mechanical/old/cleaner name = "old blue toolbox" icon_state = "oldtoolboxclean" icon_state = "toolbox_blue_old" /obj/item/storage/toolbox/mechanical/old/clean // the assistant traitor toolbox, damage scales with TC inside name = "toolbox" desc = "An old, blue toolbox, it looks robust." icon_state = "oldtoolboxclean" inhand_icon_state = "toolbox_blue" has_latches = FALSE force = 19 throwforce = 22 /obj/item/storage/toolbox/mechanical/old/clean/proc/calc_damage() var/power = 0 for (var/obj/item/stack/telecrystal/stored_crystals in get_all_contents()) power += stored_crystals.amount force = initial(force) + power throwforce = initial(throwforce) + power /obj/item/storage/toolbox/mechanical/old/clean/pre_attack(atom/target, mob/living/user, list/modifiers, list/attack_modifiers) calc_damage() return ..() /obj/item/storage/toolbox/mechanical/old/clean/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum) calc_damage() return ..() /obj/item/storage/toolbox/mechanical/old/clean/PopulateContents() new /obj/item/screwdriver(src) new /obj/item/wrench(src) new /obj/item/weldingtool(src) new /obj/item/crowbar(src) new /obj/item/wirecutters(src) new /obj/item/multitool(src) new /obj/item/clothing/gloves/color/yellow(src)