Who knows what
This commit is contained in:
parent
0fe23420ab
commit
9214d13054
422 changed files with 1412 additions and 4783 deletions
|
|
@ -8,10 +8,11 @@ script = ExtResource("2_1js7i")
|
|||
unlock_id = 1
|
||||
unlock_name = "Marketing"
|
||||
unlock_description = "Affects the amount people are willing to pay for your whittling"
|
||||
base_cost = 100
|
||||
base_cost = 200
|
||||
is_scaling = true
|
||||
cost_scaling_multiplier = 10.0
|
||||
effect_scaling_multiplier = 1.5
|
||||
max_rank = 5
|
||||
cost_ladder = [200, 1200, 6000, 25000, 80000]
|
||||
effect_scaling_multiplier = 1.6
|
||||
base_modifiers = {
|
||||
"sale_price_modifier": 1.5
|
||||
}
|
||||
|
|
@ -22,13 +23,14 @@ script = ExtResource("2_1js7i")
|
|||
unlock_id = 2
|
||||
unlock_name = "Wood"
|
||||
unlock_description = "Increases the amount of wood produced per click"
|
||||
base_cost = 10
|
||||
base_cost = 100
|
||||
is_scaling = true
|
||||
cost_scaling_multiplier = 2.0
|
||||
max_rank = 4
|
||||
cost_ladder = [100, 400, 2000, 8000]
|
||||
effect_scaling_type = 0
|
||||
effect_linear_increase = 1.0
|
||||
effect_linear_increase = 5.0
|
||||
base_modifiers = {
|
||||
"wood_per_click_modifier": 2.0
|
||||
"wood_per_click_modifier": 5.0
|
||||
}
|
||||
metadata/_custom_type_script = "uid://biqqffne7dd8r"
|
||||
|
||||
|
|
@ -37,10 +39,11 @@ script = ExtResource("2_1js7i")
|
|||
unlock_id = 3
|
||||
unlock_name = "Demand"
|
||||
unlock_description = "How many whittled products can be purchased per tick"
|
||||
base_cost = 100
|
||||
base_cost = 300
|
||||
is_scaling = true
|
||||
cost_scaling_multiplier = 5.0
|
||||
effect_scaling_multiplier = 1.25
|
||||
max_rank = 4
|
||||
cost_ladder = [300, 1500, 8000, 35000]
|
||||
effect_scaling_multiplier = 2.0
|
||||
base_modifiers = {
|
||||
"purchase_rate_modifier": 2.0
|
||||
}
|
||||
|
|
@ -51,10 +54,10 @@ script = ExtResource("2_1js7i")
|
|||
unlock_id = 4
|
||||
unlock_name = "Efficiency"
|
||||
unlock_description = "How many things you can produce per whittle"
|
||||
base_cost = 1
|
||||
base_cost = 150
|
||||
is_scaling = true
|
||||
max_rank = 5
|
||||
cost_scaling_multiplier = 10.0
|
||||
cost_ladder = [150, 800, 4000, 18000, 60000]
|
||||
effect_scaling_type = 0
|
||||
effect_linear_increase = 1.0
|
||||
base_modifiers = {
|
||||
|
|
@ -67,7 +70,7 @@ script = ExtResource("2_1js7i")
|
|||
unlock_id = 5
|
||||
unlock_name = "Wholesale"
|
||||
unlock_description = "Sell multiples of 100 at 20% extra income"
|
||||
base_cost = 1
|
||||
base_cost = 18000
|
||||
base_modifiers = {
|
||||
"UNLOCK_ONESHOT_WHOLESALE": 1.0
|
||||
}
|
||||
|
|
@ -78,9 +81,10 @@ script = ExtResource("2_1js7i")
|
|||
unlock_id = 6
|
||||
unlock_name = "Multicraft"
|
||||
unlock_description = "Just craft more stuff"
|
||||
base_cost = 1
|
||||
base_cost = 30000
|
||||
is_scaling = true
|
||||
max_rank = 2
|
||||
cost_scaling_multiplier = 10.0
|
||||
cost_ladder = [30000, 100000]
|
||||
effect_scaling_type = 0
|
||||
effect_linear_increase = 1.0
|
||||
base_modifiers = {
|
||||
|
|
@ -93,12 +97,14 @@ script = ExtResource("2_1js7i")
|
|||
unlock_id = 7
|
||||
unlock_name = "Autowood"
|
||||
unlock_description = "Automatically gather a percent of a clicks wood per tick"
|
||||
base_cost = 1
|
||||
base_cost = 500
|
||||
is_scaling = true
|
||||
max_rank = 5
|
||||
cost_ladder = [500, 2000, 8000, 25000, 70000]
|
||||
effect_scaling_type = 0
|
||||
effect_linear_increase = 0.15
|
||||
base_modifiers = {
|
||||
"autowood_modifier": 0.1
|
||||
"autowood_modifier": 0.15
|
||||
}
|
||||
metadata/_custom_type_script = "uid://biqqffne7dd8r"
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ extends Resource
|
|||
@export_enum("Linear", "Exponential") var cost_scaling_type: int = 1 # Default to Exponential
|
||||
@export var cost_scaling_multiplier: float = 1.5 # Exponential: multiplier per rank, Linear: flat increase
|
||||
@export var cost_linear_increase: int = 100 # Only used if cost_scaling_type is Linear
|
||||
@export var cost_ladder: Array[int] = [] # Fixed costs per rank (overrides scaling if defined)
|
||||
|
||||
@export_subgroup("Effect Scaling")
|
||||
@export_enum("Linear", "Exponential") var effect_scaling_type: int = 1 # Default to Exponential
|
||||
|
|
@ -29,7 +30,12 @@ extends Resource
|
|||
func get_next_cost() -> int:
|
||||
if not is_scaling:
|
||||
return base_cost
|
||||
|
||||
|
||||
# Use fixed cost ladder if defined (overrides scaling)
|
||||
if cost_ladder.size() > 0 and current_rank < cost_ladder.size():
|
||||
return cost_ladder[current_rank]
|
||||
|
||||
# Fallback to scaling formulas for backwards compatibility
|
||||
# Cost scaling should start from rank 0 (first purchase at base_cost)
|
||||
if cost_scaling_type == 0: # Linear
|
||||
return base_cost + (cost_linear_increase * current_rank)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue