extends Node2D
const SHIP_TYPES = {
	"transport": {
		"name": "Transport",
		"cost": {"iron": 10},
		"speed": 2,
		"scale": 0.028,
		"cargo_capacity": 50,
		"required_tech": null,
		"texture": "res://assets/ships/transport.png"
	},

	"frigate": {
		"name": "Frigate",
		"cost": {"iron": 10, "copper": 10},
		"speed": 3,
		"scale": 0.035,
		"attack": 10,
		"hp": 50,
		"required_tech": ["basic_shipbuilding"],
		"texture": "res://assets/ships/fregata.png"
	},

	# 1. Destroyer
	"destroyer": {
		"name": "Destroyer",
		"cost": {"iron": 20, "copper": 15},
		"speed": 2,
		"scale": 0.045,
		"attack": 20,
		"hp": 70,
		"required_tech": ["basic_shipbuilding", "advanced_weapons"],
		"texture": "res://assets/ships/destroyer.png"
	},



	# 3. Battleship
	"battleship": {
		"name": "Battleship",
		"cost": {"iron": 80, "copper": 40},
		"speed": 1,
		"scale": 0.050,
		"attack": 80,
		"hp": 400,
		"required_tech": ["basic_shipbuilding", "advanced_weapons","advanced_laser"],
		"texture": "res://assets/ships/battleship.png"
	},

	# 4. Colony Ship
	"colony_ship": {
		"name": "Colony Ship",
		"cost": {"iron": 30},
		"speed": 5,
		"scale": 0.040,
		"cargo_capacity": 200,
		"required_tech": null,
		"texture": "res://assets/ships/colony.png"
	},

	# 5. Scout
	"scout": {
		"name": "Scout",
		"cost": {"iron": 5},
		"speed": 20,
		"scale": 0.020,
		"attack": 2,
		"hp": 10,
		"required_tech": null,
		"texture": "res://assets/ships/scout.png"
	},

	# 6. Miner
	"miner": {
		"name": "Mining Ship",
		"cost": {"iron": 12, "copper": 5},
		"speed": 3,
		"scale": 0.030,
		"cargo_capacity": 100,
		"mining_power": 5,
		"required_tech": ["advanced_mining"],
		"texture": "res://assets/ships/miner.png"
	},



	# 8. Fighter
	"fighter": {
		"name": "Fighter",
		"cost": {"iron": 3, "copper": 1},
		"speed": 14,
		"scale": 0.015,
		"attack": 8,
		"hp": 15,
		"required_tech": null,
		"texture": "res://assets/ships/fighter.png"
	},

	# 9. Science Ship
	"science_ship": {
		"name": "Science Ship",
		"cost": {"iron": 15},
		"speed": 8,
		"scale": 0.024,
		"research_bonus": 10,
		"required_tech": null,
		"texture": "res://assets/ships/science.png"
	}
}
