mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 19:44:46 +01:00
Adds a new vorepanel mode addon.
Adds a new vorepanel mode addon "Affect Items", which, depending on the belly settings, will either contaminate or digest worn gear right off the prey without stripping. Item friendly modes will affect the prey's entire outfit at once, but the item digest mode will only affect one item at a time.
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
//Actual full digest modes
|
||||
var/tmp/static/list/digest_modes = list(DM_HOLD,DM_DIGEST,DM_ABSORB,DM_DRAIN,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)
|
||||
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)
|
||||
//Item related modes
|
||||
var/tmp/static/list/item_digest_modes = list(IM_HOLD,IM_DIGEST_FOOD,IM_DIGEST)
|
||||
|
||||
|
||||
@@ -137,6 +137,15 @@
|
||||
if((mode_flags & DM_FLAG_THICKBELLY) && !H.muffled)
|
||||
H.muffled = TRUE
|
||||
|
||||
//Worn items flag
|
||||
if(mode_flags & DM_FLAG_AFFECTWORN)
|
||||
for(var/slot in slots)
|
||||
var/obj/item/I = H.get_equipped_item(slot = slot)
|
||||
if(I && handle_digesting_item(I))
|
||||
digestion_noise_chance = 25
|
||||
to_update = TRUE
|
||||
break
|
||||
|
||||
//Stripping flag
|
||||
if(mode_flags & DM_FLAG_STRIPPING)
|
||||
for(var/slot in slots)
|
||||
|
||||
Reference in New Issue
Block a user