Skip to content

Commit

Permalink
ASYNC
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoonij authored Sep 19, 2024
1 parent ff532d8 commit 796d149
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions code/datums/components/devour.dm
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@
if(!silent)
gourmet.visible_message(span_notice("[gourmet.name] прекраща[pluralize_ru(gourmet.gender,"ет","ют")] поглощать [living.name]!"))
return


INVOKE_ASYNC(src, PROC_REF(after_devour), gourmet, target)
return COMSIG_MOB_DEVOURED

/datum/component/devour/advanced/proc/after_devour(mob/living/carbon/gourmet, mob/living/target)
if(!silent)
gourmet.visible_message(span_danger("[gourmet.name] поглоща[pluralize_ru(gourmet.gender,"ет","ют")] [living.name]!"))

Check failure on line 146 in code/datums/components/devour.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "living"

Check warning on line 146 in code/datums/components/devour.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "name"

Expand All @@ -157,7 +161,6 @@

living.forceMove(gourmet)

Check failure on line 162 in code/datums/components/devour.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "living"

Check warning on line 162 in code/datums/components/devour.dm

View workflow job for this annotation

GitHub Actions / Run Linters

proc call requires static type: "forceMove"
LAZYADD(gourmet.stomach_contents, living)

Check failure on line 163 in code/datums/components/devour.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "living"
return COMSIG_MOB_DEVOURED

/// Does all the checking for the [/proc/devoured()] to see if a mob can eat another with the grab.
/datum/component/devour/advanced/proc/can_devour(mob/living/carbon/gourmet, mob/living/target)
Expand Down

0 comments on commit 796d149

Please sign in to comment.