Many vore improvements. (#7686)

This commit is contained in:
Matt Atlas
2019-12-19 20:06:14 +01:00
committed by Werner
parent bb65e5ac39
commit bbecc7b461
59 changed files with 239 additions and 507 deletions
+18 -1
View File
@@ -1,3 +1,5 @@
#define PUKE_ACTION_NAME "Empty Stomach"
/obj/item/organ/internal/stomach
name = "stomach"
desc = "Gross. This is hard to stomach."
@@ -18,6 +20,8 @@
ingested = new /datum/reagents/metabolism(240, owner, CHEM_INGEST)
if(!ingested.my_atom)
ingested.my_atom = src
if(species.gluttonous)
action_button_name = PUKE_ACTION_NAME
/obj/item/organ/internal/stomach/removed()
. = ..()
@@ -29,6 +33,18 @@
ingested.my_atom = owner
ingested.parent = owner
/obj/item/organ/internal/stomach/refresh_action_button()
. = ..()
if(.)
action.button_icon_state = "puke"
if(action.button) action.button.UpdateIcon()
/obj/item/organ/internal/stomach/attack_self(mob/user)
. = ..()
if(. && action_button_name == PUKE_ACTION_NAME && owner && !owner.incapacitated())
owner.vomit(deliberate = TRUE)
refresh_action_button()
/obj/item/organ/internal/stomach/proc/can_eat_atom(var/atom/movable/food)
return !isnull(get_devour_time(food))
@@ -113,4 +129,5 @@
if(prob(vomit_probability))
owner.vomit()
#undef STOMACH_VOLUME
#undef STOMACH_VOLUME
#undef PUKE_ACTION_NAME