mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 03:51:49 +01:00
Adds on-mob sprites for the pocketwatch + differing states per slot worn (#20375)
I feel so sigma!   --------- Co-authored-by: Gabby <59633984+feartheblackout@users.noreply.github.com>
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
carrying primarily the essentials for survival and only a token amount of ammunition. Many detachments also make use of snow skiis in order to travel quickly in mountainous regions. \
|
||||
They are well-known for their iconic thick light-colored cloaks which they wear while traversing the vast countrysides for warmth, as well as camouflage."
|
||||
|
||||
/obj/item/pocketwatch/adhomai
|
||||
/obj/item/clothing/wrists/watch/pocketwatch/adhomai
|
||||
name = "adhomian watch"
|
||||
desc = "A watch made in the traditional adhomian style. It can be stored in a pocket or worn around the neck."
|
||||
desc_extended = "Baltoris a fortress founded during the Gunpowder Age; it was the landing site of the royal armies during the Suns'wars. Baltor plays a strategic role in controlling the \
|
||||
@@ -140,10 +140,10 @@
|
||||
slot_flags = SLOT_MASK
|
||||
var/static/months = list("Menshe-aysaif", "Sil'nryy-aysaif", "Menshe-rhazzimy", "Sil'nryy-rhazzimy")
|
||||
|
||||
/obj/item/pocketwatch/adhomai/get_mask_examine_text(mob/user)
|
||||
/obj/item/clothing/wrists/watch/pocketwatch/adhomai/get_mask_examine_text(mob/user)
|
||||
return "around [user.get_pronoun("his")] neck"
|
||||
|
||||
/obj/item/pocketwatch/adhomai/checktime(mob/user)
|
||||
/obj/item/clothing/wrists/watch/pocketwatch/adhomai/checktime(mob/user)
|
||||
set category = "Object"
|
||||
set name = "Check Time"
|
||||
set src in usr
|
||||
|
||||
@@ -1,52 +1,3 @@
|
||||
/obj/item/pocketwatch
|
||||
name = "pocketwatch"
|
||||
desc = "A watch that goes in your pocket."
|
||||
desc_extended = "Because your wrists have better things to do."
|
||||
icon = 'icons/obj/items.dmi'
|
||||
icon_state = "pocketwatch"
|
||||
drop_sound = 'sound/items/drop/accessory.ogg'
|
||||
pickup_sound = 'sound/items/pickup/accessory.ogg'
|
||||
matter = list(MATERIAL_GLASS = 150, MATERIAL_GOLD = 50)
|
||||
recyclable = TRUE
|
||||
w_class = WEIGHT_CLASS_TINY
|
||||
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, distance, is_adjacent, infix, suffix, show_extended)
|
||||
. = ..()
|
||||
if (distance <= 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")]. [GLOB.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. . ."
|
||||
|
||||
Reference in New Issue
Block a user