Lose money when losing fishing :(
This commit is contained in:
parent
a0e3df5b4c
commit
def01c3c37
2 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,7 @@ func _process(delta: float) -> void:
|
|||
func _on_microgame_spawn_timer_timeout() -> void:
|
||||
# Spawn a microgame window
|
||||
var window_instance = null
|
||||
if (randf() < 0.25):
|
||||
if (randf() < 10.25):
|
||||
var window_scene = preload("res://scenes/microgames/microgame_window.tscn")
|
||||
window_instance = window_scene.instantiate()
|
||||
|
||||
|
@ -33,6 +33,7 @@ func _on_microgame_spawn_timer_timeout() -> void:
|
|||
|
||||
fishin_instance.fish_chosen.connect(stonk_instance._on_fishin_fish_chosen)
|
||||
fishin_instance.win.connect(on_other_fishin_win.bind(fishin_instance, stonk_instance, window_instance))
|
||||
fishin_instance.lose.connect(_on_microgame_lose)
|
||||
|
||||
window_instance.add_child(stonk_instance)
|
||||
window_instance.add_child(fishin_instance)
|
||||
|
|
|
@ -201,7 +201,7 @@ func _on_in_game_timeout() -> void:
|
|||
$"Fart".play()
|
||||
|
||||
get_window().title = "🙂👎"
|
||||
lose.emit()
|
||||
lose.emit(get_window())
|
||||
|
||||
|
||||
func _on_success_fail_timeout() -> void:
|
||||
|
|
Loading…
Add table
Reference in a new issue