mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
Many vore improvements. (#7686)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user