AI restoration console shows ion laws

AI restoration console now displays ion laws just as the intelliCard does.
Fixes a minor problem with the intelliCard not adding newlines after ion laws.
This commit is contained in:
PsiOmega
2014-09-19 17:52:25 +02:00
parent a35ff3e4e7
commit 03a293d226
2 changed files with 12 additions and 10 deletions

View File

@@ -38,18 +38,22 @@
var/laws
dat += "Stored AI: [src.occupant.name]<br>System integrity: [(src.occupant.health+100)/2]%<br>"
for (var/law in occupant.laws.ion)
if(law)
laws += "[ionnum()]: [law]<BR>"
if (src.occupant.laws.zeroth)
laws += "0: [src.occupant.laws.zeroth]<BR>"
laws += "0: [occupant.laws.zeroth]<BR>"
var/number = 1
for (var/index = 1, index <= src.occupant.laws.inherent.len, index++)
var/law = src.occupant.laws.inherent[index]
for (var/index = 1, index <= occupant.laws.inherent.len, index++)
var/law = occupant.laws.inherent[index]
if (length(law) > 0)
laws += "[number]: [law]<BR>"
number++
for (var/index = 1, index <= src.occupant.laws.supplied.len, index++)
var/law = src.occupant.laws.supplied[index]
for (var/index = 1, index <= occupant.laws.supplied.len, index++)
var/law = occupant.laws.supplied[index]
if (length(law) > 0)
laws += "[number]: [law]<BR>"
number++