Skip to content

Commit

Permalink
Eating takes time, sit to eat is faster
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Nov 8, 2023
1 parent 4a3e5e9 commit de58382
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion code/game/objects/items/reagent_containers/food/snacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -91,7 +102,11 @@
SPAN_HELPFUL("[user] <b>starts feeding</b> you <b>[src]</b>."),
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()

Expand Down

0 comments on commit de58382

Please sign in to comment.