mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
handheld mirror traitor item (#22042)
* Adds handheld mirror item and adds it to traitor items * Adjusted cost for economy refactor * Revert "Adjusted cost for economy refactor" This reverts commitf31cbae8be. * actually adjusts properly * Update code/game/objects/items/devices/traitordevices.dm Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com> * removes redundant proc * Adds inhand sprite and adds herald cloak functionality * Revert "Adds inhand sprite and adds herald cloak functionality" This reverts commit3b2531f509. * undoes the toolboxdmi change * REMOVES CODER SPRITE FROM DEVICES * fixes a runtime herald cloak would runtime when teleporting to a person holding a mirror object in hand/pocket * stuns anyone holding a mirror when jaunted through * fixes merge conflict and changes uplink description * mergeconflict * actually fixes mconflict * please bro just fix the conflict bro please * Fixpls --------- Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
This commit is contained in:
@@ -405,3 +405,28 @@
|
||||
|
||||
times_used = max_uses - 1
|
||||
activate_batterer()
|
||||
|
||||
/obj/item/handheld_mirror
|
||||
name = "hand mirror"
|
||||
desc = "Style, on the go!"
|
||||
icon = 'icons/obj/hhmirror.dmi'
|
||||
icon_state = "hhmirror"
|
||||
w_class = WEIGHT_CLASS_TINY
|
||||
var/datum/ui_module/appearance_changer/appearance_changer_holder
|
||||
|
||||
/obj/item/handheld_mirror/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.hands_state)
|
||||
appearance_changer_holder.ui_interact(user, ui_key, ui, force_open, master_ui, state = GLOB.hands_state)
|
||||
|
||||
/obj/item/handheld_mirror/attack_self(mob/user)
|
||||
if(ishuman(user))
|
||||
appearance_changer_holder = new(src, user)
|
||||
ui_interact(user)
|
||||
|
||||
/obj/item/handheld_mirror/Initialize(mapload)
|
||||
. = ..()
|
||||
GLOB.mirrors += src
|
||||
|
||||
/obj/item/handheld_mirror/Destroy()
|
||||
GLOB.mirrors -= src
|
||||
QDEL_NULL(appearance_changer_holder)
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user