From 20f8ca1095d37f683af00d67383e4e145a226a48 Mon Sep 17 00:00:00 2001 From: Tastyfish Date: Sat, 9 Apr 2016 02:27:20 -0400 Subject: [PATCH] Fixes meals prepared / food eaten scoreboard stats --- code/datums/recipe.dm | 2 ++ code/game/gamemodes/scoreboard.dm | 2 +- code/modules/mob/living/carbon/carbon.dm | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/datums/recipe.dm b/code/datums/recipe.dm index dcd444a3a0b..6c7ccd0105b 100644 --- a/code/datums/recipe.dm +++ b/code/datums/recipe.dm @@ -102,6 +102,7 @@ O.reagents.trans_to(result_obj, O.reagents.total_volume) qdel(O) container.reagents.clear_reagents() + score_meals++ return result_obj // food-related @@ -114,6 +115,7 @@ O.reagents.trans_to(result_obj, O.reagents.total_volume) qdel(O) container.reagents.clear_reagents() + score_meals++ return result_obj /proc/select_recipe(var/list/datum/recipe/avaiable_recipes, var/obj/obj as obj, var/exact = 1 as num) diff --git a/code/game/gamemodes/scoreboard.dm b/code/game/gamemodes/scoreboard.dm index 44adae0d98a..a5a23715d76 100644 --- a/code/game/gamemodes/scoreboard.dm +++ b/code/game/gamemodes/scoreboard.dm @@ -205,7 +205,7 @@ AI Destroyed: [score_deadaipenalty ? "Yes" : "No"] (-[score_deadaipenalty * 250] Points)

The Weird
- Food Eaten: [score_foodeaten]
+ Food Eaten: [score_foodeaten] bites/sips
Times a Clown was Abused: [score_clownabuse]

"} if (score_escapees) diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index ac4bb584528..ab811855d2a 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -827,6 +827,7 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump, if(!forceFed(toEat, user, fullness)) return 0 consume(toEat) + score_foodeaten++ return 1 /mob/living/carbon/proc/selfFeed(var/obj/item/weapon/reagent_containers/food/toEat, fullness)