[Freeciv-Dev] new patch: autoattack
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I reworked the autoattack patch pretty much from scratch. I didn't follow
my own advice to remove the existing autoattack code, though. I left it
there so that the patch should be easy to read...
In any case, this patch makes autoattack a server option that defaults to
off. It no longers requires (or allows) any client interaction on the
issue, as all units will autoattack automatically. The algorithm is
simplicity itself: If we have bigger chance of winning if we attack the
moved unit than if the moved unit attacks us, we autoattack it.
I didn't include the expection about fortification, mostly because I
forgot about it, but now I am not sure about it anyway.
Those who want to balance autoattack shold crank up occupychance to 100% -
it makes autoattack much less an "issue". I may also have a go at
implementing autoretreat for units that are about to be destroyed but have
lots of movement left, but I am not sure it is really desirable or will
be another option to gather dust.
- Per
autoattack3.diff
Description: Text document
- [Freeciv-Dev] new patch: autoattack,
Per I. Mathisen <=
|
|