mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Status messages are also modified by colour replace lists.
This commit is contained in:
@@ -104,6 +104,12 @@ var/list/wireColours = list("red", "blue", "green", "black", "orange", "brown",
|
||||
data["wires"] = W
|
||||
|
||||
var/list/status = get_status()
|
||||
if(replace_colours)
|
||||
for(var/colour in replace_colours)
|
||||
var/i
|
||||
for(i=1, i<=status.len, i++)
|
||||
if(findtext(status[i],colour))
|
||||
status[i] = replacetext(status[i],colour,replace_colours[colour])
|
||||
data["status_len"] = status.len
|
||||
data["status"] = status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user