Skip to content

Commit

Permalink
milk runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Birdtalon committed Dec 28, 2023
1 parent 4a4c961 commit 4c79aa8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions code/modules/reagents/Chemistry-Reagents.dm
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ GLOBAL_LIST_INIT(name2reagent, build_name2reagent())
handle_processing(M, mods, delta_time)
holder.remove_reagent(id, custom_metabolism * delta_time)

if(!holder)
return FALSE

return TRUE

//Pre-processing
Expand Down
6 changes: 4 additions & 2 deletions code/modules/reagents/chemistry_reagents/drink.dm
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@

/datum/reagent/drink/milk/on_mob_life(mob/living/M)
. = ..()
if(!.) return
if(M.getBruteLoss() && prob(20)) M.heal_limb_damage(1,0)
if(!.)
return
if(M.getBruteLoss() && prob(20))
M.heal_limb_damage(1,0)
holder.remove_reagent("capsaicin", 10*REAGENTS_METABOLISM)
holder.remove_reagent("hotsauce", 10*REAGENTS_METABOLISM)

Expand Down

0 comments on commit 4c79aa8

Please sign in to comment.