Skip to content

Commit

Permalink
You can now light cigarettes on ethereals!
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Feb 25, 2024
1 parent 5cd9c93 commit a469b51
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,20 @@
HAIR,
FACEHAIR,
)

/datum/species/ethereal/on_species_gain(mob/living/carbon/new_ethereal, datum/species/old_species, pref_load)
. = ..()
RegisterSignal(new_ethereal, COMSIG_ATOM_AFTER_ATTACKEDBY, PROC_REF(on_after_attackedby))

/datum/species/ethereal/on_species_loss(mob/living/carbon/human/former_ethereal, datum/species/new_species, pref_load)
. = ..()
UnregisterSignal(former_ethereal, COMSIG_ATOM_AFTER_ATTACKEDBY)

/datum/species/ethereal/proc/on_after_attackedby(mob/living/lightbulb, obj/item/item, mob/living/user, proximity_flag, click_parameters)
SIGNAL_HANDLER
var/obj/item/clothing/mask/cigarette/cig = item
if(!proximity_flag || !istype(cig) || !istype(user) || cig.lit)
return
cig.light()
user.visible_message(span_notice("[user] quickly strikes [item] across [lightbulb]'s skin, [lightbulb.p_their()] warmth lighting it!"))
return COMPONENT_NO_AFTERATTACK

0 comments on commit a469b51

Please sign in to comment.