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
+16 -16
View File
@@ -513,8 +513,8 @@
10030 影悲沙漠 3519 6223
10031 沙漠平原 10594 7525
10032 沙漠谷 8283 7635
10033 天意迷城一层 10594 7525
10034 天意迷城二层 10594 7525
10033 天意一层 10594 7525
10034 天意二层 10594 7525
10035 盘丝洞 917 5253
10036 盘丝洞2层 7041 4642
10037 江陵府 3809 8233
@@ -546,7 +546,7 @@
10063 鬼木林 3031 266
10064 赤鬼木林 11133 534
10065 新鬼木林 7754 10553
10066 赤鬼木林 9915 11195
10066 赤鬼木林 9915 11195
10067 下仙洞 7752 4477
10068 江陵府 4062 8756
10069 下仙洞 8520 4477
@@ -558,8 +558,8 @@
10075 影悲沙漠 2879 5407
10076 上仙洞 1352 7300
10078 虎丘 2842 8106
10079 天意迷城一层 1364 13436
10080 天意迷城二层 2413 12755
10079 天意一层 1364 13436
10080 天意二层 2413 12755
10501 . 345 361
10502 . 106 547
10503 . 75 368
@@ -792,8 +792,8 @@
20072 天露炼圣
20073 封印石
20074 亡灵塔武器制作师
20075 亡灵塔防御品制作
20076 亡灵塔饰品制作
20075 亡灵塔防
20076 亡灵塔饰品师
20077 力量祭坛警备兵
20078 力量祭坛警备兵
20079 力量祭坛警备兵
@@ -873,18 +873,18 @@
2414 真天意首领
2413 真天意法师
2412 真天意弓箭手
10081 天意迷城1层 99 13618
10081 天意层 99 13618
10082 长安城 5028 9998
10083 天意迷城一层 1360 14972
10084 天意迷城二层 2414 14289
10085 天意迷城一层 99 15154
10083 天意一层 1360 14972
10084 天意二层 2414 14289
10085 天意一层 99 15154
10086 咸阳城 616 1148
10087 天意迷城一层 1360 16508
10088 天意迷城二层 2414 15825
10089 天意迷城一层 99 16690
10087 天意一层 1360 16508
10088 天意二层 2414 15825
10089 天意一层 99 16690
10090 洛阳城 9609 3188
10091 天意迷城一层 1360 18044
10092 天意迷城二层 2414 17361
10091 天意一层 1360 18044
10092 天意二层 2414 17361
2411 真天意士兵
2404 天意首领
2403 天意法师
+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():