First commit
This commit is contained in:
18
generator/currency_generator_data.gd
Normal file
18
generator/currency_generator_data.gd
Normal file
@@ -0,0 +1,18 @@
|
||||
class_name CurrencyGeneratorData
|
||||
extends Resource
|
||||
|
||||
@export var id: GameState.CurrencyType
|
||||
@export var name: String
|
||||
@export var initial_cost: float
|
||||
@export var coefficient: float
|
||||
@export var initial_time: float
|
||||
@export var initial_revenue: float
|
||||
@export var initial_productivity: float
|
||||
|
||||
## Returns cost of next generator
|
||||
func cost_next(owned: int) -> float:
|
||||
return initial_cost * pow(coefficient, owned)
|
||||
|
||||
## Returns value produced
|
||||
func production_total(owned: int, multipliers: float) -> float:
|
||||
return (initial_productivity * owned) * multipliers
|
||||
Reference in New Issue
Block a user