mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
Made drones store their picked color and return to it when unhacked
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
var/staticChoice = "static"
|
||||
var/list/staticChoices = list("static", "blank", "letter", "animal")
|
||||
var/picked = FALSE //Have we picked our visual appearence (+ colour if applicable)
|
||||
var/colour = "grey" //Stored drone color, so we can go back when unhacked.
|
||||
var/list/drone_overlays[DRONE_TOTAL_LAYERS]
|
||||
var/laws = \
|
||||
"1. You may not involve yourself in the matters of another being, even if such matters conflict with Law Two or Law Three, unless the other being is another Drone.\n"+\
|
||||
|
||||
@@ -179,7 +179,7 @@
|
||||
else if(visualAppearence == REPAIRDRONE_HACKED)
|
||||
visualAppearence = REPAIRDRONE
|
||||
else if(visualAppearence == MAINTDRONE_HACKED)
|
||||
visualAppearence = MAINTDRONE
|
||||
visualAppearence = MAINTDRONE + "_[colour]"
|
||||
else if(hacked)
|
||||
if(visualAppearence == SCOUTDRONE)
|
||||
visualAppearence = SCOUTDRONE_HACKED
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
switch(appearence)
|
||||
if("Maintenance Drone")
|
||||
visualAppearence = MAINTDRONE
|
||||
var/colour = input("Choose your colour!", "Colour", "grey") in list("grey", "blue", "red", "green", "pink", "orange")
|
||||
colour = input("Choose your colour!", "Colour", "grey") in list("grey", "blue", "red", "green", "pink", "orange")
|
||||
icon_state = "[visualAppearence]_[colour]"
|
||||
icon_living = "[visualAppearence]_[colour]"
|
||||
icon_dead = "[visualAppearence]_dead"
|
||||
|
||||
Reference in New Issue
Block a user