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 »

Ruleset setting for minimum trade route output added. osdn #43011

While this can have values higher than 1, it's likely to be typically used to tell if trade from a trade route can go down to zero, or will the route always produce at least 1 trade.
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 Min_HP_Pct effect that tells the minimum HP that unit has in the beginning of the new turn if it didn't move the previous turn. This is applied after HP_Regen effects have been factored in. Other recovery factors are applied on top of that minimum. osdn #42699

This has been used to unhardcode minimum HP unit's get inside a city.
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 method City:remove() added osdn #44229
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 HP_Regen_2 effect finalizes unhardcoding unit healing rules.

It replaces hardcoded rules of "base healing" of 10% (except for Helicopters) and 10% healing of fortified units.

osdn #44201

The difference to HP_Regen effects are that these are applied at different point of calculation (after Min_HP_Pct, adding to it) and different rounding rules.
Post Reply