-- Generated from the frozen legacy-h5 rules by migration/port-engine.cjs. -- Edit the migration source or an explicit native adapter; regenerate and run parity tests. return function(_rt, _data) return _rt.array({ {["name"] = "初出茅庐", ["desc"] = "完成第一趟走镖", ["test"] = function(s) return _rt.compare(">=", _rt.orElse(_rt.andThen(_rt.get(s, "stats"), function() return _rt.get(_rt.get(s, "stats"), "runs") end), function() return 0 end), 1) end}, {["name"] = "小有名气", ["desc"] = "累计声望达到 100", ["test"] = function(s) return _rt.compare(">=", _rt.orElse(_rt.get(s, "prestigeTotal"), function() return 0 end), 100) end}, {["name"] = "百趟老手", ["desc"] = "累计走镖 100 趟", ["test"] = function(s) return _rt.compare(">=", _rt.orElse(_rt.andThen(_rt.get(s, "stats"), function() return _rt.get(_rt.get(s, "stats"), "runs") end), function() return 0 end), 100) end}, {["name"] = "镖局新星", ["desc"] = "累计声望达到 500", ["test"] = function(s) return _rt.compare(">=", _rt.orElse(_rt.get(s, "prestigeTotal"), function() return 0 end), 500) end}, {["name"] = "名动江湖", ["desc"] = "累计声望达到 2,000", ["test"] = function(s) return _rt.compare(">=", _rt.orElse(_rt.get(s, "prestigeTotal"), function() return 0 end), 2000) end}, {["name"] = "威震一方", ["desc"] = "累计声望达到 5,000", ["test"] = function(s) return _rt.compare(">=", _rt.orElse(_rt.get(s, "prestigeTotal"), function() return 0 end), 5000) end}, {["name"] = "伯乐识马", ["desc"] = "招募记录收录 20 名镖师", ["test"] = function(s) return _rt.compare(">=", _rt.get(_rt.orElse(_rt.andThen(_rt.get(s, "codex"), function() return _rt.get(_rt.get(s, "codex"), "roster") end), function() return _rt.array({}) end), "length"), 20) end}, {["name"] = "博闻强识", ["desc"] = "江湖见闻收录 100 条", ["test"] = function(s) return _rt.compare(">=", _rt.get(_rt.orElse(_rt.andThen(_rt.get(s, "codex"), function() return _rt.get(_rt.get(s, "codex"), "events") end), function() return _rt.array({}) end), "length"), 100) end}, {["name"] = "行遍四方", ["desc"] = "到访 20 座城池", ["test"] = function(s) return _rt.compare(">=", _rt.get(_rt.orElse(_rt.andThen(_rt.get(s, "codex"), function() return _rt.get(_rt.get(s, "codex"), "cities") end), function() return _rt.array({}) end), "length"), 20) end}, {["name"] = "走遍天下", ["desc"] = "到访 40 座城池", ["test"] = function(s) return _rt.compare(">=", _rt.get(_rt.orElse(_rt.andThen(_rt.get(s, "codex"), function() return _rt.get(_rt.get(s, "codex"), "cities") end), function() return _rt.array({}) end), "length"), 40) end}, {["name"] = "扬帆远航", ["desc"] = "到访海外任意城池", ["test"] = function(s) return _rt.call(_rt.orElse(_rt.andThen(_rt.get(s, "codex"), function() return _rt.get(_rt.get(s, "codex"), "cities") end), function() return _rt.array({}) end), "some", function(n) return (_rt.get(_rt.orElse(_rt.call(_rt.choose((_rt.typeof(_data["CITIES"]) ~= "undefined"), function() return _data["CITIES"] end, function() return _rt.array({}) end), "find", function(c) return (_rt.get(c, "name") == n) end), function() return {} end), "region") == "海外") end) end}, {["name"] = "慧眼如炬", ["desc"] = "任一镖师眼力训练达 50", ["test"] = function(s) return _rt.call(_rt.get(s, "escorts"), "some", function(e) return _rt.compare(">=", _rt.orElse(_rt.andThen(_rt.get(e, "train"), function() return _rt.get(_rt.get(e, "train"), "insight") end), function() return 0 end), 50) end) end}, {["name"] = "紫气东来", ["desc"] = "拥有紫阶及以上镖师", ["test"] = function(s) return _rt.call(_rt.get(s, "escorts"), "some", function(e) return _rt.compare(">=", _rt.orElse(_rt.get(e, "q"), function() return 0 end), 3) end) end}, {["name"] = "富甲一方", ["desc"] = "累计赚取 1 亿银两", ["test"] = function(s) return _rt.compare(">=", _rt.orElse(_rt.andThen(_rt.get(s, "stats"), function() return _rt.get(_rt.get(s, "stats"), "silverEarned") end), function() return 0 end), 100000000) end} }) end