Re: Combat Refactoring
Minimum breaking restriction and most fulfilling are basically equivalent IF the number of restrictions is kept constant -- the problem is that the logic might not feel very intuitive in that case. Minimum breaking is easier to understand correctly.elcnesh wrote:I've got it working!!!!
I implemented it in the "new" way, and it works like a charm. I've resolved some of the possible issues mentioned by Marek14 (thanks, most of them were indeed an issue) and changed it to use minimum breaking restriction rather than most fulfilling (IMO the comp rules should be updated in that way also), and it seems to work, at least with the stuff I've tested, including Ekundu Cyclops, Viashino Bey, War's Toll, Scarred Puma, Okk. The only thing that really needs to be done is AI, but I'm a complete noob when it comes to the AI code... Maybe I'll just add a safeguard for now, so that the AI always has a legal way of attacking, and other people can optimise that later.
Did you use the "negative requirement" approach?