Modular items update tweak, Water Sponge vapor function

Changed modular items to update periodically though handle_fatness, not just when fatness is changed.
Water Sponge vapor function restored and updated
This commit is contained in:
Alphas00
2024-12-09 12:16:45 +01:00
parent a2767e1339
commit 6eca3fed86
3 changed files with 17 additions and 12 deletions
@@ -1,8 +1,7 @@
/mob/living/carbon
var/modular_items = list()
/mob/living/carbon/adjust_fatness(adjustment_amount, type_of_fattening = FATTENING_TYPE_ITEM)
..()
/mob/living/carbon/proc/handle_modular_items(adjustment_amount, type_of_fattening = FATTENING_TYPE_ITEM)
for(var/obj/item/item in modular_items)
item.update_modular_overlays(src)
@@ -222,6 +222,7 @@
/datum/species/proc/handle_fatness(mob/living/carbon/human/H)
handle_helplessness(H)
H.handle_modular_items()
// update movement speed
var/fatness_delay = 0