#44273: Lua: player losing method Open Date: 2022-04-02 23:14 Last Update: 2022-04-15 13:06 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/44273 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44273 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-04-15 13:06 Updated by: cazfi Comment: I've looked around the related code a bit, and it seems to me that there's not good guarantees that we can get everything stable quickly. Also: Requirements for including new features should should go only stricter as freeze approaches, and this is what I wrote last September: https://www.freelists.org/post/freeciv-dev/Towards-31 I hate to postpone features that people want, but if we never stop them flowing in to the "very next version" that very next version gets never released. 3.1 has been in development for far too long already (since 01-Jan-2017!). I really don't want to take any unnecessary risks of further delays with its schedule, i.e., potentially introducing regressions that block milestones going forward. We have a ton of work to do to get 3.1 released with its current feature set. At this point my opinion is that this cannot be included in 3.1. I hope you understand. --------------------------------------------------------------------- Ticket Status: Reporter: ihnatus Owner: (None) Type: Feature Requests Status: Open Priority: 5 - Medium MileStone: S3_1 d3f Component: Scripting API Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: Yet another split of #44216. A method to make a player immediately losing a game, as like by losing a king. Since existing callbacks already can kill a king, this one won't create more potentially unstable code than it already exists. Syntax: (Player):lose(Player looter?, bool loot?) (if looter is specified and loot is true or is not specified and gameloss style includes "Loot", looter gets some part of cities, map and gold of the player). This method was intended to set PSTATUS_DYING to the player while further killing is done by kill_dying_players(), but actually I am not sure we call that function in a right time now (it goes when AIs start a phase, at phase end, and after handling any incoming game packet), so it should be thought about better. -- 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/44273 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44273