Reset workers after prestige in momastery and alchemy tower

This commit is contained in:
2026-05-17 18:48:59 +02:00
parent 4fd23d9416
commit 51d042261f
13 changed files with 38 additions and 11 deletions

View File

@@ -159,3 +159,9 @@ func _on_assign_button_pressed() -> void:
func _on_craft_button_pressed(recipe: Variant) -> void:
craft_requested.emit(recipe)
## Called by PrestigeManager after prestige to reset assigned alchemy workers.
func reset_workers() -> void:
_alchemy_worker_count = 0
_update_worker_display()
alchemy_workers_changed.emit(0)

View File

@@ -25,6 +25,7 @@ position = Vector2(0.5, 11)
shape = SubResource("RectangleShape2D_8pntr")
[node name="AlchemyCurrenciesPanel" parent="." unique_id=731368154 instance=ExtResource("2_8pntr")]
z_index = 1
visible = false
offset_left = 44.0
offset_top = -81.0

View File

@@ -4,3 +4,4 @@
[resource]
script = ExtResource("1_data")
max_workers = 0

View File

@@ -29,6 +29,7 @@ position = Vector2(1, 19.5)
shape = SubResource("RectangleShape2D_barracks")
[node name="GeneratorContainer" parent="." unique_id=1905754561 node_paths=PackedStringArray("_generator") instance=ExtResource("5_panel")]
z_index = 1
visible = false
offset_left = 70.0
offset_top = -100.0

View File

@@ -23,16 +23,17 @@ position = Vector2(1, 22)
shape = SubResource("RectangleShape2D_tgvch")
[node name="PrestigePanel" parent="." unique_id=245519778 instance=ExtResource("3_l7gct")]
offset_left = 161.0
offset_top = -232.0
offset_right = 581.0
offset_bottom = -3.0
z_index = 1
offset_left = 142.0
offset_right = 562.0
offset_bottom = 229.0
[node name="PanelContainer" type="PanelContainer" parent="." unique_id=549346899]
offset_left = 160.0
offset_top = 5.0
offset_right = 575.0
offset_bottom = 201.0
z_index = 1
offset_left = 142.0
offset_top = -201.0
offset_right = 557.0
offset_bottom = -5.0
size_flags_horizontal = 3
size_flags_vertical = 3

View File

@@ -19,6 +19,7 @@ position = Vector2(1, 22)
shape = SubResource("RectangleShape2D_idol")
[node name="IdolPanel" type="PanelContainer" parent="." unique_id=906038530]
z_index = 1
offset_left = -200.0
offset_top = -120.0
offset_right = 200.0

View File

@@ -29,6 +29,7 @@ position = Vector2(0, -2.5)
shape = SubResource("RectangleShape2D_82rmq")
[node name="GeneratorContainer" parent="." unique_id=1451609580 node_paths=PackedStringArray("_generator") instance=ExtResource("5_82rmq")]
z_index = 1
visible = false
offset_left = 138.0
offset_top = -100.0

View File

@@ -29,6 +29,7 @@ position = Vector2(0.5, -2.5)
shape = SubResource("RectangleShape2D_v4aq3")
[node name="GeneratorContainer" parent="." unique_id=1451609580 node_paths=PackedStringArray("_generator") instance=ExtResource("5_rh3m6")]
z_index = 1
visible = false
offset_left = 128.0
offset_top = -100.0

View File

@@ -26,6 +26,7 @@ position = Vector2(-1, -11)
shape = SubResource("RectangleShape2D_sbi6i")
[node name="GeneratorContainer" parent="." unique_id=1451609580 node_paths=PackedStringArray("_generator") instance=ExtResource("2_lnbxc")]
z_index = 1
visible = false
offset_left = 127.0
offset_top = -103.0

View File

@@ -20,6 +20,7 @@ position = Vector2(1, 16)
shape = SubResource("RectangleShape2D_yyw6r")
[node name="ResearchPanel" parent="." unique_id=1105274967 instance=ExtResource("3_c6gi6")]
z_index = 1
visible = false
offset_left = 59.0
offset_top = -87.0