divers changements pour la sortie du second proto

* ajout du panneau solaire #54
* ajout d'un tutoriel #53
* equilibrage du jeu #73
* ajout d'un son pour l'annonce
This commit is contained in:
2025-09-26 16:56:35 +02:00
parent 6d0100d703
commit 099f8bb1be
56 changed files with 1129 additions and 87 deletions

View File

@@ -46,6 +46,7 @@ var player : Player
func _ready():
planet_data = GameInfo.game_data.current_planet_data if GameInfo.game_data.current_planet_data else PlanetData.new()
terrain_size = planet_data.base_size
entityContainer.position = terrain_size/2
@@ -212,7 +213,7 @@ func generate_loot(number : int = loot_number.pick_random()):
var loot = UndergroundLoot.new(self)
for j in range(loot_item_number.pick_random()):
loot.loot.append(
Seed.new(GameInfo.game_data.unlocked_plant_types_path.pick_random())
Seed.new(GameInfo.game_data.unlocked_plant_types.pick_random())
)
add_entity(loot)
@@ -268,10 +269,9 @@ func ask_quota_reward():
func generate_quota_reward() -> Item:
var random_level = randi_range(
max(planet_data.quota_number - 1, 1),
min(planet_data.quota_number + 1, Machine.MAX_MACHINE_LEVEL),
min(planet_data.quota_number, Machine.MAX_MACHINE_LEVEL),
)
var random_machine_type = GameInfo.game_data.unlocked_machines.pick_random()
return Blueprint.new(random_machine_type, random_level)