From add41a41347aa10f7495a950bf66bfaa5329c996 Mon Sep 17 00:00:00 2001 From: russ-money Date: Wed, 21 Aug 2024 16:32:51 -0500 Subject: [PATCH] New Treasury Starting Amounts Treasury value is base on the amount of players connected when treasury initalizes Old value was static random between 800 & 1500. New values are based on those values with 100 players connected. Value has a floor of 100 if the starting amount is less than that. --- code/controllers/subsystem/rogue/treasury.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/controllers/subsystem/rogue/treasury.dm b/code/controllers/subsystem/rogue/treasury.dm index 65b7dfa1f..14888cabf 100644 --- a/code/controllers/subsystem/rogue/treasury.dm +++ b/code/controllers/subsystem/rogue/treasury.dm @@ -35,7 +35,13 @@ SUBSYSTEM_DEF(treasury) /datum/controller/subsystem/treasury/Initialize() - treasury_value = rand(800,1500) + var/playercount = 0 // setup a var to get the total player number + var/treasury_player_value = 15 // How much each person is worth. + for(var/client/C in GLOB.clients) // for every player add 1 to playercount + playercount++ + treasury_value = round(rand((playercount * (treasury_player_value * 0.5)),(playercount * treasury_player_value))) // Based on 100 players having a 750 low, 1500 high. + if (treasury_value <= 99) + treasury_value = 100 - rand(1,9) // a floor of 100 with a few missing queens_tax = pick(0.09, 0.15, 0.21, 0.30) for(var/path in subtypesof(/datum/roguestock/bounty)) @@ -85,7 +91,7 @@ SUBSYSTEM_DEF(treasury) send_ooc_note("Income from wealth horde: +[amt_to_generate]", name = X.real_name) if(people_told > 3) return - + /datum/controller/subsystem/treasury/proc/create_bank_account(name, initial_deposit) if(!name)