mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 23:42:57 +00:00

...when there are previous combats to account for. (It passes the attack simulator check.) The basic problem with the old system is that it treated the number of strikes as an independent variable, even though it depends on the number of hit points. There is some additional overhead with this method, but I optimized some things for the common case (no swarm), and benchmarking indicated a negligible 1% increase in run time when no units had swarm.
This is a directory of miscellaneous developer tools for Battle for Wesnoth, mostly to support packaging, code integrity checks, and control of the Wesnoth servers. Tools that work on data (WML, maps, images, sounds) no longer belong here. Go to data/tools for those.