Changes in what a 3.1 ruleset can do
Re: Changes in what a 3.1 ruleset can do
Lua Player object now has "government" property. osdn #43294
Re: Changes in what a 3.1 ruleset can do
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.
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.
Re: Changes in what a 3.1 ruleset can do
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.
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.
Re: Changes in what a 3.1 ruleset can do
Lua script can construct "out of fuel" message any way it wants. default.lua has the default implementation. osdn #43341
Re: Changes in what a 3.1 ruleset can do
Reduced firepower in special cases is now ruleset controlled. Previously it was always considered to be 1. osdn #43041
Re: Changes in what a 3.1 ruleset can do
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.
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.
Re: Changes in what a 3.1 ruleset can do
Lua finder methods for Achievements and Disasters added. osdn #43594
Re: Changes in what a 3.1 ruleset can do
Lua find.player(name) method added. osdn #43705
Re: Changes in what a 3.1 ruleset can do
Added lua APIs to do unit upgrades. osdn #42666
Re: Changes in what a 3.1 ruleset can do
New lua signals are now emitted for player phase begin and end. osdn #42663