Update console.dm

This commit is contained in:
Metis
2024-09-04 15:43:08 -04:00
parent 447c53fb47
commit a01632dfc6
@@ -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