//////////////////////////////////////////////////////////////////////////////// /// Pills. //////////////////////////////////////////////////////////////////////////////// /obj/item/weapon/reagent_containers/pill name = "pill" desc = "a pill." icon = 'icons/obj/chemical.dmi' icon_state = null item_state = "pill" possible_transfer_amounts = null w_class = 1 slot_flags = SLOT_EARS volume = 60 New() ..() if(!icon_state) icon_state = "pill[rand(1, 20)]" attack(mob/M as mob, mob/user as mob, def_zone) if(M == user) if(istype(M, /mob/living/carbon/human)) var/mob/living/carbon/human/H = M if(!H.check_has_mouth()) user << "Where do you intend to put \the [src]? You don't have a mouth!" return var/obj/item/blocked = H.check_mouth_coverage() if(blocked) user << "\The [blocked] is in the way!" return M << "You swallow \the [src]." M.drop_from_inventory(src) //icon update if(reagents.total_volume) reagents.trans_to_mob(M, reagents.total_volume, CHEM_INGEST) qdel(src) return 1 else if(istype(M, /mob/living/carbon/human)) var/mob/living/carbon/human/H = M if(!H.check_has_mouth()) user << "Where do you intend to put \the [src]? \The [H] doesn't have a mouth!" return var/obj/item/blocked = H.check_mouth_coverage() if(blocked) user << "\The [blocked] is in the way!" return user.visible_message("[user] attempts to force [M] to swallow \the [src].") if(!do_mob(user, M)) return user.drop_from_inventory(src) //icon update user.visible_message("[user] forces [M] to swallow \the [src].") var/contained = reagentlist() M.attack_log += text("\[[time_stamp()]\] Has been fed [name] by [key_name(user)] Reagents: [contained]") user.attack_log += text("\[[time_stamp()]\] Fed [name] to [key_name(M)] Reagents: [contained]") msg_admin_attack("[key_name_admin(user)] fed [key_name_admin(M)] with [name] Reagents: [contained] (INTENT: [uppertext(user.a_intent)]) (JMP)") if(reagents.total_volume) reagents.trans_to_mob(M, reagents.total_volume, CHEM_INGEST) qdel(src) return 1 return 0 afterattack(obj/target, mob/user, proximity) if(!proximity) return if(target.is_open_container() && target.reagents) if(!target.reagents.total_volume) user << "[target] is empty. Can't dissolve \the [src]." return user << "You dissolve \the [src] in [target]." user.attack_log += text("\[[time_stamp()]\] Spiked \a [target] with a pill. Reagents: [reagentlist()]") msg_admin_attack("[user.name] ([user.ckey]) spiked \a [target] with a pill. Reagents: [reagentlist()] (INTENT: [uppertext(user.a_intent)]) (JMP)") reagents.trans_to(target, reagents.total_volume) for(var/mob/O in viewers(2, user)) O.show_message("[user] puts something in \the [target].", 1) qdel(src) return //////////////////////////////////////////////////////////////////////////////// /// Pills. END //////////////////////////////////////////////////////////////////////////////// //Pills /obj/item/weapon/reagent_containers/pill/antitox name = "Anti-toxins pill" desc = "Neutralizes many common toxins." icon_state = "pill17" New() ..() reagents.add_reagent("anti_toxin", 25) /obj/item/weapon/reagent_containers/pill/tox name = "Toxins pill" desc = "Highly toxic." icon_state = "pill5" New() ..() reagents.add_reagent("toxin", 50) /obj/item/weapon/reagent_containers/pill/cyanide name = "Cyanide pill" desc = "Don't swallow this." icon_state = "pill5" New() ..() reagents.add_reagent("cyanide", 50) /obj/item/weapon/reagent_containers/pill/adminordrazine name = "Adminordrazine pill" desc = "It's magic. We don't have to explain it." icon_state = "pill16" New() ..() reagents.add_reagent("adminordrazine", 50) /obj/item/weapon/reagent_containers/pill/stox name = "Sleeping pill" desc = "Commonly used to treat insomnia." icon_state = "pill8" New() ..() reagents.add_reagent("stoxin", 15) /obj/item/weapon/reagent_containers/pill/kelotane name = "Kelotane pill" desc = "Used to treat burns." icon_state = "pill11" New() ..() reagents.add_reagent("kelotane", 15) /obj/item/weapon/reagent_containers/pill/paracetamol name = "Paracetamol pill" desc = "Tylenol! A painkiller for the ages. Chewables!" icon_state = "pill8" New() ..() reagents.add_reagent("paracetamol", 15) /obj/item/weapon/reagent_containers/pill/tramadol name = "Tramadol pill" desc = "A simple painkiller." icon_state = "pill8" New() ..() reagents.add_reagent("tramadol", 15) /obj/item/weapon/reagent_containers/pill/methylphenidate name = "Methylphenidate pill" desc = "Improves the ability to concentrate." icon_state = "pill8" New() ..() reagents.add_reagent("methylphenidate", 15) /obj/item/weapon/reagent_containers/pill/citalopram name = "Citalopram pill" desc = "Mild anti-depressant." icon_state = "pill8" New() ..() reagents.add_reagent("citalopram", 15) /obj/item/weapon/reagent_containers/pill/inaprovaline name = "Inaprovaline pill" desc = "Used to stabilize patients." icon_state = "pill20" New() ..() reagents.add_reagent("inaprovaline", 30) /obj/item/weapon/reagent_containers/pill/dexalin name = "Dexalin pill" desc = "Used to treat oxygen deprivation." icon_state = "pill16" New() ..() reagents.add_reagent("dexalin", 15) /obj/item/weapon/reagent_containers/pill/dexalin_plus name = "Dexalin Plus pill" desc = "Used to treat extreme oxygen deprivation." icon_state = "pill8" New() ..() reagents.add_reagent("dexalinp", 15) /obj/item/weapon/reagent_containers/pill/dermaline name = "Dermaline pill" desc = "Used to treat burn wounds." icon_state = "pill12" New() ..() reagents.add_reagent("dermaline", 15) /obj/item/weapon/reagent_containers/pill/dylovene name = "Dylovene pill" desc = "A broad-spectrum anti-toxin." icon_state = "pill13" New() ..() reagents.add_reagent("anti_toxin", 15) /obj/item/weapon/reagent_containers/pill/inaprovaline name = "Inaprovaline pill" desc = "Used to stabilize patients." icon_state = "pill20" New() ..() reagents.add_reagent("inaprovaline", 30) /obj/item/weapon/reagent_containers/pill/bicaridine name = "Bicaridine pill" desc = "Used to treat physical injuries." icon_state = "pill18" New() ..() reagents.add_reagent("bicaridine", 20) /obj/item/weapon/reagent_containers/pill/happy name = "Happy pill" desc = "Happy happy joy joy!" icon_state = "pill18" New() ..() reagents.add_reagent("space_drugs", 15) reagents.add_reagent("sugar", 15) /obj/item/weapon/reagent_containers/pill/zoom name = "Zoom pill" desc = "Zoooom!" icon_state = "pill18" New() ..() reagents.add_reagent("impedrezene", 10) reagents.add_reagent("synaptizine", 5) reagents.add_reagent("hyperzine", 5) /obj/item/weapon/reagent_containers/pill/spaceacillin name = "Spaceacillin pill" desc = "Contains antiviral agents." icon_state = "pill19" New() ..() reagents.add_reagent("spaceacillin", 15)