チケット #47940

Unhardcode "Unreachable"

登録: 2023-04-26 02:37 最終更新: 2023-04-26 05:24

報告者:
担当者:
(未割り当て)
チケットの種類:
状況:
オープン
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
なし
ファイル:
なし

詳細

Likely, HRM922323 has not yet been translocated here so let me do it now. Make some changes to actions mechanism to unhardcode the way "Unreachable" flag works. That is: for actions that target unit stacks, certain units in the stack may be not considered its targets, and either the action is prevented by their presence (unreachableprotects setting on, that way can be currently moved to requirements but not so comfortable) or other units are affected but not they.

My own idea: introduce unreachable_reqs list in action enablers, like

[actionenabler_attack_from_native]
action = "Attack"
actor_reqs    =
    { "type",          "name",         "range", "present"
      "UnitFlag",      "NonMil",       "Local", FALSE
      "UnitClassFlag", "Missile",      "Local", FALSE
      "MinMoveFrags",  "1",            "Local", TRUE
      "UnitState",     "OnNativeTile", "Local", TRUE
      "DiplRel",       "War",          "Local", TRUE
    }
unreachable_reqs =
    { "type",          "name",         "range", "present"
     "UnitFlag", "Unreachable", "Local", TRUE
     "CityTile", "CityCenter", "Tile", FALSE
     "UnitState", "InNativeExtra", "Local", FALSE
    }
And the same addition for any action enabler that should check reachability. To unhardcode furtherly unreachable protection mechanics without quadrupling each enabler (i.e., in the form above add negative server setting "unreachableprotects", and add an enabler with it being positive for a non-"Unreachable" target, for a target in a city and for a target in a base), we could just add to each enabler yet another parameter that by requirements or another way tells when it should happen.

チケットの履歴 (2 件中 2 件表示)

2023-04-26 02:37 更新者: ihnatus
  • 新しいチケット "Unhardcode "Unreachable"" が作成されました
2023-04-26 05:24 更新者: cazfi
コメント

Reply To ihnatus

Likely, HRM922323 has not yet been translocated here so let me do it now.

Thanks. I added comment to hrm ticket linking to this one (please add such comments to other hrm tickets you copy over - if you still have functional hrm account)

添付ファイルリスト

添付ファイルはありません

編集

ログインしていません。ログインしていない状態では、コメントに記載者の記録が残りません。 » ログインする