ArkSol/scripts/ships_type.gd
2025-11-21 15:52:18 +01:00

101 lines
1.8 KiB
GDScript

extends Node2D
const SHIP_TYPES = {
"transport": {
"name": "Transport",
"cost": {"iron": 10},
"speed": 2,
"cargo_capacity": 50,
"required_tech": null,
"texture": "res://assets/ships/transport.png"
},
"frigate": {
"name": "Frigate",
"cost": {"iron": 10, "copper": 10},
"speed": 5,
"attack": 10,
"hp": 50,
"required_tech": null,
"texture": "res://assets/ships/fregata.png"
},
# 1. Destroyer
"destroyer": {
"name": "Destroyer",
"cost": {"iron": 20, "copper": 15},
"speed": 2,
"attack": 20,
"hp": 70,
"required_tech": null,
"texture": "res://assets/ships/destroyer.png"
},
# 3. Battleship
"battleship": {
"name": "Battleship",
"cost": {"iron": 80, "copper": 40, "uranium": 20},
"speed": 2,
"attack": 80,
"hp": 400,
"required_tech": null,
"texture": "res://assets/ships/battleship.png"
},
# 4. Colony Ship
"colony_ship": {
"name": "Colony Ship",
"cost": {"iron": 30},
"speed": 9,
"cargo_capacity": 200,
"required_tech": null,
"texture": "res://assets/ships/colony.png"
},
# 5. Scout
"scout": {
"name": "Scout",
"cost": {"iron": 5},
"speed": 20,
"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,
"cargo_capacity": 100,
"mining_power": 5,
"required_tech": null,
"texture": "res://assets/ships/miner.png"
},
# 8. Fighter
"fighter": {
"name": "Fighter",
"cost": {"iron": 3, "copper": 1},
"speed": 14,
"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": 11,
"research_bonus": 10,
"required_tech": null,
"texture": "res://assets/ships/science.png"
}
}