hey folks,
im looking to perform some combat ruule changes:
if anyone could give some pointers where to implement it , it would help.
- attacker chance to fully heal after an attack
- if defender is not dead, add a chance to kill it any ways
- after attacker move - chance to gain a secondary attack move (setmadeattack = true)
but second attack will do less damage,no collateral and such
i guess i should add these to void CvUnit::resolveCombat?
suggestions where?
also -
i want to pop out a declare war message when units move into a plot with enemy units, same as entering borders,
suggestions where should i place it? movinto function?
which part?
for future tests,
been thinking about making some stack limitations -
maybe a max plot attack round per turn from a player?
maybe vice versa - max attacks from plot to plot?
for example - a stack of 10 units attacks a stack of 6 units - limit of the attacker plot is 8,
so 8 units will attack, the other 2 will get a cant moveinto.
the can move to other plots, fortify and etc.
what are your thoughts?
i hope someone can direct me where and what functions to use for it.
thanks,
keldath.
im looking to perform some combat ruule changes:
if anyone could give some pointers where to implement it , it would help.
- attacker chance to fully heal after an attack
- if defender is not dead, add a chance to kill it any ways
- after attacker move - chance to gain a secondary attack move (setmadeattack = true)
but second attack will do less damage,no collateral and such
i guess i should add these to void CvUnit::resolveCombat?
suggestions where?
also -
i want to pop out a declare war message when units move into a plot with enemy units, same as entering borders,
suggestions where should i place it? movinto function?
which part?
for future tests,
been thinking about making some stack limitations -
maybe a max plot attack round per turn from a player?
maybe vice versa - max attacks from plot to plot?
for example - a stack of 10 units attacks a stack of 6 units - limit of the attacker plot is 8,
so 8 units will attack, the other 2 will get a cant moveinto.
the can move to other plots, fortify and etc.
what are your thoughts?
i hope someone can direct me where and what functions to use for it.
thanks,
keldath.