Skip to content

Commit

Permalink
normal component removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoonij committed Sep 19, 2024
1 parent 9dd5028 commit f381865
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion code/datums/components/devour.dm
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
target.extinguish_light()
target.forceMove(mob)
ADD_TRAIT(target, TRAIT_DEVOURED, UNIQUE_TRAIT_SOURCE(src))
SEND_SIGNAL(mob, COMSIG_COMPONENT_DEVOURED_TARGET, target)
return mob

/datum/component/devour/proc/check_types(atom/movable/atom)
Expand Down Expand Up @@ -97,7 +98,6 @@
playsound(parent, 'sound/misc/demon_attack1.ogg', 100, TRUE)
mob.visible_message(span_warning("[mob] swallows [atom] whole!"))
add_to_contents(atom)
SEND_SIGNAL(mob, COMSIG_COMPONENT_DEVOURED_TARGET, atom, params)

/datum/component/devour/proc/on_mob_death(gibbed)
SIGNAL_HANDLER
Expand Down
5 changes: 2 additions & 3 deletions code/modules/mob/living/carbon/human/species/kidan.dm
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,8 @@
// Removing the action for creating pheromones
var/datum/action/innate/produce_pheromones/produce_pheromones = locate() in human.actions
produce_pheromones?.Remove(human)
var/devour_component = human.GetComponent(/datum/component/devour/advanced)
if(devour_component)
qdel(devour_component)
if(human.GetComponent(/datum/component/devour/advanced))
qdel(human.GetComponent(/datum/component/devour/advanced))


/// Pheromones spawnable by kida, only perceivable by other kida
Expand Down
5 changes: 2 additions & 3 deletions code/modules/mob/living/carbon/human/species/tajaran.dm
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,5 @@
remove_verb(human, /mob/living/carbon/human/proc/emote_purr)
remove_verb(human, /mob/living/carbon/human/proc/emote_purrl)
remove_verb(human, /mob/living/carbon/human/proc/emote_hiss_tajaran)
var/devour_component = human.GetComponent(/datum/component/devour/advanced)
if(devour_component)
qdel(devour_component)
if(human.GetComponent(/datum/component/devour/advanced))
qdel(human.GetComponent(/datum/component/devour/advanced))
5 changes: 2 additions & 3 deletions code/modules/mob/living/carbon/human/species/unathi.dm
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,8 @@
/mob/living/carbon/human/proc/emote_rumble))
var/datum/action/innate/tail_cut/lash = locate() in human.actions
lash?.Remove(human)
var/devour_component = human.GetComponent(/datum/component/devour/advanced)
if(devour_component)
qdel(devour_component)
if(human.GetComponent(/datum/component/devour/advanced))
qdel(human.GetComponent(/datum/component/devour/advanced))


/datum/species/unathi/handle_life(mob/living/carbon/human/H)
Expand Down
5 changes: 2 additions & 3 deletions code/modules/mob/living/carbon/human/species/vulpkanin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,5 @@
remove_verb(human, /mob/living/carbon/human/proc/emote_swag)
remove_verb(human, /mob/living/carbon/human/proc/emote_howl)
remove_verb(human, /mob/living/carbon/human/proc/emote_growl)
var/devour_component = human.GetComponent(/datum/component/devour/advanced)
if(devour_component)
qdel(devour_component)
if(human.GetComponent(/datum/component/devour/advanced))
qdel(human.GetComponent(/datum/component/devour/advanced))

0 comments on commit f381865

Please sign in to comment.