Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds NanoPharm, Misc Fluff Meds #19740

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
1694a2d
Adds Nanopharm
HanSolo1519 Jul 31, 2024
e374312
Update pill_bottle.dm
HanSolo1519 Jul 31, 2024
d819d89
Update Chemistry-Reagents-Medicine.dm
HanSolo1519 Jul 31, 2024
dad2bc9
Update vending_types.dm
HanSolo1519 Jul 31, 2024
5f6187d
Update Chemistry-Reagents-Medicine.dm
HanSolo1519 Jul 31, 2024
8a20250
Update pill.dm
HanSolo1519 Jul 31, 2024
cbca370
Update pill_bottle.dm
HanSolo1519 Jul 31, 2024
5ce3286
Update pill.dm
HanSolo1519 Jul 31, 2024
f541dac
Update pill.dm
HanSolo1519 Jul 31, 2024
ddc16a2
Update pill.dm
HanSolo1519 Jul 31, 2024
e6189b5
Update pill_bottle.dm
HanSolo1519 Jul 31, 2024
d809cb1
Update pill.dm
HanSolo1519 Jul 31, 2024
cd133aa
Update vending_types.dm
HanSolo1519 Jul 31, 2024
ef73617
Update Chemistry-Reagents-Medicine.dm
HanSolo1519 Jul 31, 2024
6be0695
Update vending_types.dm
HanSolo1519 Jul 31, 2024
2c49c19
Update vending_types.dm
HanSolo1519 Jul 31, 2024
f0961be
Update pill_bottle.dm
HanSolo1519 Jul 31, 2024
600f7d9
Update vending_types.dm
HanSolo1519 Jul 31, 2024
4e256dc
Adds Nanopharm sprite
HanSolo1519 Jul 31, 2024
092d5c4
Update Chemistry-Reagents-Medicine.dm
HanSolo1519 Jul 31, 2024
9ac95b1
Update Chemistry-Reagents-Medicine.dm
HanSolo1519 Jul 31, 2024
9c47425
Update pill.dm
HanSolo1519 Aug 1, 2024
6999a79
Update Chemistry-Reagents-Medicine.dm
HanSolo1519 Aug 3, 2024
9dc1d65
Update pill_bottle.dm
HanSolo1519 Aug 3, 2024
7f4b58d
Adds Nanopharm to the Horizon, thanks CourierBravo!
HanSolo1519 Aug 3, 2024
38c0259
Update vending_types.dm
HanSolo1519 Aug 3, 2024
0b4967a
Add files via upload
HanSolo1519 Aug 3, 2024
f2acfb3
edits nanopharm sprite
HanSolo1519 Aug 3, 2024
7494e88
nanotrasen buys out the pharmacy market
HanSolo1519 Aug 6, 2024
93bc1db
actually makes bandages, ointment, and inap pens cost something
HanSolo1519 Aug 9, 2024
1600c8a
fixes vending machine icon conflict
HanSolo1519 Aug 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions code/game/machinery/vending_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@
desc = "A wall-mounted version of the NanoMed, containing only vital first aid equipment."
icon_state = "wallmed"
req_access = list(ACCESS_MEDICAL)
density = 0 //It is wall-mounted, and thus, not dense. --Superxpdude
density = FALSE //It is wall-mounted, and thus, not dense. --Superxpdude
vend_id = "meds"
products = list(
/obj/item/reagent_containers/hypospray/autoinjector/inaprovaline = 5,
Expand All @@ -766,12 +766,47 @@
premium = list(
/obj/item/reagent_containers/pill/mortaphenyl = 4
)
random_itemcount = 0
random_itemcount = FALSE
temperature_setting = -1
light_color = LIGHT_COLOR_GREEN
obj_flags = OBJ_FLAG_MOVES_UNSUPPORTED
manufacturer = "zenghu"

/obj/machinery/vending/wallpharm
name = "\improper NanoPharm Mini"
desc = "A wall-mounted pharmaceuticals vending machine packed with over-the-counter bottles. For the sick salaried worker in you."
icon_state = "wallpharm"
density = FALSE
products = list(
/obj/item/storage/pill_bottle/antidexafen = 4,
/obj/item/storage/pill_bottle/dexalin = 4,
/obj/item/storage/pill_bottle/dylovene = 4,
/obj/item/storage/pill_bottle/vitamin = 5,
/obj/item/storage/pill_bottle/cetahydramine = 4,
/obj/item/storage/pill_bottle/caffeine = 3,
/obj/item/storage/pill_bottle/nicotine = 4,
/obj/item/storage/pill_bottle/rmt = 2
)
prices = list(
/obj/item/storage/pill_bottle/antidexafen = 70,
/obj/item/storage/pill_bottle/dexalin = 60,
/obj/item/storage/pill_bottle/dylovene = 75,
/obj/item/storage/pill_bottle/vitamin = 55,
/obj/item/storage/pill_bottle/cetahydramine = 60,
/obj/item/storage/pill_bottle/caffeine = 90,
/obj/item/storage/pill_bottle/nicotine = 85,
/obj/item/storage/pill_bottle/rmt = 200
)
contraband = list(
/obj/item/reagent_containers/pill/tox = 3,
/obj/item/storage/pill_bottle/perconol = 3
)
random_itemcount = FALSE
temperature_setting = -1
light_color = COLOR_GOLD
obj_flags = OBJ_FLAG_MOVES_UNSUPPORTED
manufacturer = "zenghu"

/obj/machinery/vending/security
name = "SecTech"
desc = "A security equipment vendor."
Expand Down
15 changes: 15 additions & 0 deletions code/game/objects/items/weapons/storage/pill_bottle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,18 @@
name = "bottle of 10u Ryetalyn pills"
desc = "Contains pills used to treat genetic and immune diseases."
starts_with = list(/obj/item/reagent_containers/pill/ryetalyn = 4)

/obj/item/storage/pill_bottle/caffeine
name = "bottle of 5u Caffeine pills"
desc = "Contains pills used to help with alertness and fatigue. The label warns against taking more than 2 in a 6-hour period. Possible side effects include jitteriness, heart palpitations, difficulty with concentrating, and even death."
starts_with = list(/obj/item/reagent_containers/pill/caffeine = 7)

/obj/item/storage/pill_bottle/nicotine
name = "bottle of 10u Nicotine pills"
desc = "Contains pills used to treat nicotine addiction."
starts_with = list(/obj/item/reagent_containers/pill/nicotine = 7)

/obj/item/storage/pill_bottle/vitamin
name = "bottle of 10u Vitamin supplements"
desc = "Contains pills used to treat vitamin deficiency."
starts_with = list(/obj/item/reagent_containers/pill/bio_vitamin/cheap = 7)
Original file line number Diff line number Diff line change
Expand Up @@ -1918,3 +1918,43 @@
var/obj/item/organ/external/E = Z.parent_organ
Z.curing = TRUE
to_chat(M, SPAN_WARNING("Your [E.name] tightens, pulses, and squirms as \the [Z] fights back against the antibodies!"))

/singleton/reagent/caffeine // Copied from Hyperzine
name = "Caffeine"
description = "Caffeine is a central nervous system stimulant found naturally in many plants. It's used as a mild cognitive enhancer to increase alertness and attentional performance, as well as improve cardiovascular health."
reagent_state = SOLID
color = "#f9edea"
metabolism = REM * 0.15
overdose = 11
var/datum/modifier = null
taste_description = "bitter"
metabolism_min = REM * 0.025
breathe_met = REM * 0.15 * 0.5

/singleton/reagent/caffeine/get_od_min_dose(mob/living/carbon/M, location, datum/reagents/holder)
if(REAGENT_VOLUME(M.reagents, /singleton/reagent/adrenaline) > 5)
return 0 // Takes effect instantly.
. = od_minimum_dose

/singleton/reagent/caffeine/affect_blood(var/mob/living/carbon/M, var/alien, var/removed, var/datum/reagents/holder)
if(prob(5))
to_chat(M, SPAN_GOOD(pick("You feel alert!", "You feel awake!", "You feel pumped!")))
if(check_min_dose(M, 0.5))
M.add_chemical_effect(CE_PULSE, 1)

/singleton/reagent/caffeine/overdose(var/mob/living/carbon/M, var/alien, var/removed, var/datum/reagents/holder)
M.adjustNutritionLoss(5*removed)
M.add_chemical_effect(CE_PULSE, 2)
M.add_chemical_effect(CE_SPEEDBOOST, 0.35) // Coffee = 0.3, Zora Soda = 0.4, Thirteen Loko = 0.5. Seems fine here, if a bit low.
M.make_jittery(5)
if(prob(5))
to_chat(M, SPAN_DANGER(pick("You have a headache!", "Energy, energy, energy - so much energy!", "You can't sit still!", "It's difficult to focus right now... but that's not important!", "Your heart is beating rapidly!", "Your chest hurts!", "You've totally over-exerted yourself!")))
if(prob(M.chem_doses[type] / 3))
M.emote(pick("twitch", "blink_r", "shiver"))
M.take_organ_damage(5 * removed, 0)
M.adjustHalLoss(15)

/singleton/reagent/caffeine/Destroy()
QDEL_NULL(modifier)
return ..()

19 changes: 18 additions & 1 deletion code/modules/reagents/reagent_containers/pill.dm
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
icon_state = "pill19"
reagents_to_add = list(/singleton/reagent/thetamycin = 15)

/obj/item/reagent_containers/pill/bio_vitamin
/obj/item/reagent_containers/pill/bio_vitamin //Biogenerator version
name = "Vitamin Pill"
desc = "Contains a meal's worth of nutrients."
icon_state = "pill11"
Expand All @@ -304,6 +304,11 @@
var/juice = pick(/singleton/reagent/drink/banana, /singleton/reagent/drink/berryjuice, /singleton/reagent/drink/grapejuice, /singleton/reagent/drink/lemonjuice, /singleton/reagent/drink/limejuice, /singleton/reagent/drink/orangejuice, /singleton/reagent/drink/watermelonjuice)
reagents.add_reagent(juice, 1)

/obj/item/reagent_containers/pill/bio_vitamin/cheap //Vending machine version
name = "Vitamin Pill"
desc = "Has all the vitamins a person needs."
reagents_to_add = list(/singleton/reagent/nutriment = 2)

/obj/item/reagent_containers/pill/rmt
name = "15u Regenerative-Muscular Tissue Supplement Pill"
desc = "Commonly abbreviated to RMT, it contains chemicals rampantly used by those seeking to remedy the effects of prolonged zero-gravity adaptations."
Expand Down Expand Up @@ -375,3 +380,15 @@
desc = "A medicine used to treat genetic conditions, including benign and malignant tumours."
icon_state = "pill11"
reagents_to_add = list(/singleton/reagent/ryetalyn = 10)

/obj/item/reagent_containers/pill/caffeine
name = "5u Caffeine Pill"
desc = "A stimulant used to help with alertness and fatigue."
icon_state = "pill18"
reagents_to_add = list(/singleton/reagent/caffeine = 5)

/obj/item/reagent_containers/pill/nicotine
name = "5u Nicotine Pill"
desc = "A pull used to treat nicotine addiction."
icon_state = "pill18"
reagents_to_add = list(/singleton/reagent/mental/nicotine = 5)
Binary file modified icons/obj/vending.dmi
Binary file not shown.
Loading