diff options
Diffstat (limited to 'save_state.gd')
-rw-r--r-- | save_state.gd | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/save_state.gd b/save_state.gd index ac58feb..dd1ecad 100644 --- a/save_state.gd +++ b/save_state.gd @@ -1,7 +1,8 @@ extends Node var buildings = { - "intern": 0 + "intern": 0, + "dev": 1, } var upgrades = { "wageslavery": 0 @@ -10,8 +11,20 @@ var upgrades = { func gain_bitcoin(amount: int) -> void: bitcoin += amount * (upgrades["wageslavery"] + 1) -var coffee = 0 -var programmers = 1 +func lose_bitcoin(amount: int) -> void: + bitcoin -= amount + +var coffee = 10 var coffee_beans = 1000 var bitcoin = 100 -var riot_cooldown = 60 +var riot_cooldown = 0 + +func pack_data(): + return { + "buildings": buildings, + "upgrades": upgrades, + "coffee": coffee, + "coffee_beans": coffee_beans, + "bitcoin": bitcoin, + "riot_cooldown": riot_cooldown, + } |