fix(safebox): fix inventory_changed signal arg mismatch and optimize warp mob names

This commit is contained in:
shen
2026-09-19 19:33:16 -07:00
parent 1637b500e5
commit 21462cddca
2 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ func setup(m2client: Node, parent: Node, proto_node: Node = null, assets_overrid
if client and client.has_signal("safebox_changed"):
client.safebox_changed.connect(refresh)
if client and client.has_signal("inventory_changed"):
client.inventory_changed.connect(_refresh_inventory_candidates)
client.inventory_changed.connect(func(_w = 0, _c = 0): _refresh_inventory_candidates())
if client and client.has_signal("safebox_password_required"):
client.safebox_password_required.connect(func(): _ask_password("safebox"))
if client and client.has_signal("safebox_wrong_password"):
@@ -422,7 +422,7 @@ func _apply_mobile_layout() -> void:
if _exit_btn:
_exit_btn.position = Vector2(51, 381)
func _refresh_inventory_candidates() -> void:
func _refresh_inventory_candidates(_w: int = 0, _c: int = 0) -> void:
if _mobile_inventory_list == null or not is_open():
return
for child in _mobile_inventory_list.get_children():