ajout de panneaux de contrôles, de paramètres et refactorisation de la gestion de l'audio
This commit is contained in:
@@ -40,5 +40,5 @@ func use(player : Player, zone : Player.ActionZone) -> bool:
|
||||
return true
|
||||
|
||||
func harvest(p : Plant, player: Player):
|
||||
player.play_sfx("harvest")
|
||||
AudioManager.play_sfx("Harvest")
|
||||
p.harvest()
|
||||
|
||||
@@ -64,7 +64,7 @@ func use(player : Player, zone : Player.ActionZone) -> bool:
|
||||
if player.planet == null:
|
||||
return false
|
||||
|
||||
player.play_sfx("dig")
|
||||
AudioManager.play_sfx("Dig")
|
||||
return player.planet.plant(
|
||||
plant_type,
|
||||
zone.get_global_position(),
|
||||
@@ -138,7 +138,7 @@ static func mutate(parent_mutation : Array[PlantMutation] = []) -> Array[PlantMu
|
||||
]
|
||||
|
||||
if (
|
||||
len(parent_mutation) > 2
|
||||
len(parent_mutation) >= 2
|
||||
):
|
||||
possible_mutations = [
|
||||
UpgradeMutation.new(),
|
||||
|
||||
@@ -40,5 +40,5 @@ func use(player : Player, zone : Player.ActionZone) -> bool:
|
||||
return true
|
||||
|
||||
func dig(u: UndergroundLoot, player: Player):
|
||||
player.play_sfx("dig")
|
||||
AudioManager.play_sfx("Dig")
|
||||
u.dig()
|
||||
|
||||
@@ -17,5 +17,5 @@ func get_usage_zone_radius() -> int:
|
||||
|
||||
func harvest(p : Plant, player: Player):
|
||||
ProduceSeedsEffect.new(1).effect(p)
|
||||
player.play_sfx("harvest")
|
||||
AudioManager.play_sfx("Harvest")
|
||||
p.harvest()
|
||||
Reference in New Issue
Block a user