Skip to content

Commit

Permalink
Resprites Mirrors, by ATPEngineer (#27927)
Browse files Browse the repository at this point in the history
* New Mirror Sprites by ATPEngineer

* Mirror Breaking code edits

* Update code/game/objects/structures/mirror.dm

Co-authored-by: Contrabang <[email protected]>
Signed-off-by: Tojo <[email protected]>

---------

Signed-off-by: Tojo <[email protected]>
Co-authored-by: Contrabang <[email protected]>
  • Loading branch information
Alecksohs and Contrabang authored Jan 12, 2025
1 parent a23f2df commit 7f49c57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/objects/structures/mirror.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
max_integrity = 200
integrity_failure = 100
var/list/ui_users = list()
var/broken_icon_state = "mirror_broke"

/obj/structure/mirror/Initialize(mapload, newdir = SOUTH, building = FALSE)
. = ..()
Expand Down Expand Up @@ -44,7 +45,7 @@

/obj/structure/mirror/obj_break(damage_flag, mapload)
if(!broken && !(flags & NODECONSTRUCT))
icon_state = "mirror_broke"
icon_state = broken_icon_state
if(!mapload)
playsound(src, "shatter", 70, TRUE)
if(desc == initial(desc))
Expand Down Expand Up @@ -95,6 +96,7 @@
/obj/structure/mirror/magic
name = "magic mirror"
icon_state = "magic_mirror"
broken_icon_state = "magic_mirror_broke"
var/options = list("Name", "Body", "Voice")
var/organ_warn = FALSE
var/actually_magical = TRUE
Expand Down
Binary file modified icons/obj/watercloset.dmi
Binary file not shown.

0 comments on commit 7f49c57

Please sign in to comment.