mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Add colored tapes to the random render-pass
This commit is contained in:
parent
5f1f2dc554
commit
ec7087ebb8
1 changed files with 3 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue