mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
Glove small resprite, inhands and some cleanup (#8372)
This commit is contained in:
@@ -72,15 +72,75 @@
|
||||
|
||||
return
|
||||
|
||||
/obj/item/mesmetron
|
||||
name = "mesmetron pocketwatch"
|
||||
desc = "An elaborate pocketwatch, with captivating gold etching and an enchanting face. . ."
|
||||
/obj/item/pocketwatch
|
||||
name = "pocketwatch"
|
||||
desc = "A watch that goes in your pocket."
|
||||
description_fluff = "Because your wrists have better things to do."
|
||||
icon = 'icons/obj/items.dmi'
|
||||
icon_state = "pocketwatch"
|
||||
drop_sound = 'sound/items/drop/accessory.ogg'
|
||||
matter = list("glass" = 150, "gold" = 50)
|
||||
w_class = 1
|
||||
var/closed = FALSE
|
||||
|
||||
/obj/item/pocketwatch/AltClick(mob/user)
|
||||
if(!closed)
|
||||
icon_state = "[initial(icon_state)]_closed"
|
||||
to_chat(user, "You clasp the [name] shut.")
|
||||
playsound(src.loc, 'sound/weapons/blade_close.ogg', 50, 1)
|
||||
else
|
||||
icon_state = "[initial(icon_state)]"
|
||||
to_chat(user, "You flip the [name] open.")
|
||||
playsound(src.loc, 'sound/weapons/blade_open.ogg', 50, 1)
|
||||
closed = !closed
|
||||
|
||||
/obj/item/pocketwatch/examine(mob/user)
|
||||
..()
|
||||
if (get_dist(src, user) <= 1)
|
||||
checktime()
|
||||
|
||||
/obj/item/pocketwatch/verb/checktime(mob/user)
|
||||
set category = "Object"
|
||||
set name = "Check Time"
|
||||
set src in usr
|
||||
|
||||
if(closed)
|
||||
to_chat(usr, "You check your watch, realising it's closed.")
|
||||
else
|
||||
to_chat(usr, "You check your watch, glancing over at the watch face, reading the time to be '[worldtime2text()]'. Today's date is '[time2text(world.time, "Month DD")]. [game_year]'.")
|
||||
|
||||
/obj/item/pocketwatch/verb/pointatwatch()
|
||||
set category = "Object"
|
||||
set name = "Point at watch"
|
||||
set src in usr
|
||||
|
||||
if(closed)
|
||||
usr.visible_message (span("notice", "[usr] taps their foot on the floor, arrogantly pointing at the [src] in their hand with a look of derision in their eyes, not noticing it's closed."), span("notice", "You point down at the [src], an arrogant look about your eyes."))
|
||||
else
|
||||
usr.visible_message (span("notice", "[usr] taps their foot on the floor, arrogantly pointing at the [src] in their hand with a look of derision in their eyes."), span("notice", "You point down at the [src], an arrogant look about your eyes."))
|
||||
|
||||
/obj/item/mesmetron
|
||||
name = "mesmetron pocketwatch"
|
||||
desc = "An elaborate pocketwatch, with a captivating gold etching and an enchanting face. . ."
|
||||
icon = 'icons/obj/items.dmi'
|
||||
icon_state = "pocketwatch"
|
||||
drop_sound = 'sound/items/drop/accessory.ogg'
|
||||
matter = list("glass" = 150, "gold" = 50)
|
||||
w_class = 1
|
||||
var/datum/weakref/thrall = null
|
||||
var/time_counter = 0
|
||||
var/closed = FALSE
|
||||
|
||||
/obj/item/mesmetron/AltClick(mob/user)
|
||||
if(!closed)
|
||||
icon_state = "[initial(icon_state)]_closed"
|
||||
to_chat(user, "You clasp the [name] shut.")
|
||||
playsound(src.loc, 'sound/weapons/blade_close.ogg', 50, 1)
|
||||
else
|
||||
icon_state = "[initial(icon_state)]"
|
||||
to_chat(user, "You flip the [name] open.")
|
||||
playsound(src.loc, 'sound/weapons/blade_open.ogg', 50, 1)
|
||||
closed = !closed
|
||||
|
||||
/obj/item/mesmetron/Destroy()
|
||||
STOP_PROCESSING(SSfast_process, src)
|
||||
@@ -113,7 +173,7 @@
|
||||
STOP_PROCESSING(SSfast_process, src)
|
||||
|
||||
/obj/item/mesmetron/attack_self(mob/user as mob)
|
||||
if(!thrall || !thrall.resolve())
|
||||
if(!closed || !thrall || !thrall.resolve())
|
||||
thrall = null
|
||||
to_chat(user, "You decipher the watch's mesmerizing face, discerning the time to be: '[worldtime2text()]'. Today's date is '[time2text(world.time, "Month DD")]. [game_year]'.")
|
||||
return
|
||||
@@ -143,6 +203,9 @@
|
||||
thrall = null
|
||||
|
||||
/obj/item/mesmetron/afterattack(mob/living/carbon/human/H, mob/user, proximity)
|
||||
if(closed)
|
||||
return
|
||||
|
||||
if(!proximity)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user