mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-28 11:11:52 +00:00
* Adds the check components * Adds in trailing newlines * Converts all CRLF to LF * Post merge EOF * Post merge line endings * Final commit
156 lines
4.7 KiB
Plaintext
156 lines
4.7 KiB
Plaintext
////////////////////////////////////////////////////////////////////////////////
|
|
/// Pills.
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
/obj/item/reagent_containers/food/pill
|
|
name = "pill"
|
|
desc = "a pill."
|
|
icon = 'icons/obj/chemical.dmi'
|
|
icon_state = null
|
|
item_state = "pill"
|
|
possible_transfer_amounts = null
|
|
volume = 100
|
|
consume_sound = null
|
|
can_taste = FALSE
|
|
antable = FALSE
|
|
|
|
/obj/item/reagent_containers/food/pill/New()
|
|
..()
|
|
if(!icon_state)
|
|
icon_state = "pill[rand(1,20)]"
|
|
|
|
/obj/item/reagent_containers/food/pill/attack_self(mob/user)
|
|
return
|
|
|
|
/obj/item/reagent_containers/food/pill/attack(mob/living/carbon/M, mob/user, def_zone)
|
|
if(!istype(M))
|
|
return 0
|
|
bitesize = reagents.total_volume
|
|
if(M.eat(src, user))
|
|
spawn(0)
|
|
qdel(src)
|
|
return 1
|
|
return 0
|
|
|
|
/obj/item/reagent_containers/food/pill/afterattack(obj/target, mob/user, proximity)
|
|
if(!proximity)
|
|
return
|
|
|
|
if(target.is_open_container() != 0 && target.reagents)
|
|
if(!target.reagents.total_volume)
|
|
to_chat(user, "<span class='warning'>[target] is empty. Cant dissolve [src].</span>")
|
|
return
|
|
|
|
to_chat(user, "<span class='notify'>You dissolve [src] in [target].</span>")
|
|
reagents.trans_to(target, reagents.total_volume)
|
|
for(var/mob/O in viewers(2, user))
|
|
O.show_message("<span class='warning'>[user] puts something in [target].</span>", 1)
|
|
spawn(5)
|
|
qdel(src)
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
/// Pills. END
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//Pills
|
|
/obj/item/reagent_containers/food/pill/tox
|
|
name = "Toxins pill"
|
|
desc = "Highly toxic."
|
|
icon_state = "pill21"
|
|
list_reagents = list("toxin" = 50)
|
|
|
|
/obj/item/reagent_containers/food/pill/initropidril
|
|
name = "initropidril pill"
|
|
desc = "Don't swallow this."
|
|
icon_state = "pill21"
|
|
list_reagents = list("initropidril" = 50)
|
|
|
|
/obj/item/reagent_containers/food/pill/fakedeath
|
|
name = "fake death pill"
|
|
desc = "Swallow then rest to appear dead, stand up to wake up. Also mutes the user's voice."
|
|
icon_state = "pill4"
|
|
list_reagents = list("capulettium_plus" = 50)
|
|
|
|
/obj/item/reagent_containers/food/pill/adminordrazine
|
|
name = "Adminordrazine pill"
|
|
desc = "It's magic. We don't have to explain it."
|
|
icon_state = "pill16"
|
|
list_reagents = list("adminordrazine" = 50)
|
|
|
|
/obj/item/reagent_containers/food/pill/morphine
|
|
name = "Morphine pill"
|
|
desc = "Commonly used to treat insomnia."
|
|
icon_state = "pill8"
|
|
list_reagents = list("morphine" = 30)
|
|
|
|
/obj/item/reagent_containers/food/pill/methamphetamine
|
|
name = "Methamphetamine pill"
|
|
desc = "Helps improve the ability to concentrate."
|
|
icon_state = "pill8"
|
|
list_reagents = list("methamphetamine" = 5)
|
|
|
|
/obj/item/reagent_containers/food/pill/haloperidol
|
|
name = "Haloperidol pill"
|
|
desc = "Haloperidol is an anti-psychotic use to treat psychiatric problems."
|
|
icon_state = "pill8"
|
|
list_reagents = list("haloperidol" = 15)
|
|
|
|
/obj/item/reagent_containers/food/pill/happy
|
|
name = "Happy pill"
|
|
desc = "Happy happy joy joy!"
|
|
icon_state = "pill18"
|
|
list_reagents = list("space_drugs" = 15, "sugar" = 15)
|
|
|
|
/obj/item/reagent_containers/food/pill/zoom
|
|
name = "Zoom pill"
|
|
desc = "Zoooom!"
|
|
icon_state = "pill18"
|
|
list_reagents = list("synaptizine" = 5, "methamphetamine" = 5)
|
|
|
|
/obj/item/reagent_containers/food/pill/charcoal
|
|
name = "Charcoal pill"
|
|
desc = "Neutralizes many common toxins."
|
|
icon_state = "pill17"
|
|
list_reagents = list("charcoal" = 50)
|
|
|
|
/obj/item/reagent_containers/food/pill/epinephrine
|
|
name = "Epinephrine pill"
|
|
desc = "Used to provide shots of adrenaline."
|
|
icon_state = "pill6"
|
|
list_reagents = list("epinephrine" = 50)
|
|
|
|
/obj/item/reagent_containers/food/pill/salicylic
|
|
name = "Salicylic Acid pill"
|
|
desc = "Commonly used to treat moderate pain and fevers."
|
|
icon_state = "pill4"
|
|
list_reagents = list("sal_acid" = 20)
|
|
|
|
/obj/item/reagent_containers/food/pill/salbutamol
|
|
name = "Salbutamol pill"
|
|
desc = "Used to treat respiratory distress."
|
|
icon_state = "pill8"
|
|
list_reagents = list("salbutamol" = 20)
|
|
|
|
/obj/item/reagent_containers/food/pill/hydrocodone
|
|
name = "Hydrocodone pill"
|
|
desc = "Used to treat extreme pain."
|
|
icon_state = "pill6"
|
|
list_reagents = list("hydrocodone" = 15)
|
|
|
|
/obj/item/reagent_containers/food/pill/calomel
|
|
name = "calomel pill"
|
|
desc = "Can be used to purge impurities, but is highly toxic itself."
|
|
icon_state = "pill3"
|
|
list_reagents = list("calomel" = 15)
|
|
|
|
/obj/item/reagent_containers/food/pill/mutadone
|
|
name = "mutadone pill"
|
|
desc = "Used to cure genetic abnormalities."
|
|
icon_state = "pill18"
|
|
list_reagents = list("mutadone" = 20)
|
|
|
|
/obj/item/reagent_containers/food/pill/mannitol
|
|
name = "mannitol pill"
|
|
desc = "Used to treat cranial swelling."
|
|
icon_state = "pill19"
|
|
list_reagents = list("mannitol" = 20)
|