Changes in what a 3.1 ruleset can do

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Changes in what a 3.1 ruleset can do

Post by cazfi »

Lua Player object now has "government" property. osdn #43294
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Changes in what a 3.1 ruleset can do

Post by cazfi »

There's now lua signals emitted also after an action finishes, with access to the final result. hrm #817749

The downside compared to signals emitted at action start time is that actor and/or target no longer be available, if the action destroyed them.
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Changes in what a 3.1 ruleset can do

Post by cazfi »

Added featured text link creation utilities. osdn #43343

Unit:link_text(), Unit:tile_link_text(), City:link_text(), and City:tile_link_text() methods can be used to create featured text link fragments to messages sent to the client.
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Changes in what a 3.1 ruleset can do

Post by cazfi »

Lua script can construct "out of fuel" message any way it wants. default.lua has the default implementation. osdn #43341
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Changes in what a 3.1 ruleset can do

Post by cazfi »

Reduced firepower in special cases is now ruleset controlled. Previously it was always considered to be 1. osdn #43041
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Changes in what a 3.1 ruleset can do

Post by cazfi »

Added unit type setting determining if a unit can be selected as the defender when it's being transported. hrm #848689

This still allows only either totally blocking unit from defending while transported, or the old hardcoded behavior that transported unit can defend if it would be able to leave the transport to do so (native terrain etc). Future version might add more choices for the setting.
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Changes in what a 3.1 ruleset can do

Post by cazfi »

Lua finder methods for Achievements and Disasters added. osdn #43594
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Changes in what a 3.1 ruleset can do

Post by cazfi »

Lua find.player(name) method added. osdn #43705
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Changes in what a 3.1 ruleset can do

Post by cazfi »

Added lua APIs to do unit upgrades. osdn #42666
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Changes in what a 3.1 ruleset can do

Post by cazfi »

New lua signals are now emitted for player phase begin and end. osdn #42663
Post Reply