Tíquete #43294

LUA should be able to access Gov type of a Player

: 2021-11-30 08:42 Última Atualização: 2021-12-12 07:03

Relator:
Dono:
Estado:
Fechado
Componente:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
1

Details

Lots of special effects in a ruleset might be dependent on the type of government.

LUA has types for Gov, but those currently seem useless. Why? There is no way to access the only element for which a government is relevant: a Player.

Adding a function to access Gov type for a Player would be useful for ruleset creators who generate special effects based on Gov types.

Thanks!

Ticket History (3/7 Histories)

2021-11-30 08:42 Updated by: lexxie9952
  • New Ticket "LUA should be able to access Gov type of a Player" created
2021-11-30 15:10 Updated by: cazfi
  • Marco Update from (Nenhum) to S3_1 d3f (fechado)
  • Componente Update from (Nenhum) to General
2021-11-30 15:11 Updated by: cazfi
  • Componente Update from General to Scripting API
2021-12-01 07:26 Updated by: cazfi
  • Resolução Update from Nenhum to Accepted
2021-12-03 12:48 Updated by: cazfi
Comentário

As part of #43200, this has also been posted to http://forum.freeciv.org/f/viewtopic.php?f=14&t=92071

2021-12-12 07:03 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Accepted to Fixed

Editar

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