mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 06:22:26 +01:00
Adds Destroy to both handheld and wall mirrors
This commit is contained in:
@@ -64,6 +64,13 @@
|
||||
user.visible_message("<span class='danger'>[user] hits [src] and bounces off!</span>")
|
||||
return 1
|
||||
|
||||
/obj/structure/mirror/Destroy()
|
||||
for(var/user in ui_users)
|
||||
var/datum/nano_module/appearance_changer/AC = ui_users[user]
|
||||
qdel(AC)
|
||||
ui_users.Cut()
|
||||
..()
|
||||
|
||||
// The following mirror is ~special~.
|
||||
/obj/structure/mirror/raider
|
||||
name = "cracked mirror"
|
||||
@@ -107,4 +114,11 @@
|
||||
AC.name = "SalonPro Nano-Mirror™"
|
||||
AC.flags = APPEARANCE_HAIR
|
||||
ui_users[user] = AC
|
||||
AC.ui_interact(user)
|
||||
AC.ui_interact(user)
|
||||
|
||||
/obj/item/weapon/mirror/Destroy()
|
||||
for(var/user in ui_users)
|
||||
var/datum/nano_module/appearance_changer/AC = ui_users[user]
|
||||
qdel(AC)
|
||||
ui_users.Cut()
|
||||
..()
|
||||
Reference in New Issue
Block a user