Balancing
This commit is contained in:
parent
90d6c5c926
commit
22d7326565
6 changed files with 116 additions and 105 deletions
|
|
@ -28,6 +28,7 @@ func tick():
|
|||
do_autowood()
|
||||
do_whittling()
|
||||
do_selling()
|
||||
do_reputation_income()
|
||||
|
||||
func do_autowood():
|
||||
# If the autowood unlock is unlocked then automatically gain wood based on the modifier
|
||||
|
|
@ -93,3 +94,9 @@ func whittle_max_wood_possible():
|
|||
inventory_provider.spend_wood(wood_to_whittle)
|
||||
inventory_provider.add_stock(actual_items_produced)
|
||||
# Log.pr("Whittled", str(wood_to_whittle), "wood into", str(actual_items_produced), "whittle wood.")
|
||||
|
||||
func do_reputation_income():
|
||||
# Add passive income from reputation unlock
|
||||
var reputation_income = unlocks_provider.get_modifier_value("reputation_income")
|
||||
if reputation_income > 0:
|
||||
inventory_provider.add_currency(reputation_income)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue