Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve AI for 0.4.1 (Revolutionary-Games#705)
* made slight changes to aggression calculations., Ill definetly have to do more then this to make things properly challenging and sensible , especially once pilus are in. * Cleane dup AI code to match teh rest of the code, and started working on improving the AI * Cleaned up AI more, and they seem to be more aggressive now, i want to change it so they peg a prey item instead of always targeting nearest now, that should make it even better. * Added a comment detailing my plan for the next change. * prey now gets pegged properly (lots of null pointer errors though, will fix soon) * am trying to fix null pointer error with no success, AI works really well at predating now. * fixed null pointer error finally. Now to work on improving fleeing. * AI now flees properly when they notice predators nearby, no matter what they may have been in the middle of doing. Its not balanced though, i need to work on it more. * Simplified AI code even more., it now calls a method when doing checks instead of directly doing the same expression each time. Yay for modularization. * cleaned up fleeing code immensely, also fine tuned fleeing behavior (they also flee when being engulfed, no matter what) * Improved fleeing even more, also fleeing is less chaotic. * Prey now flees when they spot a predator at double the distance of previously, made it easier for them to fail their check (so they run), and made things flee at the same speed they used to flee. * Fixed bug that made creatures being engulfed, totally unable to move (it would continuously apply a movement factor that divide dit without resetting), improved fleeing behavior more. * Predators now get bored again. * ran code formatter again, and tweaked AI more. * removed pointless greyscale filter i added to disabled buttons ages ago, which did absolutely nothing except break my tooltips (yes everything still looks disabled fine) * removed now unused disabled button class so the formatter stops complaining.
- Loading branch information