From d7eea83d5757348db3cb342c03353289bc3bd3e9 Mon Sep 17 00:00:00 2001 From: VerySoft Date: Sat, 1 Mar 2025 17:58:44 -0500 Subject: [PATCH] fix simple mob bellies --- .../mob/living/simple_mob/simple_mob_vr.dm | 15 +++++++++++++++ code/modules/vore/eating/belly_obj_vr.dm | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_mob/simple_mob_vr.dm b/code/modules/mob/living/simple_mob/simple_mob_vr.dm index b0763d9fdc3..c056f6460d8 100644 --- a/code/modules/mob/living/simple_mob/simple_mob_vr.dm +++ b/code/modules/mob/living/simple_mob/simple_mob_vr.dm @@ -70,6 +70,21 @@ if(myid) return myid +// Update fullness based on size & quantity of belly contents +/mob/living/simple_mob/update_fullness(returning) + to_world("[src] update_fullness") + var/new_fullness = 0 + for(var/obj/belly/B as anything in vore_organs) + for(var/mob/living/M in B) + //RS edit start + if(!M.absorbed || B.count_absorbed_prey_for_sprite) + new_fullness += M.size_multiplier + //RS edit end + new_fullness = new_fullness / size_multiplier //Divided by pred's size so a macro mob won't get macro belly from a regular prey. + new_fullness = new_fullness * belly_size_multiplier // Some mobs are small even at 100% size. Let's account for that. + new_fullness = round(new_fullness, 1) // Because intervals of 0.25 are going to make sprite artists cry. + vore_fullness = min(vore_capacity, new_fullness) + /mob/living/simple_mob/update_icon() . = ..() if(vore_active) diff --git a/code/modules/vore/eating/belly_obj_vr.dm b/code/modules/vore/eating/belly_obj_vr.dm index 0b3789b058b..3c49f75ddd8 100644 --- a/code/modules/vore/eating/belly_obj_vr.dm +++ b/code/modules/vore/eating/belly_obj_vr.dm @@ -194,13 +194,13 @@ "You feel your %belly beginning to become active!") var/list/digest_chance_messages_prey = list( - "In response to your struggling, %owner's %belly begins to get more active...") + "In response to your struggling, %pred's %belly begins to get more active...") var/list/absorb_chance_messages_owner = list( "You feel your %belly start to cling onto its contents...") var/list/absorb_chance_messages_prey = list( - "In response to your struggling, %owner's %belly begins to cling more tightly...") + "In response to your struggling, %pred's %belly begins to cling more tightly...") //RS EDIT END var/list/select_chance_messages_owner = list( "You feel your %belly beginning to become active!")