Dev Beta 1.3
* Ajout d'un déblocage des mutations, dans une scène 3D trouvable dans les runs, ainsi qu'un dialogue d'annonce de ces scènes * Augmentation des charges par map à 10 et augmentation des objectifs de points de plantes en conséquence * Modification du loot des graines : les plantes donnent désormais un nombre fixe de graine et les graines issues de veine de Talion n'obtiennent pas automatiquement de mutations * Les portes ne seront désormais plus sur de la pierre * Amélioration du tutoriel pour inclure une section d'explication des mutations * Ajout du modificateur de région Magnétique qui divise l'objectif et les recharges par 2 *
This commit is contained in:
@@ -60,13 +60,6 @@ var success = false
|
||||
func(i:Item): return i is Seed
|
||||
) != -1)
|
||||
),
|
||||
Step.new(
|
||||
"DROP_SEED_WITH_KEY",
|
||||
(func ():
|
||||
return (
|
||||
Input.is_action_pressed("drop"))
|
||||
)
|
||||
),
|
||||
Step.new(
|
||||
"PLANT_SEED_IN_FERTILE_ZONE",
|
||||
(func ():
|
||||
@@ -89,13 +82,30 @@ var success = false
|
||||
if e is Plant and e.harvested:
|
||||
return true
|
||||
return false)
|
||||
)
|
||||
),
|
||||
Step.new(
|
||||
"TAKE_HARVESTED_SEEDS",
|
||||
(func ():
|
||||
for s in player.data.inventory.seeds:
|
||||
if s is Seed and len(s.plant_mutations) > 0:
|
||||
display_mutations_tutorial(s.card_info())
|
||||
return true
|
||||
return false),
|
||||
),
|
||||
Step.new(
|
||||
"DROP_SEED_WITH_KEY",
|
||||
(func ():
|
||||
return (
|
||||
Input.is_action_pressed("drop"))
|
||||
)
|
||||
),
|
||||
]
|
||||
|
||||
func _ready():
|
||||
setup_gui()
|
||||
show()
|
||||
%PlantInfoTutorial.hide()
|
||||
%MutationTutorial.hide()
|
||||
|
||||
func setup_gui():
|
||||
for s in %Steps.get_children():
|
||||
@@ -136,19 +146,36 @@ func finish_tutorial():
|
||||
success = true
|
||||
|
||||
func display_plant_info_tutorial(with_card_info : CardInfo):
|
||||
%PlantCard.info = with_card_info
|
||||
%PlantInfoCard.info = with_card_info
|
||||
AudioManager.play_sfx("Reveal")
|
||||
%PlantCard.update()
|
||||
%PlantInfoCard.update()
|
||||
%PlantInfoTutorialAnimationPlayer.play("appear")
|
||||
Pointer.action_disabled = true
|
||||
|
||||
func _on_ok_button_button_down():
|
||||
func display_mutations_tutorial(with_card_info : CardInfo):
|
||||
%MutationCard.info = with_card_info
|
||||
AudioManager.play_sfx("Reveal")
|
||||
%MutationCard.update()
|
||||
%MutationTutorialAnimationPlayer.play("appear")
|
||||
Pointer.action_disabled = true
|
||||
|
||||
|
||||
func _on_plant_info_ok_button_button_down():
|
||||
%PlantInfoTutorialAnimationPlayer.play_backwards("appear")
|
||||
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
|
||||
func():
|
||||
Pointer.action_disabled = false
|
||||
)
|
||||
|
||||
|
||||
func _on_mutation_ok_button_button_down():
|
||||
%MutationTutorialAnimationPlayer.play_backwards("appear")
|
||||
get_tree().create_timer(0.2).timeout.connect( # Put a delay to not interfere with the ok button click
|
||||
func():
|
||||
Pointer.action_disabled = false
|
||||
)
|
||||
|
||||
|
||||
class Step:
|
||||
|
||||
var text : String : get = get_text
|
||||
|
||||
Reference in New Issue
Block a user