mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] ABS shows appendicitis
This commit is contained in:
committed by
Darlantan
parent
ffbce7366a
commit
74dd9fc236
@@ -318,6 +318,10 @@
|
|||||||
organData["robotic"] = (I.robotic >= ORGAN_ROBOT)
|
organData["robotic"] = (I.robotic >= ORGAN_ROBOT)
|
||||||
organData["dead"] = (I.status & ORGAN_DEAD)
|
organData["dead"] = (I.status & ORGAN_DEAD)
|
||||||
|
|
||||||
|
if(istype(I, /obj/item/organ/internal/appendix))
|
||||||
|
var/obj/item/organ/internal/appendix/A = I
|
||||||
|
organData["inflamed"] = A.inflamed
|
||||||
|
|
||||||
intOrganData.Add(list(organData))
|
intOrganData.Add(list(organData))
|
||||||
|
|
||||||
occupantData["intOrgan"] = intOrganData
|
occupantData["intOrgan"] = intOrganData
|
||||||
@@ -497,23 +501,28 @@
|
|||||||
if(i.robotic >= ORGAN_ROBOT)
|
if(i.robotic >= ORGAN_ROBOT)
|
||||||
mech = "Mechanical:"
|
mech = "Mechanical:"
|
||||||
if(i.status & ORGAN_DEAD)
|
if(i.status & ORGAN_DEAD)
|
||||||
i_dead = "Necrotic:"
|
i_dead = "Necrotic"
|
||||||
var/infection = "None"
|
var/infection = "None"
|
||||||
switch (i.germ_level)
|
switch (i.germ_level)
|
||||||
if (INFECTION_LEVEL_ONE to INFECTION_LEVEL_ONE + 200)
|
if (INFECTION_LEVEL_ONE to INFECTION_LEVEL_ONE + 200)
|
||||||
infection = "Mild Infection:"
|
infection = "Mild Infection"
|
||||||
if (INFECTION_LEVEL_ONE + 200 to INFECTION_LEVEL_ONE + 300)
|
if (INFECTION_LEVEL_ONE + 200 to INFECTION_LEVEL_ONE + 300)
|
||||||
infection = "Mild Infection+:"
|
infection = "Mild Infection+"
|
||||||
if (INFECTION_LEVEL_ONE + 300 to INFECTION_LEVEL_ONE + 400)
|
if (INFECTION_LEVEL_ONE + 300 to INFECTION_LEVEL_ONE + 400)
|
||||||
infection = "Mild Infection++:"
|
infection = "Mild Infection++"
|
||||||
if (INFECTION_LEVEL_TWO to INFECTION_LEVEL_TWO + 200)
|
if (INFECTION_LEVEL_TWO to INFECTION_LEVEL_TWO + 200)
|
||||||
infection = "Acute Infection:"
|
infection = "Acute Infection"
|
||||||
if (INFECTION_LEVEL_TWO + 200 to INFECTION_LEVEL_TWO + 300)
|
if (INFECTION_LEVEL_TWO + 200 to INFECTION_LEVEL_TWO + 300)
|
||||||
infection = "Acute Infection+:"
|
infection = "Acute Infection+"
|
||||||
if (INFECTION_LEVEL_TWO + 300 to INFECTION_LEVEL_THREE - 50)
|
if (INFECTION_LEVEL_TWO + 300 to INFECTION_LEVEL_THREE - 50)
|
||||||
infection = "Acute Infection++:"
|
infection = "Acute Infection++"
|
||||||
if (INFECTION_LEVEL_THREE -49 to INFINITY)
|
if (INFECTION_LEVEL_THREE -49 to INFINITY)
|
||||||
infection = "Necrosis Detected:"
|
infection = "Necrosis Detected"
|
||||||
|
|
||||||
|
if(istype(i, /obj/item/organ/internal/appendix))
|
||||||
|
var/obj/item/organ/internal/appendix/A = i
|
||||||
|
if(A.inflamed)
|
||||||
|
infection = "Inflammation detected!"
|
||||||
|
|
||||||
dat += "<tr>"
|
dat += "<tr>"
|
||||||
dat += "<td>[i.name]</td><td>N/A</td><td>[i.damage]</td><td>[infection]:[mech][i_dead]</td><td></td>"
|
dat += "<td>[i.name]</td><td>N/A</td><td>[i.damage]</td><td>[infection]:[mech][i_dead]</td><td></td>"
|
||||||
|
|||||||
@@ -496,6 +496,7 @@ const BodyScannerMainOrgansInternal = props => {
|
|||||||
<Box color="average" display="inline">
|
<Box color="average" display="inline">
|
||||||
{reduceOrganStatus([
|
{reduceOrganStatus([
|
||||||
germStatus(o.germ_level),
|
germStatus(o.germ_level),
|
||||||
|
!!o.inflamed && "Appendicitis detected.",
|
||||||
])}
|
])}
|
||||||
</Box>
|
</Box>
|
||||||
<Box display="inline">
|
<Box display="inline">
|
||||||
|
|||||||
43
tgui/packages/tgui/interfaces/StationBlueprints.js
Normal file
43
tgui/packages/tgui/interfaces/StationBlueprints.js
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
import { filter, sortBy } from 'common/collections';
|
||||||
|
import { flow } from 'common/fp';
|
||||||
|
import { classes } from 'common/react';
|
||||||
|
import { createSearch } from 'common/string';
|
||||||
|
import { Fragment } from 'inferno';
|
||||||
|
import { useBackend, useLocalState } from '../backend';
|
||||||
|
import { Button, ByondUi, Input, Section, Dropdown } from '../components';
|
||||||
|
import { refocusLayout, Window } from '../layouts';
|
||||||
|
|
||||||
|
|
||||||
|
export const StationBlueprints = (props, context) => {
|
||||||
|
return (
|
||||||
|
<Window
|
||||||
|
width={870}
|
||||||
|
height={708}
|
||||||
|
resizable>
|
||||||
|
<StationBlueprintsContent />
|
||||||
|
</Window>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const StationBlueprintsContent = (props, context) => {
|
||||||
|
const { act, data, config } = useBackend(context);
|
||||||
|
|
||||||
|
const { mapRef, areas, turfs } = data;
|
||||||
|
return (
|
||||||
|
<Fragment>
|
||||||
|
<div className="CameraConsole__left">
|
||||||
|
<Window.Content scrollable>
|
||||||
|
Honk!
|
||||||
|
</Window.Content>
|
||||||
|
</div>
|
||||||
|
<div className="CameraConsole__right">
|
||||||
|
<ByondUi
|
||||||
|
className="CameraConsole__map"
|
||||||
|
params={{
|
||||||
|
id: mapRef,
|
||||||
|
type: 'map',
|
||||||
|
}} />
|
||||||
|
</div>
|
||||||
|
</Fragment>
|
||||||
|
);
|
||||||
|
};
|
||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user