Skip to content

Commit

Permalink
New Treasury Starting Amounts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
russ-money committed Aug 21, 2024
1 parent 34213b5 commit add41a4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions code/controllers/subsystem/rogue/treasury.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit add41a4

Please sign in to comment.