/* First aid storage * Contains: * First Aid Kits * Pill Bottles * Dice Pack (in a pill bottle) */ /* * First Aid Kits */ /obj/item/weapon/storage/firstaid name = "first-aid kit" desc = "It's an emergency medical kit for those serious boo-boos." icon_state = "firstaid" throw_speed = 2 throw_range = 8 var/empty = 0 req_one_access =list(access_medical, access_robotics) //Access and treatment are utilized for medbots. var/treatment_brute = "salglu_solution" var/treatment_oxy = "salbutamol" var/treatment_fire = "salglu_solution" var/treatment_tox = "charcoal" var/treatment_virus = "spaceacillin" /obj/item/weapon/storage/firstaid/fire name = "fire first-aid kit" desc = "A medical kit that contains several medical patches and pills for treating burns. Contains one epinephrine syringe for emergency use and a health analyzer." icon_state = "ointment" item_state = "firstaid-ointment" New() ..() if (empty) return icon_state = pick("ointment","firefirstaid") new /obj/item/weapon/reagent_containers/food/pill/patch/silver_sulf( src ) new /obj/item/weapon/reagent_containers/food/pill/patch/silver_sulf( src ) new /obj/item/weapon/reagent_containers/food/pill/patch/silver_sulf( src ) new /obj/item/weapon/reagent_containers/food/pill/patch/silver_sulf( src ) new /obj/item/device/healthanalyzer( src ) new /obj/item/weapon/reagent_containers/hypospray/autoinjector( src ) new /obj/item/weapon/reagent_containers/food/pill/salicylic( src ) return /obj/item/weapon/storage/firstaid/fire/empty empty = 1 /obj/item/weapon/storage/firstaid/regular desc = "A general medical kit that contains medical patches for both brute damage and burn damage. Also contains an epinephrine syringe for emergency use and a health analyzer" icon_state = "firstaid" New() ..() if (empty) return new /obj/item/weapon/reagent_containers/food/pill/patch/styptic( src ) new /obj/item/weapon/reagent_containers/food/pill/patch/styptic( src ) new /obj/item/weapon/reagent_containers/food/pill/salicylic( src ) new /obj/item/weapon/reagent_containers/food/pill/patch/silver_sulf( src ) new /obj/item/weapon/reagent_containers/food/pill/patch/silver_sulf( src ) new /obj/item/device/healthanalyzer( src ) new /obj/item/weapon/reagent_containers/hypospray/autoinjector( src ) return /obj/item/weapon/storage/firstaid/toxin name = "toxin first aid kit" desc = "A medical kit designed to counter poisoning by common toxins. Contains three pills and syringes, and a health analyzer to determine the health of the patient." icon_state = "antitoxin" item_state = "firstaid-toxin" New() ..() if (empty) return icon_state = pick("antitoxin","antitoxfirstaid","antitoxfirstaid2","antitoxfirstaid3") new /obj/item/weapon/reagent_containers/syringe/charcoal( src ) new /obj/item/weapon/reagent_containers/syringe/charcoal( src ) new /obj/item/weapon/reagent_containers/syringe/charcoal( src ) new /obj/item/weapon/reagent_containers/food/pill/charcoal( src ) new /obj/item/weapon/reagent_containers/food/pill/charcoal( src ) new /obj/item/weapon/reagent_containers/food/pill/charcoal( src ) new /obj/item/device/healthanalyzer( src ) return /obj/item/weapon/storage/firstaid/toxin/empty empty = 1 /obj/item/weapon/storage/firstaid/o2 name = "oxygen deprivation first aid kit" desc = "A first aid kit that contains four pills of salbutamol, which is able to counter injuries caused by suffocation. Also contains a health analyzer to determine the health of the patient." icon_state = "o2" item_state = "firstaid-o2" New() ..() if (empty) return new /obj/item/weapon/reagent_containers/food/pill/salbutamol( src ) new /obj/item/weapon/reagent_containers/food/pill/salbutamol( src ) new /obj/item/weapon/reagent_containers/food/pill/salbutamol( src ) new /obj/item/weapon/reagent_containers/food/pill/salbutamol( src ) new /obj/item/device/healthanalyzer( src ) return /obj/item/weapon/storage/firstaid/o2/empty empty = 1 /obj/item/weapon/storage/firstaid/brute name = "brute trauma treatment kit" desc = "A medical kit that contains several medical patches and pills for treating brute injuries. Contains one epinephrine syringe for emergency use and a health analyzer." icon_state = "brute" item_state = "firstaid-brute" New() ..() if (empty) return icon_state = pick("brute","brute2") new /obj/item/weapon/reagent_containers/food/pill/patch/styptic(src) new /obj/item/weapon/reagent_containers/food/pill/patch/styptic(src) new /obj/item/weapon/reagent_containers/food/pill/patch/styptic(src) new /obj/item/weapon/reagent_containers/food/pill/patch/styptic(src) new /obj/item/device/healthanalyzer(src) new /obj/item/weapon/reagent_containers/hypospray/autoinjector(src) new /obj/item/stack/medical/bruise_pack(src) return /obj/item/weapon/storage/firstaid/brute/empty empty = 1 /obj/item/weapon/storage/firstaid/adv name = "advanced first-aid kit" desc = "Contains advanced medical treatments." icon_state = "advfirstaid" item_state = "firstaid-advanced" /obj/item/weapon/storage/firstaid/adv/New() ..() if (empty) return new /obj/item/weapon/reagent_containers/hypospray/autoinjector( src ) new /obj/item/stack/medical/advanced/bruise_pack(src) new /obj/item/stack/medical/advanced/bruise_pack(src) new /obj/item/stack/medical/advanced/bruise_pack(src) new /obj/item/stack/medical/advanced/ointment(src) new /obj/item/stack/medical/advanced/ointment(src) new /obj/item/stack/medical/splint(src) return /obj/item/weapon/storage/firstaid/adv/empty empty = 1 /obj/item/weapon/storage/firstaid/tactical name = "first-aid kit" icon_state = "bezerk" desc = "I hope you've got insurance." max_w_class = 3 treatment_oxy = "perfluorodecalin" treatment_brute = "styptic_powder" treatment_fire = "silver_sulfadiazine" treatment_tox = "charcoal" req_one_access =list(access_syndicate) /obj/item/weapon/storage/firstaid/tactical/New() ..() if (empty) return new /obj/item/clothing/accessory/stethoscope( src ) new /obj/item/weapon/defibrillator/compact/combat/loaded(src) new /obj/item/weapon/reagent_containers/hypospray/combat(src) new /obj/item/weapon/reagent_containers/food/pill/patch/styptic(src) new /obj/item/weapon/reagent_containers/food/pill/patch/silver_sulf(src) new /obj/item/weapon/reagent_containers/ld50_syringe/lethal(src) new /obj/item/clothing/glasses/hud/health/night(src) return /obj/item/weapon/storage/firstaid/tactical/empty empty =1 /obj/item/weapon/storage/firstaid/surgery name = "field surgery kit" icon_state = "duffel-med" desc = "A kit for surgery in the field." max_w_class = 4 max_combined_w_class = 21 storage_slots = 10 can_hold = list("/obj/item/roller","/obj/item/weapon/bonesetter","/obj/item/weapon/bonegel", "/obj/item/weapon/scalpel", "/obj/item/weapon/hemostat", "/obj/item/weapon/cautery", "/obj/item/weapon/retractor", "/obj/item/weapon/FixOVein", "/obj/item/weapon/surgicaldrill", "/obj/item/weapon/circular_saw") /obj/item/weapon/storage/firstaid/surgery/New() ..() new /obj/item/roller(src) new /obj/item/weapon/bonesetter(src) new /obj/item/weapon/bonegel(src) new /obj/item/weapon/scalpel(src) new /obj/item/weapon/hemostat(src) new /obj/item/weapon/cautery(src) new /obj/item/weapon/retractor(src) new /obj/item/weapon/FixOVein(src) new /obj/item/weapon/surgicaldrill(src) new /obj/item/weapon/circular_saw(src) /* * Pill Bottles */ /obj/item/weapon/storage/pill_bottle name = "pill bottle" desc = "It's an airtight container for storing medication." icon_state = "pill_canister" icon = 'icons/obj/chemical.dmi' item_state = "contsolid" w_class = 2.0 can_hold = list("/obj/item/weapon/reagent_containers/food/pill","/obj/item/weapon/dice","/obj/item/weapon/paper") allow_quick_gather = 1 use_to_pickup = 1 storage_slots = 14 display_contents_with_number = 1 var/base_name = "" var/label_text = "" /obj/item/weapon/storage/pill_bottle/New() ..() base_name = name /obj/item/weapon/storage/pill_bottle/MouseDrop(obj/over_object as obj) //Quick pillbottle fix. -Agouri if (ishuman(usr)) //Can monkeys even place items in the pocket slots? Leaving this in just in case~ var/mob/M = usr if (!( istype(over_object, /obj/screen) )) return ..() if ((!( M.restrained() ) && !( M.stat ) /*&& M.pocket == src*/)) switch(over_object.name) if("r_hand") M.unEquip(src) M.put_in_r_hand(src) if("l_hand") M.unEquip(src) M.put_in_l_hand(src) src.add_fingerprint(usr) return if(over_object == usr && in_range(src, usr) || usr.contents.Find(src)) if (usr.s_active) usr.s_active.close(usr) src.show_to(usr) return return /obj/item/weapon/storage/pill_bottle/attackby(var/obj/item/I, mob/user as mob, params) if(istype(I, /obj/item/weapon/pen) || istype(I, /obj/item/device/flashlight/pen)) var/tmp_label = sanitize(input(user, "Enter a label for [name]","Label",label_text)) if(length(tmp_label) > MAX_NAME_LEN) to_chat(user, "The label can be at most [MAX_NAME_LEN] characters long.") else to_chat(user, "You set the label to \"[tmp_label]\".") label_text = tmp_label update_name_label() else ..() /obj/item/weapon/storage/pill_bottle/proc/update_name_label() if(label_text == "") name = base_name else name = "[base_name] ([label_text])" /obj/item/weapon/storage/pill_bottle/charcoal name = "Pill bottle (Charcoal)" desc = "Contains pills used to counter toxins." New() ..() new /obj/item/weapon/reagent_containers/food/pill/charcoal( src ) new /obj/item/weapon/reagent_containers/food/pill/charcoal( src ) new /obj/item/weapon/reagent_containers/food/pill/charcoal( src ) new /obj/item/weapon/reagent_containers/food/pill/charcoal( src ) new /obj/item/weapon/reagent_containers/food/pill/charcoal( src ) new /obj/item/weapon/reagent_containers/food/pill/charcoal( src ) new /obj/item/weapon/reagent_containers/food/pill/charcoal( src ) /obj/item/weapon/storage/pill_bottle/dice name = "pack of dice" desc = "It's a small container with dice inside." New() ..() new /obj/item/weapon/dice( src ) new /obj/item/weapon/dice/d20( src ) /obj/item/weapon/storage/pill_bottle/painkillers name = "Pill Bottle (Salicylic Acid)" desc = "Contains various pills for minor pain relief." /obj/item/weapon/storage/pill_bottle/painkillers/New() ..() new /obj/item/weapon/reagent_containers/food/pill/salicylic(src) new /obj/item/weapon/reagent_containers/food/pill/salicylic(src) new /obj/item/weapon/reagent_containers/food/pill/salicylic(src) new /obj/item/weapon/reagent_containers/food/pill/salicylic(src) new /obj/item/weapon/reagent_containers/food/pill/salicylic(src) new /obj/item/weapon/reagent_containers/food/pill/salicylic(src) new /obj/item/weapon/reagent_containers/food/pill/salicylic(src) new /obj/item/weapon/reagent_containers/food/pill/salicylic(src)