Skip to content

Commit

Permalink
breathing tag qol
Browse files Browse the repository at this point in the history
  • Loading branch information
carpotoxin committed Oct 21, 2024
1 parent 5c11247 commit a798389
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions modular_doppler/modular_quirks/breather/accessories.dm
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/obj/item/clothing/accessory/breathing
name = "breathing dogtag"
desc = "Dogtag that lists what you breathe."
desc = "A dogtag which labels what kind of gas a person may breathe."
icon_state = "allergy"
above_suit = FALSE
minimize_when_attached = TRUE
attachment_slot = CHEST
attachment_slot = NONE
var/breath_type

/obj/item/clothing/accessory/breathing/examine(mob/user)
Expand All @@ -13,15 +12,15 @@

/obj/item/clothing/accessory/breathing/accessory_equipped(obj/item/clothing/under/uniform, user)
. = ..()
RegisterSignal(uniform, COMSIG_ATOM_EXAMINE, PROC_REF(on_examine))
RegisterSignal(user, COMSIG_ATOM_EXAMINE, PROC_REF(on_examine))

/obj/item/clothing/accessory/breathing/accessory_dropped(obj/item/clothing/under/uniform, user)
. = ..()
UnregisterSignal(uniform, COMSIG_ATOM_EXAMINE)
UnregisterSignal(user, COMSIG_ATOM_EXAMINE)

/obj/item/clothing/accessory/breathing/proc/on_examine(datum/source, mob/user, list/examine_list)
SIGNAL_HANDLER
examine_list += "The dogtag reads: I breathe [breath_type]."
examine_list += "[user.p_Their()] <b>[name]</b> reads: 'I breathe [breath_type]'."


// Accessory for Akula species, it makes them wet and happy! :)
Expand Down

0 comments on commit a798389

Please sign in to comment.