[Freeciv-tickets] [freeciv] #42666: Lua: API to unhardcode autoupgrade

Back to archive index
OSDN Ticket System norep****@osdn*****
Sat Jul 24 23:41:47 JST 2021


#42666: Lua: API to unhardcode autoupgrade

  Open Date: 2021-07-24 17:41
Last Update: 2021-07-24 17:41

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/42666
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=42666

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2021-07-24 17:41 Updated by: ihnatus
 * New Ticket "Lua: API to unhardcode autoupgrade" created


---------------------------------------------------------------------
Ticket Status:

      Reporter: ihnatus
         Owner: (None)
          Type: Feature Requests
        Status: Open
      Priority: 5 - Medium
     MileStone: S3_1 d3f
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

This is a sub-task of #42659. Needed functions (test ones are probably common, edit ones are server scripting):
test if a unit may be converted (upgraded) to a given type regarding its current position, transporter and cargo;
get a unit type a player may upgrade a unit type to;
convert (upgrade) a unit to a given type (if it is possible; a double testing will likely occur in the loop but it's not fatal);
promote a unit given number of veteranship ranks (may be negative) clipped by its veteran system, no notifications sent; naturally accompanied by general veteranship getting functions;
an algorithm (in Lua or C) to get a random selection from a list.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/42666
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=42666



More information about the Freeciv-tickets mailing list
Back to archive index