From cccd8d45a990619f2d6aae309fac4d6823e9d1fe Mon Sep 17 00:00:00 2001 From: Verkister Date: Tue, 25 Oct 2022 17:21:20 +0300 Subject: [PATCH] Makes slow body digestion a belly mode addon This way there was no need to add another extra button to clutter the tgui The extra brutal version will stay as a varedit thing for now. Doesn't have enough relevancy to get an actual button tbh. --- code/__defines/belly_modes_vr.dm | 1 + code/modules/vore/eating/belly_obj_vr.dm | 2 +- code/modules/vore/eating/vorepanel_vr.dm | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/__defines/belly_modes_vr.dm b/code/__defines/belly_modes_vr.dm index 2d8f714fc4..7ac58ddf6b 100644 --- a/code/__defines/belly_modes_vr.dm +++ b/code/__defines/belly_modes_vr.dm @@ -21,6 +21,7 @@ #define DM_FLAG_AFFECTWORN 0x10 #define DM_FLAG_JAMSENSORS 0x20 #define DM_FLAG_FORCEPSAY 0x40 +#define DM_FLAG_SLOWBODY 0x80 //CHOMPAdd //Item related modes #define IM_HOLD "Hold" diff --git a/code/modules/vore/eating/belly_obj_vr.dm b/code/modules/vore/eating/belly_obj_vr.dm index da13dc5192..2a43994781 100644 --- a/code/modules/vore/eating/belly_obj_vr.dm +++ b/code/modules/vore/eating/belly_obj_vr.dm @@ -71,7 +71,7 @@ //Actual full digest modes var/tmp/static/list/digest_modes = list(DM_HOLD,DM_DIGEST,DM_ABSORB,DM_DRAIN,DM_SELECT,DM_UNABSORB,DM_HEAL,DM_SHRINK,DM_GROW,DM_SIZE_STEAL,DM_EGG) //Digest mode addon flags - var/tmp/static/list/mode_flag_list = list("Numbing" = DM_FLAG_NUMBING, "Stripping" = DM_FLAG_STRIPPING, "Leave Remains" = DM_FLAG_LEAVEREMAINS, "Muffles" = DM_FLAG_THICKBELLY, "Affect Worn Items" = DM_FLAG_AFFECTWORN, "Jams Sensors" = DM_FLAG_JAMSENSORS, "Complete Absorb" = DM_FLAG_FORCEPSAY) + var/tmp/static/list/mode_flag_list = list("Numbing" = DM_FLAG_NUMBING, "Stripping" = DM_FLAG_STRIPPING, "Leave Remains" = DM_FLAG_LEAVEREMAINS, "Muffles" = DM_FLAG_THICKBELLY, "Affect Worn Items" = DM_FLAG_AFFECTWORN, "Jams Sensors" = DM_FLAG_JAMSENSORS, "Complete Absorb" = DM_FLAG_FORCEPSAY, "Slow Body Digestion" = DM_FLAG_SLOWBODY) //CHOMPEdit //Item related modes var/tmp/static/list/item_digest_modes = list(IM_HOLD,IM_DIGEST_FOOD,IM_DIGEST,IM_DIGEST_PARALLEL) diff --git a/code/modules/vore/eating/vorepanel_vr.dm b/code/modules/vore/eating/vorepanel_vr.dm index f9f80c2ed2..fb1cf99dde 100644 --- a/code/modules/vore/eating/vorepanel_vr.dm +++ b/code/modules/vore/eating/vorepanel_vr.dm @@ -1000,6 +1000,9 @@ return FALSE host.vore_selected.mode_flags ^= host.vore_selected.mode_flag_list[toggle_addon] host.vore_selected.items_preserved.Cut() //Re-evaltuate all items in belly on + host.vore_selected.slow_digestion = FALSE //CHOMPAdd + if(host.vore_selected.mode_flags & DM_FLAG_SLOWBODY) //CHOMPAdd + host.vore_selected.slow_digestion = TRUE //CHOMPAdd . = TRUE if("b_item_mode") var/list/menu_list = host.vore_selected.item_digest_modes.Copy()