diff --git a/code/game/machinery/computer/aifixer.dm b/code/game/machinery/computer/aifixer.dm index 53964ce5f55..75f2a0711cd 100644 --- a/code/game/machinery/computer/aifixer.dm +++ b/code/game/machinery/computer/aifixer.dm @@ -47,8 +47,10 @@ var/laws[0] for(var/datum/ai_law/law in occupant.laws.all_laws()) - laws.Add(num2text(law.get_index()) + ". " + law.law) - + if(law in occupant.laws.ion_laws) // If we're an ion law, give it an ion index code + laws.Add(ionnum() + ". " + law.law) + else + laws.Add(num2text(law.get_index()) + ". " + law.law) data["laws"] = laws return data diff --git a/tgui/packages/tgui/interfaces/AIFixer.js b/tgui/packages/tgui/interfaces/AIFixer.js index 9696060e506..5f9812ac054 100644 --- a/tgui/packages/tgui/interfaces/AIFixer.js +++ b/tgui/packages/tgui/interfaces/AIFixer.js @@ -15,18 +15,23 @@ export const AIFixer = (props, context) => { ); } else { - let workingAI = null; + + let workingAI = null; // If the AI is dead (stat = 2) or isn't existent if (data.stat === 2 || data.stat === null) { workingAI = false; } else { workingAI = true; } - let integrityColor = null; + let integrityColor = null; // Handles changing color of the integrity bar if (data.integrity >= 75) { integrityColor = 'green'; } else if (data.integrity >= 25) { integrityColor = 'yellow'; } else { integrityColor = 'red'; } + let integrityFull = null; // If integrity >= 100, prevents overchar + if (data.integrity >= 100) { integrityFull = true; } + else { integrityFull = false; } + return ( @@ -38,7 +43,9 @@ export const AIFixer = (props, context) => {
- + { {workingAI ? "Functional" : "Non-Functional"} -
+
{data.laws.map((value, key) => ( - + {value} ))} @@ -77,8 +84,8 @@ export const AIFixer = (props, context) => {