// Armor kits! Reinforcing uniforms to maintain fashion and also armor capabilities. /obj/item/armorkit name = "durathread armor kit" desc = "A glorified sewing kit with durathread sheets, thread, and a titanium needle, for reinforcing jumpsuits and uniforms." icon = 'icons/obj/clothing/reinf_kits.dmi' w_class = WEIGHT_CLASS_SMALL icon_state = "durathread_kit" // shoutout to my guy Toriate for being good at sprites tho /obj/item/armorkit/afterattack(atom/target, mob/user, proximity_flag, click_parameters) // yeah have fun making subtypes and modifying the afterattack if you want to make variants // idiot var/used = FALSE if(isobj(target) && istype(target, /obj/item/clothing/under)) var/obj/item/clothing/under/C = target if(C.damaged_clothes) to_chat(user,"You should repair the damage done to [C] first.") return if(C.attached_accessory) to_chat(user,"Kind of hard to sew around [C.attached_accessory].") return if(C.armor.getRating("melee") < 10) C.armor = C.armor.setRating("melee" = 10) used = TRUE if(C.armor.getRating("laser") < 10) C.armor = C.armor.setRating("laser" = 10) used = TRUE if(C.armor.getRating("fire") < 40) C.armor = C.armor.setRating("fire" = 40) used = TRUE if(C.armor.getRating("acid") < 10) C.armor = C.armor.setRating("acid" = 10) used = TRUE if(C.armor.getRating("bomb") < 5) C.armor = C.armor.setRating("bomb" = 5) used = TRUE if(used) user.visible_message("[user] reinforces [C] with [src].", \ "You reinforce [C] with [src], making it as protective as a durathread jumpsuit.") C.name = "durathread [C.name]" C.upgrade_prefix = "durathread" // god i hope this works qdel(src) return else to_chat(user, "You don't need to reinforce [C] any further.") return else return