Hit-points increase of units through effects.ruleset

What would you like to see in Freeciv? Do you have a good idea what should be improved or how?
ngunjaca
Veteran
Posts: 103
Joined: Mon Aug 26, 2013 7:22 am
Location: Croatia
Contact:

Hit-points increase of units through effects.ruleset

Postby ngunjaca » Thu Oct 17, 2013 10:48 am

The name says it all - after researching a tech or after increasing the unit experience level after combat (or just about any other condition as defined in the effects.ruleset), hit-points of the unit can be increased for a specified amount. It would be nice to have this option for modding purposes,(it would give a certain RPGishness to the game).
If i remember correctly the experience system of Civ3 was based on raising hit-points instead of increasing attack/defense values.

cazfi
Elite
Posts: 1718
Joined: Tue Jan 29, 2013 6:54 pm

Re: Hit-points increase of units through effects.ruleset

Postby cazfi » Fri Oct 18, 2013 2:58 am

ngunjaca wrote:If i remember correctly the experience system of Civ3 was based on raising hit-points instead of increasing attack/defense values.

- If unit has more hp, it can afford to lose them more.
- If unit has higher attack/defense value, it loses less hp.
So relative hp loss works the same regardless which side experience affects. Difference is in healing time. Unit that has lost more hitpoints takes longer to heal even if hp loss % is the same.

cazfi
Elite
Posts: 1718
Joined: Tue Jan 29, 2013 6:54 pm

Re: Hit-points increase of units through effects.ruleset

Postby cazfi » Fri Oct 18, 2013 10:10 am

ngunjaca wrote:The name says it all - after researching a tech or after increasing the unit experience level after combat (or just about any other condition as defined in the effects.ruleset).

Implementation-wise this is actually requesting two things, but both should be quite doable. 1) There should be effect to increase unit's max hitpoints. 2) There should be veteran level requirement type. Currently there's no way to enable effects depending on unit veteran level.