Add click interaction

This commit is contained in:
Michele Rossi
2026-03-14 00:32:12 +01:00
parent 797467ea47
commit 23d1a79a9a
5 changed files with 138 additions and 2 deletions

View File

@@ -23,6 +23,12 @@ extends Resource
## Example: 0.05 means each purchased unit adds +0.05% to output.
@export var purchased_boost_percent: float = 0.0
## Manual click reward for this generator.
@export var click_mantissa: float = 1.0
@export var click_exponent: int = 0
@export var click_cooldown_seconds: float = 0.2
@export var grants_click_while_hovering: bool = false
## Returns cost of next generator
func cost_next(owned: int) -> float:
return cost_for_amount(owned, 1)