Incidencia #44782

Move max bombard range from game to unit type

Abrir Fecha: 2022-06-09 01:09 Última actualización: 2024-05-01 18:11

Informador:
Propietario:
(Ninguno)
Estado:
Open
Componente:
Hito:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Ninguno
Fichero:
Ninguno

Details

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

Ticket History (3/6 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
Comentario

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
Comentario

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
Comentario

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
Comentario

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)
2024-05-01 18:11 Updated by: cazfi
Comentario

A little help for S3_2: https://redmine.freeciv.org/issues/523

Bigger rewrites need to wait.

Attachment File List

No attachments

Editar

Please login to add comment to this ticket » Entrar