mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-09 23:21:02 +01:00
Update console.dm
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user