feat: 三选一刷新对齐商店(2026-10-06 用户令)——免费双源 X/Y 用尽后 GP 付费档(同 shop_refresh_* 旋钮/同冒险钱包 spend_gp 单口/同 reward_pick 池重抽),付费刷计数每停点清零;CurioPickOverlay.set_refresh_display 与商店同构(钮常驻选择态/两源皆穷禁用/角标免费余量/价签行 GP 价);通关停点刷新重发带 refreshed 标直落选择面不再重开胜利总结;店内门票专长三选一维持无刷新;单测 curio_refresh_paid_test+覆盖层刷新面断言;落文=秘宝.md 双源节 GP 付费档+冒险结构 v0.16+06 商店刷新条目换代(机制已落码态)
This commit is contained in:
1 parent
ced5fb75c3
commit
12807298eb
11 files changed
+185
-30
No files matched your search
@@ -38,6 +38,29 @@ func _run() -> void:
|
||||
if not _req("选择态应三卡呈现且确认/继续隐藏(btns=%d)" % btns,
|
||||
ov.visible and btns == 3 and not ov._confirm_btn.visible and not ov._continue_btn.visible):
|
||||
return
|
||||
# ①b 刷新面投喂(2026-10-06 对齐商店 MC-1——投喂前隐藏/免费位点亮/GP 付费档禁用态/真实钮路径外发)
|
||||
if not _req("投喂前刷新钮应隐藏(未投喂上下文如店内门票面无刷新)",
|
||||
not ov._refresh_btn.visible):
|
||||
return
|
||||
var refreshed := []
|
||||
ov.refresh_requested.connect(func(): refreshed.append(true))
|
||||
ov.set_refresh_display(0, 20, false)
|
||||
if not _req("GP 付费档:余量 0 价 20 余额不足=钮现形但禁用、角标 0、价签行可见",
|
||||
ov._refresh_btn.visible and ov._refresh_btn.disabled and ov._refresh_badge.text == "0"
|
||||
and ov._refresh_l.visible and ov._refresh_l.text == "刷新 20 金币"):
|
||||
return
|
||||
ov.set_refresh_display(2, 20, false)
|
||||
if not _req("免费位余量 2:钮点亮、角标 2、免费行——真实按钮路径外发 refresh_requested",
|
||||
ov._refresh_btn.visible and not ov._refresh_btn.disabled and ov._refresh_badge.text == "2"
|
||||
and ov._refresh_l.text == "免费 · 不消耗 AP"):
|
||||
return
|
||||
ov.set_refresh_display(0, 20, true)
|
||||
if not _req("付费档余额可付:免费位 0 但钮点亮(对齐商店——GP 档可刷)",
|
||||
ov._refresh_btn.visible and not ov._refresh_btn.disabled):
|
||||
return
|
||||
ov.press_refresh()
|
||||
if not _req("press_refresh 未外发 refresh_requested", refreshed.size() == 1):
|
||||
return
|
||||
# ② 点选→高亮→确认外发(真实按钮路径);确认前改选以最后点选为准
|
||||
ov.press_card(0)
|
||||
ov.press_card(1)
|
||||
@@ -63,9 +86,11 @@ func _run() -> void:
|
||||
if not _req("丢旧收新未外发 replace_chosen(0)(%s)" % str(replaced),
|
||||
replaced_first and replaced.size() == 1 and int(replaced[0]) == 0):
|
||||
return
|
||||
# ④ 结果态:继续钮点亮、唯一出口
|
||||
# ④ 结果态:继续钮点亮、唯一出口(刷新钮随选择态收——停点已兑付残钮零意图可点)
|
||||
ov.set_refresh_display(2, 20, false)
|
||||
ov.show_result("已选择:攻击力提升 · 攻击 +1")
|
||||
if not _req("结果态应点亮继续且收替换面板", ov._continue_btn.visible and not ov._replace_box.visible):
|
||||
if not _req("结果态应点亮继续且收替换面板与刷新钮",
|
||||
ov._continue_btn.visible and not ov._replace_box.visible and not ov._refresh_btn.visible):
|
||||
return
|
||||
ov.press_continue()
|
||||
if not _req("继续未外发 continue_pressed", continued.size() == 1):
|
||||
|
||||
Reference in new issue
Block a user