Feature pour l'alpha 1.3
* Ajout d'un mode infini (pour nos hard core gamers) * Ajout d'un message de découverte d'un nouvel outil * Séparation de la pelle en deux outils : la pioche et la fourche * Amélioration de la lisibilité des capsules d'énergies * Changement léger des texture du sol et de la pierre * Correction d'un bug lors du clic frénétique sur le porte de sortie du vaisseau * Ajout d'un icône de recharge * Fix de la mutation Ancien qui ne s'améliorait pas au niveau 4 + début de dev des artefacts avec un distributeur
This commit is contained in:
@@ -19,7 +19,8 @@ var indicators : Array[InGameIndicator]
|
||||
Step.new(
|
||||
"CHANGE_ZOOM_WITH_Z_X",
|
||||
(func ():
|
||||
return GameInfo.settings_data.zoom != 1.)
|
||||
return GameInfo.settings_data.zoom != 1.),
|
||||
(func (): GameInfo.game_data.player_data.inventory.add_item(Detector.new()))
|
||||
),
|
||||
Step.new(
|
||||
"SELECT_ITEM_WITH_SCROLL_CLICK_OR_NUMBER",
|
||||
@@ -39,7 +40,8 @@ var indicators : Array[InGameIndicator]
|
||||
Step.new(
|
||||
"RECHARGE_IN_THE_RECHARGE_STATION",
|
||||
(func ():
|
||||
return region and region.data and region.data.charges != 10)
|
||||
return region and region.data and not region.data.in_passing_day_animation and region.data.charges != RegionParameter.DEFAULT_CHARGE),
|
||||
(func (): GameInfo.game_data.player_data.inventory.add_item(Pickaxe.new()))
|
||||
),
|
||||
Step.new(
|
||||
"DIG_A_TALION_VEIN_WITH_SHOVEL",
|
||||
@@ -74,7 +76,8 @@ var indicators : Array[InGameIndicator]
|
||||
Step.new(
|
||||
"GAIN_FIRST_PLANT_POINT",
|
||||
(func ():
|
||||
return region.data.get_score() != 0)
|
||||
return region and region.data and not region.data.in_passing_day_animation and region.data.get_score() != 0),
|
||||
(func (): GameInfo.game_data.player_data.inventory.add_item(Fork.new()))
|
||||
),
|
||||
Step.new(
|
||||
"HARVEST_A_MATURE_PLANT",
|
||||
@@ -83,7 +86,7 @@ var indicators : Array[InGameIndicator]
|
||||
if e is Plant and e.harvested:
|
||||
return true
|
||||
return false)
|
||||
),
|
||||
)
|
||||
]
|
||||
|
||||
func _ready():
|
||||
@@ -133,19 +136,24 @@ class Step:
|
||||
|
||||
var text : String : get = get_text
|
||||
var is_step_over_callable : Callable
|
||||
var on_succeeded : Callable
|
||||
var succeeded = false
|
||||
|
||||
func _init(
|
||||
_text : String = "",
|
||||
_is_step_over_callable : Callable = (func():return false)
|
||||
_is_step_over_callable : Callable = (func():return false),
|
||||
_on_succeeded : Callable = (func():return false)
|
||||
):
|
||||
text = _text
|
||||
is_step_over_callable = _is_step_over_callable
|
||||
on_succeeded = _on_succeeded
|
||||
|
||||
func get_text() -> String:
|
||||
return text
|
||||
|
||||
|
||||
func update_succeeded() -> bool:
|
||||
if not succeeded:
|
||||
succeeded = is_step_over_callable.call()
|
||||
if succeeded:
|
||||
on_succeeded.call()
|
||||
return succeeded
|
||||
|
||||
Reference in New Issue
Block a user