1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00
Commit Graph

2364 Commits

Author SHA1 Message Date
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
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
Mircea TheHonestCTO
9cdf74fb42 add pathfinderTurnStorageMisses to track how bucket size should be adjusted; modfied nk2ai-settings.json to simulate 3 clearer AI difficulty levels 2025-09-05 03:49:09 +02:00
Mircea TheHonestCTO
13b0a7ad4e fix: regression: priority pass skip should not verify a new hero to be recruited if it's valid, of course it doesn't exist at that point 2025-09-04 19:54:39 +02:00
Mircea TheHonestCTO
2e49d6aca9 fix: skip pass and priority pass if hero is not valid anymore to as extra checks for lost heroes 2025-09-04 00:56:36 +02:00
Mircea TheHonestCTO
7a40981a95 overall refactoring, HeroPtr adjustments, AiNodeStorage remove unnecessary callback 2025-09-04 00:07:12 +02:00
Mircea TheHonestCTO
19076ee29d fix AINodeStorage::calculateChainInfo using invalid/unverified/lost heroes which lead to multiple issues down the line in makeTurn 2025-09-04 00:03:42 +02:00
Mircea TheHonestCTO
47edbb7825 fix Cannot get object with id %d. Object was removed. Game crashing if AI loses a hero in a fight where humans don't see the map 2025-09-02 11:08:31 +02:00