迭代42-卡1-T2: level_runner _enter_node shop分支pool/legacy双return合并为payload变量单return——键9归绿(max-returns|_enter_node 7→6键消失),两payload字典逐字保持(pool {gp,shelf:true}/legacy {gp});新增断言level_shop_economy_test:_test_shop_node_entered_payload〔尾波 V1〕四条(pool态载荷含shelf:true且gp=进店钱包现值27/legacy态载荷无shelf键且gp=现值30,字典引用累积器形态绕lambda按值捕获),注册进_init执行序_smoke_shop_pool之后;孤立验证--only=level_shop_economy全绿192 checks exit=0(日志回溯行属push_warning棋盘生成重试告警非错误)
This commit is contained in:
1 parent
509f41f598
commit
c47a032dcb
2 files changed
+72
-3
No files matched your search
@@ -503,11 +503,11 @@ func _enter_node(node: Dictionary) -> bool:
|
||||
"shop":
|
||||
# 商店房兑付:到达即开店(覆盖层归呈现层),购买出账/
|
||||
# 离开归玩家意图——零自动推进;离开确认经 continue_after_node 回选路口
|
||||
var payload := {"gp": gp} # legacy 固定三件(off 对照承载——零 RNG 零池消费)
|
||||
if _shop.pool_mode:
|
||||
_shop.open_pool() # 进店抽 3(恰一 shop_draw scope;买后全重抽同签)
|
||||
node_entered.emit(node, {"gp": gp, "shelf": true})
|
||||
return true
|
||||
node_entered.emit(node, {"gp": gp}) # legacy 固定三件(off 对照承载——零 RNG 零池消费)
|
||||
payload = {"gp": gp, "shelf": true}
|
||||
node_entered.emit(node, payload)
|
||||
return true
|
||||
push_error("[关卡节点地图] 未知节点类型: %s" % str(node))
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user