Fixes me destroying the IDC in the last commit (#95695)

This commit is contained in:
MrMelbert
2026-04-10 00:53:59 +02:00
committed by GitHub
parent e9cc8fd978
commit ee08406e4a
3 changed files with 13 additions and 9 deletions
@@ -1,5 +1,7 @@
/datum/disease/revblight
name = "Unnatural Wasting"
desc = "A strange condition which causes the victim to feel as if they were wasting away, despite being otherwise (almost) perfectly healthy."
form = "Condition"
max_stages = 5
stage_prob = 5
spread_flags = DISEASE_SPREAD_NON_CONTAGIOUS
+2 -2
View File
@@ -433,7 +433,7 @@
"cured_by" = "Varies by symptom combination",
"id" = /datum/disease/advance,
)
disease_info += advanced_virus_info
disease_info += list(advanced_virus_info)
// validate
for(var/list/disease_data as anything in disease_info)
@@ -448,7 +448,7 @@
if(!disease_data["desc"])
disease_data["desc"] = "No description recorded - this is an error. Report this lack of research."
stack_trace("[type] - [disease_data["id"]] lacks a description!")
if(!disease_data["cured_by"])
if(!disease_data["cured_by"] && !ispath(disease_data["id"], /datum/symptom))
disease_data["cured_by"] = "Unknown"
stack_trace("[type] - [disease_data["id"]] lacks cure information!")
+9 -7
View File
@@ -9,7 +9,7 @@ type Disease = {
form: string; // used by symptoms and diseases - something like symptom, virus, bacteria, etc
agent: string; // used by diseases - the agent that causes the disease, like a virus or bacteria name
spread_by: string; // used by diseases - how the disease is spread, like "Airborne" or "Contact"
cured_by: string; // used by symptoms and diseases - how the disease or symptom is cured, like a medicine name or "Unknown"
cured_by: string | null; // used by symptoms and diseases - how the disease or symptom is cured, like a medicine name or "Unknown"
illness: string; // used by symptoms - the common illness associated with the symptom, like "Flu" for "Fever"
id: string;
};
@@ -157,12 +157,14 @@ function renderDSMEntry(entry: BookEntry<Disease>) {
"{entry.illness}"
</Stack.Item>
)}
<Stack.Item>
<Box inline color="label">
Common cures:
</Box>{' '}
{entry.cured_by}
</Stack.Item>
{!!entry.cured_by && (
<Stack.Item>
<Box inline color="label">
Common cures:
</Box>{' '}
{entry.cured_by}
</Stack.Item>
)}
</>
) : (
<>