Add colored tapes to the random render-pass

This commit is contained in:
Tad Hardesty 2018-03-18 01:42:11 -07:00
parent 5f1f2dc554
commit ec7087ebb8

View file

@ -105,6 +105,9 @@ impl RenderPass for Random {
} else if atom.istype("/obj/item/lipstick/random/") {
atom.set_var("icon_state", Constant::string("lipstick"));
// random color is not outwardly visible
} else if atom.istype("/obj/item/device/tape/random/") {
let icon = format!("tape_{}", rng.choose(&["white", "blue", "red", "yellow", "purple"]).unwrap());
atom.set_var("icon_state", Constant::string(icon));
}
}
}