extends Node

# SETTINGS
var play_background_music: bool = true
var play_chop_sound: bool = true
var play_money_sound: bool = false
var game_continue_pressed : bool = false

# STRINGS
var currency_symbol: String = "¥"

# COLORS
var money_color: Color = Color(1.0, 0.85, 0.4) # Bright golden yellow (autumn sun)
var wood_color: Color = Color(0.95, 0.6, 0.35) # Light pumpkin orange (autumn leaves)
var stock_color: Color = Color(0.6, 0.75, 0.95) # Light periwinkle blue (clear autumn sky)

# GAMEPLAY VALUES
var target_currency: float = 1000000 
var base_sale_price: float = 12
var base_wood_respawn: float = 5 # seconds
var wood_per_click: float = 5
var cost_per_whittle: float = 1 # This is how many items can be produced per tick
var base_purchase_rate: float = 1

var wholesale_unlock_id: int = 5
var wholesale_bundle_size: int = 100
var wholesale_discount_multiplier: float = 0.8

var multicraft_unlock_id: int = 6

var autowood_unlock_id: int = 7

var premium_crafts_unlock_id: int = 8
var reputation_unlock_id: int = 9

# FORMAT NUMBERS WITH COMMAS FOR DISPLAY
func format_number(value: float) -> String:
	var num_str = str(int(value))
	var result = ""
	var length = num_str.length()

	for i in range(length):
		result += num_str[i]
		var remaining = length - i - 1
		if remaining > 0 and remaining % 3 == 0:
			result += ","

	return result
