Ticket #44782

Move max bombard range from game to unit type

Open Date: 2022-06-09 01:09 Last Update: 2022-06-09 23:18

Reporter:
Owner:
(None)
Status:
Open
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

Make the max bombard range defined for each unit type instead of using a game-wide value.

Ticket History (3/5 Histories)

2022-06-09 01:09 Updated by: elefant
  • New Ticket "Move max bombard range from game to unit type" created
2022-06-09 03:04 Updated by: ihnatus
Comment

Could we instead just have an effect "Action_Range"? AI support for ranged actions seems to be rudimentary any way.

2022-06-09 03:06 Updated by: None
Comment

Reply To ihnatus

Could we instead just have an effect "Action_Range"? AI support for ranged actions seems to be rudimentary any way.

That would be fine. As long as the range for the bombard actions can be different for different unit types.

2022-06-09 15:59 Updated by: cazfi
Comment

Reply To ihnatus

Could we instead just have an effect "Action_Range"? AI support for ranged actions seems to be rudimentary any way.

That sounds like something that would work better especially with arbitrary number of different user defined bombard (and other ranged) actions, than having all the units having long list of ranges for different actions.

2022-06-09 23:18 Updated by: elefant
Comment

Or we could have user defined values for units that could be used for a number of things. You could put something like this at the top of the file units.ruleset,

parser_unit_type

values =

{"name", "type", "optional"

"name", "str", "False"

"rule_name", "str", "True"

"class", "str", "False"

"graphic", "str", "False"

"graphic_alt", "str", "True"

...

and this would tell the program to read the unit types looking for these values, which can then be called in lua or in requirements.

(Edited, 2022-06-09 23:20 Updated by: elefant)

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login