The accelerated research dialog reads currUnit when it first opens. Assign a valid target whenever an eligible vehicle exists and replace stale selections when refreshing a profile. Prefer an available direct successor when configured. Otherwise use the configured rank or tech tree order. Type checking and profile initialization passed. In-game acceptance is pending.
14 lines
1.1 KiB
JSON
14 lines
1.1 KiB
JSON
// 研发的离线版自定规则(implementation notes 第 4.5 节)。
|
|
{
|
|
// 当前研发目标完成或被买下后,若同一研发线的直接后继载具(reqAir 指向刚完成的这辆)已可研发,优先接续它。
|
|
"preferLineSuccessor": true,
|
|
|
|
// 没有同线直接后继(如新存档、当前研发线到头或下一等级尚未开放)时,从该系可研发载具里挑哪一辆:
|
|
// 原版也由服务器自动选(客户端函数 shop_get_countries_list_with_autoset_units 读的就是服务器自动设的研发目标),
|
|
// 但怎么选是服务器的规则,客户端里没有,所以这里是离线版自定;玩家随时可以在科技树里改选。
|
|
// "highestRank" 等级最高的(与原版"选择下一个研发目标"窗口默认挑车一致,优先推进当前已开放的最高等级);同等级选所需研发点最少的,再相同按科技树先后
|
|
// "lowestRank" 等级最低的;同等级选所需研发点最少的,再相同按科技树先后
|
|
// "treeOrder" 科技树里排在最前面的
|
|
"autoTargetPick": "highestRank"
|
|
}
|