From a01632dfc6c3fde67e6473363ecd70ec8fd37f33 Mon Sep 17 00:00:00 2001 From: Metis <100518708+sheepishgoat@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:43:08 -0400 Subject: [PATCH] Update console.dm --- .../code/mechanics/den abductors/console.dm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/GainStation13/code/mechanics/den abductors/console.dm b/GainStation13/code/mechanics/den abductors/console.dm index 36631bd0..14d5c94e 100644 --- a/GainStation13/code/mechanics/den abductors/console.dm +++ b/GainStation13/code/mechanics/den abductors/console.dm @@ -155,13 +155,13 @@ /// How much credits do we currently have? var/credits = 0 /// How many credits are we going to reward per pound gained? - var/credits_per_fatness = 1 + var/credits_per_fatness = 0.25 /// A list containing all of the people we've scanned and their maximum weight. var/list/scanned_people = list() /// What is the current team number? var/team_number = 27 /// What is the maximum ammount of credits that can be gained per person? - var/maximum_credits = 900 // A little bit over the fattness for blob. + var/maximum_credits = 1000 // A little bit over the fattness for blob. /obj/structure/scale/credits/Initialize(mapload) ..() @@ -191,14 +191,20 @@ var/credits_to_add = min((fatty.fatness * credits_per_fatness), maximum_credits) var/credits_to_remove = 0 if(scanned_people[fatty]) + if(scanned_people[fatty] >= maximum_credits) + return TRUE + credits_to_remove = scanned_people[fatty] + else + scanned_people[fatty] = 0 var/credit_total = max((credits_to_add - credits_to_remove), 0) if(credit_total > 0) say("[credit_total] credits have been deposited into the console.") credits += credit_total - scanned_people[fatty] = max(credit_total, credits_to_remove) + scanned_people[fatty] += credit_total + return TRUE /obj/machinery/abductor/pad/feeder