mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] Addiction Withdrawal Shown On Body Scanners (#11690)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
607c748648
commit
8b5fdf32f0
@@ -192,6 +192,13 @@
|
||||
else
|
||||
// Using another species as base, doctors should know this to avoid some meds
|
||||
occupantData["species"] = "[H.custom_species] \[Similar biology to [H.species.name]\]"
|
||||
|
||||
var/has_withdrawl = FALSE
|
||||
for(var/addic in H.get_all_addictions())
|
||||
if(H.get_addiction_to_reagent(addic) > 0 && H.get_addiction_to_reagent(addic) < 80)
|
||||
has_withdrawl = TRUE
|
||||
break
|
||||
|
||||
occupantData["stat"] = H.stat
|
||||
occupantData["health"] = H.health
|
||||
occupantData["maxHealth"] = H.getMaxHealth()
|
||||
@@ -212,6 +219,8 @@
|
||||
occupantData["bodyTempF"] = (((H.bodytemperature-T0C) * 1.8) + 32)
|
||||
|
||||
occupantData["hasBorer"] = H.has_brain_worms()
|
||||
occupantData["hasWithdrawl"] = has_withdrawl
|
||||
|
||||
occupantData["colourblind"] = null
|
||||
for(var/datum/modifier/M in H.modifiers)
|
||||
if(!isnull(M.wire_colors_replace))
|
||||
@@ -397,6 +406,7 @@
|
||||
|
||||
dat = span_blue(span_bold("Occupant Statistics:")) + "<br>" //Blah obvious
|
||||
if(istype(occupant)) //is there REALLY someone in there?
|
||||
var/has_withdrawl = ""
|
||||
if(ishuman(occupant))
|
||||
var/mob/living/carbon/human/H = occupant
|
||||
var/speciestext = H.species.name
|
||||
@@ -408,6 +418,11 @@
|
||||
else
|
||||
speciestext = "[H.custom_species] \[Similar biology to [H.species.name]\]"
|
||||
dat += span_blue("Sapient Species: [speciestext]") + "<BR>"
|
||||
for(var/addic in H.get_all_addictions())
|
||||
if(H.get_addiction_to_reagent(addic) > 0 && H.get_addiction_to_reagent(addic) < 80)
|
||||
var/datum/reagent/R = SSchemistry.chemical_reagents[addic]
|
||||
has_withdrawl = R.name
|
||||
break
|
||||
var/t1
|
||||
switch(occupant.stat) // obvious, see what their status is
|
||||
if(0)
|
||||
@@ -612,6 +627,8 @@
|
||||
if(hasMalignants != "")
|
||||
dat += span_red("Unknown anatomy detected!") + "<BR>[hasMalignants]"
|
||||
//CHOMPedit end
|
||||
if(has_withdrawl != "")
|
||||
dat += span_red("Experiencing withdrawal symptoms!") + "<BR>[has_withdrawl]"
|
||||
if(HUSK in occupant.mutations) // VOREstation edit
|
||||
dat += span_red("Anatomical structure lost, resuscitation not possible!") + "<BR>"
|
||||
else
|
||||
|
||||
@@ -13,7 +13,8 @@ export const BodyScannerMainAbnormalities = (props: { occupant: occupant }) => {
|
||||
occupant.nearsighted ||
|
||||
occupant.brokenspine ||
|
||||
occupant.hasVirus ||
|
||||
occupant.husked;
|
||||
occupant.husked ||
|
||||
occupant.hasWithdrawl;
|
||||
|
||||
hasAbnormalities =
|
||||
hasAbnormalities ||
|
||||
|
||||
@@ -49,6 +49,11 @@ export const abnormalities: (string | ((occupant: occupant) => string))[][] = [
|
||||
'bad',
|
||||
(occupant) => 'Anatomical structure lost, resuscitation not possible!',
|
||||
],
|
||||
[
|
||||
'hasWithdrawl',
|
||||
'bad',
|
||||
(occupant) => 'Experiencing withdrawal! Inaprovaline can reduce symptoms.',
|
||||
],
|
||||
];
|
||||
|
||||
export const damages: string[][] = [
|
||||
|
||||
@@ -38,6 +38,7 @@ export type occupant = {
|
||||
objectPrey: number;
|
||||
weight: number;
|
||||
husked: BooleanLike;
|
||||
hasWithdrawl: BooleanLike;
|
||||
};
|
||||
|
||||
type reagent = { name: string; amount: number; overdose: BooleanLike };
|
||||
|
||||
Reference in New Issue
Block a user