From de5838256d38222b60753861cab12d603ce83e92 Mon Sep 17 00:00:00 2001 From: Morrow Date: Wed, 8 Nov 2023 17:03:36 -0500 Subject: [PATCH] Eating takes time, sit to eat is faster --- .../items/reagent_containers/food/snacks.dm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/reagent_containers/food/snacks.dm b/code/game/objects/items/reagent_containers/food/snacks.dm index 2892eb1113..8aae33b5f2 100644 --- a/code/game/objects/items/reagent_containers/food/snacks.dm +++ b/code/game/objects/items/reagent_containers/food/snacks.dm @@ -74,6 +74,17 @@ C.overeat_cooldown = world.time + OVEREAT_TIME if(M == user)//If you're eating it yourself + + var/eat_time = (1.5 SECONDS) + if(user.buckled) + eat_time *= 0.25 + + if(user.action_busy) + return + + if(!do_after(user, eat_time, INTERRUPT_ALL, BUSY_ICON_FRIENDLY)) + return + if (fullness <= NUTRITION_VERYLOW) to_chat(M, SPAN_WARNING("You hungrily chew out a piece of [src] and gobble it!")) if (fullness > NUTRITION_VERYLOW && fullness <= NUTRITION_LOW) @@ -91,7 +102,11 @@ SPAN_HELPFUL("[user] starts feeding you [src]."), SPAN_NOTICE("[user] starts feeding [user == M ? "themselves" : "[M]"] [src].")) - if(!do_after(user, 30, INTERRUPT_ALL, BUSY_ICON_FRIENDLY, M)) return + if(user.action_busy) + return + + if(!do_after(user, (3 SECONDS), INTERRUPT_ALL, BUSY_ICON_FRIENDLY, M)) + return var/rgt_list_text = get_reagent_list_text()