sleeper ui compartibility

ugly but less work & less ugly than completely rewriting it.
If anyone else wants to, be my guest.
This commit is contained in:
DeltaFire
2020-11-15 20:47:22 +01:00
parent 410ffffcc3
commit e191cd3b5b
3 changed files with 3 additions and 2 deletions

View File

@@ -209,6 +209,7 @@
data["occupant"]["fireLoss"] = mob_occupant.getFireLoss()
data["occupant"]["cloneLoss"] = mob_occupant.getCloneLoss()
data["occupant"]["brainLoss"] = mob_occupant.getOrganLoss(ORGAN_SLOT_BRAIN)
data["occupant"]["is_robotic_organism"] = HAS_TRAIT(mob_occupant, TRAIT_ROBOTIC_ORGANISM)
data["occupant"]["reagents"] = list()
if(mob_occupant.reagents && mob_occupant.reagents.reagent_list.len)
for(var/datum/reagent/R in mob_occupant.reagents.reagent_list)

View File

@@ -73,7 +73,7 @@ export const Sleeper = (props, context) => {
{damageTypes.map(type => (
<LabeledList.Item
key={type.type}
label={type.label}>
label={occupant.is_robotic_organism && type.label === 'Toxin' ? 'Corruption' : type.label}>
<ProgressBar
value={occupant[type.type]}
minValue={0}

File diff suppressed because one or more lines are too long