mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 16:44:33 +01:00
b0463d3c83
* spanish? * aaaagain * keep maptext * Update robot_items.dm * Update span_defines.dm * compiles * Update silicon_mob.dm * compile
215 lines
6.5 KiB
Plaintext
215 lines
6.5 KiB
Plaintext
/**
|
|
* # Pill
|
|
*
|
|
* A swallowable pill. Can be dissolved in reagent containers.
|
|
*/
|
|
/obj/item/reagent_containers/pill
|
|
name = "pill"
|
|
desc = "A pill."
|
|
inhand_icon_state = "pill"
|
|
possible_transfer_amounts = null
|
|
visible_transfer_rate = FALSE
|
|
volume = 100
|
|
|
|
/obj/item/reagent_containers/pill/Initialize(mapload)
|
|
. = ..()
|
|
if(!icon_state)
|
|
icon_state = "pill[rand(1, 20)]"
|
|
|
|
/obj/item/reagent_containers/pill/activate_self(mob/user)
|
|
if(..())
|
|
return FINISH_ATTACK
|
|
|
|
apply(user, user)
|
|
|
|
/obj/item/reagent_containers/pill/proc/apply(mob/living/carbon/C, mob/user)
|
|
if(!istype(C))
|
|
return FALSE
|
|
|
|
if(!reagents.total_volume)
|
|
qdel(src)
|
|
return TRUE
|
|
|
|
if(ishuman(C))
|
|
var/mob/living/carbon/human/H = C
|
|
if(!H.check_has_mouth())
|
|
to_chat(user, SPAN_WARNING("[user == H ? "You" : H] can't ingest [src]!"))
|
|
return FALSE
|
|
|
|
if(user == C)
|
|
to_chat(user, SPAN_NOTICE("You swallow [src]."))
|
|
else
|
|
C.visible_message(SPAN_WARNING("[user] attempts to force [C] to swallow [src]."))
|
|
if(!do_after(user, 3 SECONDS, TRUE, C, TRUE))
|
|
return FALSE
|
|
|
|
C.forceFedAttackLog(src, user)
|
|
C.visible_message(SPAN_WARNING("[user] forces [C] to swallow [src]."))
|
|
|
|
reagents.reaction(C, REAGENT_INGEST)
|
|
reagents.trans_to(C, reagents.total_volume)
|
|
qdel(src)
|
|
return TRUE
|
|
|
|
/obj/item/reagent_containers/pill/interact_with_atom(atom/target, mob/living/user, list/modifiers)
|
|
if(isnull(target.reagents))
|
|
return
|
|
|
|
return ..()
|
|
|
|
/obj/item/reagent_containers/pill/mob_act(mob/target, mob/living/user)
|
|
apply(target, user)
|
|
return TRUE
|
|
|
|
/obj/item/reagent_containers/pill/normal_act(atom/target, mob/living/user)
|
|
. = TRUE
|
|
if(!target.is_refillable())
|
|
return
|
|
if(target.reagents.holder_full())
|
|
to_chat(user, SPAN_WARNING("[target] is full."))
|
|
return
|
|
|
|
to_chat(user, SPAN_NOTICE("You [!target.reagents.total_volume ? "break open" : "dissolve"] [src] in [target]."))
|
|
for(var/mob/O in oviewers(2, user))
|
|
O.show_message(SPAN_WARNING("[user] puts something in [target]."), 1)
|
|
reagents.trans_to(target, reagents.total_volume)
|
|
qdel(src)
|
|
|
|
// Basic set of pills below
|
|
/obj/item/reagent_containers/pill/tox
|
|
name = "\improper Toxin pill"
|
|
desc = "Highly toxic."
|
|
icon_state = "pill21"
|
|
list_reagents = list("toxin" = 50)
|
|
|
|
/obj/item/reagent_containers/pill/initropidril
|
|
name = "\improper Initropidril pill"
|
|
desc = "Don't swallow this."
|
|
icon_state = "pill21"
|
|
list_reagents = list("initropidril" = 50)
|
|
|
|
/obj/item/reagent_containers/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/pill/adminordrazine
|
|
name = "\improper 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/pill/morphine
|
|
name = "\improper Morphine pill"
|
|
desc = "Commonly used to treat insomnia."
|
|
icon_state = "pill8"
|
|
list_reagents = list("morphine" = 30)
|
|
|
|
/obj/item/reagent_containers/pill/methamphetamine
|
|
name = "\improper Methamphetamine pill"
|
|
desc = "Helps improve the ability to concentrate."
|
|
icon_state = "pill8"
|
|
list_reagents = list("methamphetamine" = 5)
|
|
|
|
/obj/item/reagent_containers/pill/haloperidol
|
|
name = "\improper Haloperidol pill"
|
|
desc = "Haloperidol is an anti-psychotic used to treat psychiatric problems."
|
|
icon_state = "pill8"
|
|
list_reagents = list("haloperidol" = 15)
|
|
|
|
/obj/item/reagent_containers/pill/happy_psych
|
|
name = "mood stabilizer pill"
|
|
desc = "Used to temporarily alleviate anxiety and depression. Take only as prescribed."
|
|
icon_state = "pill_happy"
|
|
list_reagents = list("happiness" = 15, "mannitol" = 5)
|
|
|
|
/obj/item/reagent_containers/pill/happy
|
|
name = "happy pill"
|
|
desc = "They have little happy faces on them and smell like marker pens."
|
|
icon_state = "pill_happy"
|
|
list_reagents = list("space_drugs" = 15, "sugar" = 15)
|
|
|
|
/obj/item/reagent_containers/pill/happy/happiness
|
|
name = "fun pill"
|
|
desc = "Makes you feel real good!"
|
|
list_reagents = list("happiness" = 15)
|
|
|
|
/obj/item/reagent_containers/pill/zoom
|
|
name = "zoom pill"
|
|
desc = "Zoooom!"
|
|
icon_state = "pill18"
|
|
list_reagents = list("synaptizine" = 5, "methamphetamine" = 5)
|
|
|
|
/obj/item/reagent_containers/pill/charcoal
|
|
name = "\improper Charcoal pill"
|
|
desc = "Neutralizes many common toxins."
|
|
icon_state = "pill17"
|
|
list_reagents = list("charcoal" = 50)
|
|
|
|
/obj/item/reagent_containers/pill/epinephrine
|
|
name = "\improper Epinephrine pill"
|
|
desc = "Used to provide shots of adrenaline."
|
|
icon_state = "pill6"
|
|
list_reagents = list("epinephrine" = 50)
|
|
|
|
/obj/item/reagent_containers/pill/salicylic
|
|
name = "\improper 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/pill/salbutamol
|
|
name = "\improper Salbutamol pill"
|
|
desc = "Used to treat respiratory distress."
|
|
icon_state = "pill8"
|
|
list_reagents = list("salbutamol" = 20)
|
|
|
|
/obj/item/reagent_containers/pill/hydrocodone
|
|
name = "\improper Hydrocodone pill"
|
|
desc = "Used to treat extreme pain."
|
|
icon_state = "pill6"
|
|
list_reagents = list("hydrocodone" = 15)
|
|
|
|
/obj/item/reagent_containers/pill/calomel
|
|
name = "\improper 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/pill/mutadone
|
|
name = "\improper Mutadone pill"
|
|
desc = "Used to cure genetic abnormalities."
|
|
icon_state = "pill13"
|
|
list_reagents = list("mutadone" = 1)
|
|
|
|
/obj/item/reagent_containers/pill/mannitol
|
|
name = "\improper Mannitol pill"
|
|
desc = "Used to treat cranial swelling."
|
|
icon_state = "pill19"
|
|
list_reagents = list("mannitol" = 10)
|
|
|
|
/obj/item/reagent_containers/pill/pentetic
|
|
name ="\improper Pentetic pill"
|
|
desc = "Used to purge substances and radiation."
|
|
icon_state = "pill7"
|
|
list_reagents = list("pen_acid" = 5)
|
|
|
|
/obj/item/reagent_containers/pill/ironsaline
|
|
name = "\improper Iron saline pill"
|
|
desc = "Used to help with blood loss."
|
|
icon_state = "pill2"
|
|
list_reagents = list("iron" = 10, "salglu_solution" = 10)
|
|
|
|
/obj/item/reagent_containers/pill/lazarus_reagent
|
|
name = "\improper Lazarus Reagent pill"
|
|
desc = "Miraculous drug used for revival. Use with caution. Improper use may cause bodies to violently blow apart."
|
|
icon_state = "pill9"
|
|
list_reagents = list("lazarus_reagent" = 1)
|
|
|
|
/obj/item/reagent_containers/pill/rezadone
|
|
name = "\improper Rezadone pill"
|
|
desc = "Used to rapidly repair cellular defects within a subject's cell structure."
|
|
icon_state = "pill10"
|
|
list_reagents = list("rezadone" = 1)
|