Lose money when losing fishing :(

This commit is contained in:
Zoey Kitt 2024-11-17 15:18:56 -06:00
parent a0e3df5b4c
commit def01c3c37
2 changed files with 3 additions and 2 deletions

View file

@ -18,7 +18,7 @@ func _process(delta: float) -> void:
func _on_microgame_spawn_timer_timeout() -> void: func _on_microgame_spawn_timer_timeout() -> void:
# Spawn a microgame window # Spawn a microgame window
var window_instance = null var window_instance = null
if (randf() < 0.25): if (randf() < 10.25):
var window_scene = preload("res://scenes/microgames/microgame_window.tscn") var window_scene = preload("res://scenes/microgames/microgame_window.tscn")
window_instance = window_scene.instantiate() 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.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.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(stonk_instance)
window_instance.add_child(fishin_instance) window_instance.add_child(fishin_instance)

View file

@ -201,7 +201,7 @@ func _on_in_game_timeout() -> void:
$"Fart".play() $"Fart".play()
get_window().title = "🙂👎" get_window().title = "🙂👎"
lose.emit() lose.emit(get_window())
func _on_success_fail_timeout() -> void: func _on_success_fail_timeout() -> void: