Commit Graph
2370 Commits
Author SHA1 Message Date
Ivan Savenko a5816b0fe4 Removed VCAI 2025-11-23 22:48:34 +02:00
Ivan Savenko e4497284a1 Compilation of most of AI's is now optional 2025-11-23 22:48:34 +02:00
Mircea TheHonestCTO acd62e86d5 nullkiller2: Add battleEnded() callback and also clean from battleResultsApplied() to fully mirror what was added in NK1 2025-11-20 19:28:09 +01:00
Mircea TheHonestCTO 45e3e48fba nullkiller2: Add battleEnded() callback to AIGateway for NK2 AI but leave it deactivated because it crashes NK during computer turns if it fights 2025-11-19 18:01:34 +01:00
Mircea TheHonestCTO 5c6f2faebb Merge branch 'develop' into feature/nullkiller2 2025-11-19 17:47:18 +01:00
Mircea TheHonestCTO 1900e03b47 nullkiller2: Replace hasBuiltSomeTradeBuilding() with hasBuiltResourceMarketplace() 2025-11-18 18:18:35 +01:00
Mircea TheHonestCTO 3c7abd988e nullkiller2: revert NK2AI_TRACE_LEVEL to 0 for merge in develop 2025-11-16 17:59:23 +01:00
Mircea TheHonestCTO e2851e9d00 nullkiller2: simplify hero name display by removing expensive getNameTranslated 2025-11-16 17:57:31 +01:00
Mircea TheHonestCTO 69d24111df nullkiller2: remove commented out code, plus formatting the affected file 2025-11-16 17:55:33 +01:00
Mircea TheHonestCTO 6888cf0f5f nullkiller2: add scroll count to reward size calculation in priority evaluator to mirror PR from NK1 2025-11-15 17:39:05 +01:00
Mircea TheHonestCTO 0ee10c9213 Merge branch 'develop' into feature/nullkiller2 2025-11-15 17:15:46 +01:00
Andrej Dudenhefner 497995c11f add BattleEnded pack which happens after BattleResultsApplied and losing heroes are removed 2025-11-14 12:48:46 +01:00
Andrej Dudenhefner 6253e8321b Fix division by zero in RewardEvaluator::getArmyReward 2025-11-06 12:24:30 +01:00
Mircea TheHonestCTO dd7ea75b25 LIBRARY->resourceTypeHandler adjustments after develop merge 2025-10-01 18:25:23 +02:00
Mircea TheHonestCTO 8674099102 fix: BuildThis.cpp compilation warning after develop merge 2025-10-01 18:24:52 +02:00
Mircea TheHonestCTO 6d370014b8 ResourceTrader.cpp remove mithril condition 2025-10-01 17:59:28 +02:00
Mircea TheHonestCTO d43accfd95 Merge branch 'develop' into feature/nullkiller2 2025-10-01 17:56:58 +02:00
Mircea TheHonestCTO 4bdf1f915b pass EGameResID by const reference in goldApproximate function 2025-10-01 17:54:48 +02:00
Mircea TheHonestCTO 280d793a7b ResourceTrader.cpp don't sell mithril 2025-10-01 17:53:48 +02:00
Mircea TheHonestCTO 55feee16de fix: pass tasks by reference in RecruitHeroBehavior 2025-09-27 04:27:52 +02:00
Mircea TheHonestCTO bb7588852b refactor AIMemory replacing getObj with getObjInstance to avoid unnecessary visibility filtering when just a simple iteration over objs is desired 2025-09-27 03:36:51 +02:00
Mircea TheHonestCTO a836cd3aed fix: time-of-check-to-time-of-use (TOCTOU) race condition in AIMemory::removeInvisibleObjects; a bit of refactoring in RecruitHeroBehavior and some todo comments for later on 2025-09-25 17:09:42 +02:00
Laserlicht 5a8f75f11d convert to vector 2025-09-16 22:58:05 +02:00
Laserlicht 8ef97abc7d replace hardcoded 2025-09-16 10:34:38 +02:00
Laserlicht 134c145b98 convert ResourceSet to std::map 2025-09-15 23:48:55 +02:00
Laserlicht d808bd6412 introduce toResourceType 2025-09-15 00:08:18 +02:00
Laserlicht f034584dfa replace RESOURCE_QUANTITY where possible 2025-09-14 21:12:51 +02:00
Laserlicht a54a1f8b8d replace RESOURCE_NAMES where possible 2025-09-14 20:43:53 +02:00
Laserlicht 75f965c93a remove allresources 2025-09-14 15:29:14 +02:00
Laserlicht ded1a70dd7 fix prices 2025-09-14 15:04:02 +02:00
Mircea TheHonestCTO bb6e60c61a comment 2025-09-13 13:03:18 +02:00
Mircea TheHonestCTO 2b751d9705 clarify ResourceTrader TODO comment 2025-09-13 10:22:50 +02:00
Mircea TheHonestCTO 12ed2e9780 clang formatting DefenceBehavior 2025-09-13 04:24:29 +02:00
Mircea TheHonestCTO 1d5cb2c8b8 clang formatting RecruitHeroBehavior 2025-09-12 20:25:23 +02:00
Mircea TheHonestCTO b8eb49bc82 finished removing thread local from NK2 2025-09-12 19:25:56 +02:00
Mircea TheHonestCTO 2f1c6946e3 remove unused TODO parameter from toString() calls; adjust ObjectIdRef constructor usage for clarity and consistency 2025-09-12 15:39:49 +02:00
Mircea TheHonestCTO 3aed53de3d more thread_local removal work 2025-09-12 15:33:34 +02:00
Mircea TheHonestCTO 76a4a59662 simplify TRADE goal description in AbstractGoal.cpp without thread_local CCallback 2025-09-12 15:33:12 +02:00
Mircea TheHonestCTO fe39537a5d ResourceTrader comment for later on 2025-09-12 08:10:54 +02:00
Mircea TheHonestCTO 6df299d892 ResourceTrader improvements and testing finished 2025-09-12 08:08:18 +02:00
Mircea TheHonestCTO 1b5cacfc13 ResourceTrader improvements and testing WIP 2025-09-10 01:42:56 +02:00
Mircea TheHonestCTO e7e88533cb fix vtable / cmake for NK2 testing 2025-09-09 03:46:18 +02:00
Mircea TheHonestCTO 765780bdf8 fix CI build 2025-09-08 17:05:21 +02:00
Mircea TheHonestCTO aea43de201 extract trading logic into ResourceTrader, test preparation WIP 2025-09-08 16:44:26 +02:00
Mircea TheHonestCTO 3c5d94fda3 leave TODO for 2 potential bugs regarding whirlpool exploration and not only 2025-09-08 16:43:07 +02:00
Mircea TheHonestCTO 162e3dbd39 log adjustment 2025-09-07 17:09:45 +02:00
Mircea TheHonestCTO 6f33bfe302 feature: improve trading logic within makeTurn pass to avoid thousands of microtransactions; to focus on now's requirements but with long term in mind; to get some gold for the army as well (compared to 0 as before) 2025-09-07 15:08:20 +02:00
Mircea TheHonestCTO 16cdee82fd removed operator bool() from HeroPtr so we can consistently use isVerified() like in most of the other places 2025-09-06 06:41:50 +02:00
Mircea TheHonestCTO b49ba08a45 more thread_local removal in NK2, still WIP 2025-09-05 18:10:14 +02:00
Mircea TheHonestCTO 844d6c0b78 AIPathfinder remove unused init method 2025-09-05 05:08:24 +02:00