From 899d7c0b2b27993a6f33ce0218a2aec3da06ccdf Mon Sep 17 00:00:00 2001 From: Verkister Date: Tue, 2 Jan 2018 19:03:47 +0200 Subject: [PATCH] Makes belly bulge examine add up prey sizes. -If prey 1 is too small to show up, ya get no visible bulge. -But if you eat another prey also too small to show up, but take enough space together with the first one, ya get bulge. -Also if you eat a small person, and then a big person, ya now get bulge too. (unlike before) OwO --- code/modules/vore/eating/belly_vr.dm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/code/modules/vore/eating/belly_vr.dm b/code/modules/vore/eating/belly_vr.dm index 13a7842ff4b..05184f7421c 100644 --- a/code/modules/vore/eating/belly_vr.dm +++ b/code/modules/vore/eating/belly_vr.dm @@ -192,15 +192,18 @@ if(internal_contents.len && examine_messages.len) var/formatted_message var/raw_message = pick(examine_messages) + var/total_bulge = 0 formatted_message = replacetext(raw_message,"%belly",lowertext(name)) formatted_message = replacetext(formatted_message,"%pred",owner) formatted_message = replacetext(formatted_message,"%prey",english_list(internal_contents)) for(var/mob/living/P in internal_contents) - if(!P.absorbed && P.size_multiplier >= bulge_size && bulge_size != 0) //This is required first, in case there's a person absorbed and not absorbed in a stomach. - return("[formatted_message]
") - else if(P.absorbed || P.size_multiplier < bulge_size || bulge_size == 0) //Are they absorbed, too small to show up, or examining this stomach is disabled? - return "" + if(!P.absorbed) //This is required first, in case there's a person absorbed and not absorbed in a stomach. + total_bulge += P.size_multiplier + if(total_bulge >= bulge_size && bulge_size != 0) + return("[formatted_message]
") + else if(total_bulge < bulge_size || bulge_size == 0) //Are they absorbed, too small to show up, or examining this stomach is disabled? + return "" // The next function gets the messages set on the belly, in human-readable format. // This is useful in customization boxes and such. The delimiter right now is \n\n so