Commit Graph
100 Commits
Author SHA1 Message Date
DjWarmonger 96c7e593bb Merge pull request #3673 from Kris-Ja/develop
change MANA_PER_KNOWLEGDE to percentage
2024-03-24 09:09:04 +01:00
DjWarmonger 942c8983b0 Merge pull request #3671 from vcmi/tweak_rmg_density
Tweak rmg density
2024-03-20 20:22:01 +01:00
Tomasz Zieliński 0c0a1bd777 Don't scale distance of large treasures beyond 30K value 2024-03-20 15:35:06 +01:00
Tomasz Zieliński 433765714f Add less obstacles in zones with low treasure value 2024-03-20 14:42:09 +01:00
Tomasz Zieliński 02fc410a98 Sonarcloud fixes 2024-03-20 13:51:16 +01:00
Tomasz Zieliński 68cdcb893e Include treasure value in min distance calculation 2024-03-20 12:39:07 +01:00
Tomasz Zieliński a8d1d72b15 Cleaned logs 2024-03-20 10:12:48 +01:00
Tomasz Zieliński 662bb0d1f6 Cut straight paths for better passability 2024-03-20 10:03:26 +01:00
Tomasz Zieliński 25a62b504f Perfection achieved? 2024-03-20 09:05:27 +01:00
Tomasz Zieliński 1546a221d1 Best result so far 2024-03-20 08:36:02 +01:00
DjWarmonger 3e959f3ad9 Merge pull request #3132 from vcmi/reward_select_all
Support for "selectAll" reward
2024-03-14 21:46:02 +01:00
DjWarmonger 306896601a Merge pull request #3636 from vcmi/rmg_tweaks
Rmg tweaks
2024-03-14 19:54:25 +01:00
DjWarmonger 2c9b7089ad Merge pull request #3645 from vcmi/save_rmg_options
Save rmg options
2024-03-14 19:54:08 +01:00
Tomasz Zieliński a93dd25867 Update docs to be in line with existing code. 2024-03-14 10:22:15 +01:00
Tomasz Zieliński 8ef7daf45a Missing change 2024-03-09 11:02:43 +01:00
Tomasz Zieliński 43a1e691e4 Trying to satisfy Sonarcloud 2024-03-09 10:17:30 +01:00
Tomasz Zieliński 69cfc83be3 Fix issue found by Sonarcloud 2024-03-09 08:17:46 +01:00
Tomasz Zieliński 87bf4b752a Better implementation of granting multiple rewards 2024-03-09 07:38:11 +01:00
Tomasz Zieliński fe8bcc5758 Merge remote-tracking branch 'origin/develop' into reward_select_all
# Conflicts:
#	lib/mapObjects/CRewardableObject.cpp
2024-03-09 06:50:56 +01:00
Tomasz Zieliński 5ca3fd2d9c Restored previous solution, which is handled already. 2024-03-04 21:49:35 +01:00
Tomasz Zieliński e7af9d5607 Code review fixes, Sonarcloud fixes 2024-03-04 21:23:17 +01:00
Tomasz Zieliński 28f76b2839 Actually, avoid guarded object altogether 2024-03-01 18:17:17 +01:00
Tomasz Zieliński 4e88290962 Actually avoid only monsters 2024-03-01 18:10:05 +01:00
Tomasz Zieliński 8f1638f78a Try to not route roads through passable objects 2024-03-01 17:48:07 +01:00
Tomasz Zieliński d078808c9f Merge remote-tracking branch 'origin/develop' into rmg_tweaks 2024-03-01 16:55:05 +01:00
Tomasz Zieliński 1b2d01c25f Add new map sizes & better layout 2024-03-01 12:15:04 +01:00
Tomasz Zieliński f650072da1 Remove useless code 2024-03-01 11:46:01 +01:00
Tomasz Zieliński 35c1ef7be2 How about now? 2024-03-01 11:18:08 +01:00
Tomasz Zieliński 7df36279c5 Compile fix? 2024-03-01 11:10:40 +01:00
Tomasz Zieliński 5f95955535 Store and load last difficulty setting 2024-03-01 10:57:48 +01:00
Tomasz Zieliński c87b0e6d65 Compile fix 2024-02-29 20:44:14 +01:00
Tomasz Zieliński 17fc1604ca Remove unused file 2024-02-29 20:20:35 +01:00
Tomasz Zieliński fcbe399541 Cleanup 2024-02-29 20:12:46 +01:00
Tomasz Zieliński 74bd6d6075 Editor save & load template works 2024-02-29 20:05:20 +01:00
Tomasz Zieliński b7320bbc8a Cleanup 2024-02-29 13:04:48 +01:00
Tomasz Zieliński 2c32c770f7 First version that works in lobby 2024-02-29 12:45:08 +01:00
Tomasz Zieliński af0207470d - Increased minimal obstacle density on surface
- Decreased minimal obstacle density in the underground
2024-02-25 12:25:23 +01:00
Tomasz Zieliński 2e8801084d Clean up RMG logs 2024-02-25 11:40:01 +01:00
Tomasz Zieliński 5c6a146952 Use HoTA values for water treasures 2024-02-04 08:57:02 +01:00
Tomasz Zieliński af3c6450a7 Update comments 2024-02-04 08:56:45 +01:00
Tomasz Zieliński 7ce3553a6d Fix race condition when placing object at teh shore 2024-02-04 08:56:21 +01:00
Tomasz Zieliński 6528124c1e Do not fill water zone with obstacles 2024-02-04 08:55:51 +01:00
DjWarmonger c09d577a24 Merge pull request #3590 from vcmi/penrose_tiling
Positive opionions, no issues found.
2024-02-03 20:00:46 +01:00
Tomasz Zieliński b7df6064cd Add random map description and display it in RMG menu 2024-02-03 16:23:56 +01:00
DjWarmonger cb841e2e02 Merge pull request #3592 from godric3/map-editor-fixes
Map editor - fix submod list and mine resources
2024-02-03 13:13:19 +01:00
Tomasz Zieliński e6f0afd586 Tweaking parameters, cleanup 2024-02-02 15:50:33 +01:00
Tomasz Zieliński 178f960533 First working version 2024-02-02 14:27:32 +01:00
Tomasz Zieliński 9f7c986621 First version that compiles successfully 2024-02-02 10:37:08 +01:00
DjWarmonger ca3225325b Merge pull request #3587 from vcmi/dydzio0614-patch-1
Replace VCMI 1.4.4 download badge with 1.4.5
2024-02-01 17:09:15 +01:00
Tomasz Zieliński c5aa31f46a First sketch 2024-01-30 18:04:15 +01:00
Tomasz Zieliński a2e0742ffb Fix invalid logic which made AI not attack guards 2024-01-24 13:45:05 +02:00
Tomasz Zieliński dbf53d78ba Fix invalid logic which made AI not attack guards 2024-01-24 06:20:46 +01:00
Tomasz Zieliński 5836e390f1 Do not place zone guards adjacent to 3rd zone 2024-01-23 13:45:35 +02:00
Tomasz Zieliński b3adb9e554 Do not place zone guards adjacent to 3rd zone 2024-01-22 09:27:30 +01:00
DjWarmonger 4e8ddf8d5b Merge pull request #3526 from luk3ZPL/develop
Update difficulty.json
2024-01-21 09:07:05 +01:00
DjWarmonger 522e251d21 Update Readme.md
Removed 1.4.3 release to not confuse players. Added 1.4.4 counter instead.
2024-01-20 11:39:40 +01:00
DjWarmonger e9aa952546 Merge pull request #3504 from vcmi/DjWarmonger-patch-2
Add link do GPT Store
2024-01-20 07:26:07 +01:00
DjWarmongerandAlexander Wilms 4f28cd42b7 Update lib/rmg/modificators/PrisonHeroPlacer.h
Co-authored-by: Alexander Wilms <Alexander-Wilms@users.noreply.github.com>
2024-01-17 10:11:55 +01:00
DjWarmongerandAlexander Wilms 91a20c2bfd Update lib/rmg/CMapGenerator.h
Co-authored-by: Alexander Wilms <Alexander-Wilms@users.noreply.github.com>
2024-01-17 10:11:50 +01:00
Tomasz Zieliński 66efb07e52 More 2024-01-17 07:45:53 +01:00
Tomasz Zieliński a568a9b3fb Fix lambda capture 2024-01-17 07:26:51 +01:00
Tomasz Zieliński 253f1dc7e6 Refactor duplicated code as suggested by SonarCloud 2024-01-17 07:18:14 +01:00
Tomasz Zieliński afc9bd908c Unused capture 2024-01-16 17:38:36 +01:00
Tomasz Zieliński aa5bb27d20 Style 2024-01-16 17:16:15 +01:00
Tomasz Zieliński 817ab1d53d Actually fix quest artifacts not getting banned at all 2024-01-16 17:16:03 +01:00
Tomasz Zieliński 71844d4d92 Unban artifacts if RMG fails to place Seer Hut (unlikely) 2024-01-16 17:15:35 +01:00
DjWarmonger 781cb4dabe Add link do GPT Store 2024-01-15 19:38:24 +01:00
Tomasz Zieliński 0273d9c36b Remove unused variable 2024-01-15 07:59:50 +01:00
Tomasz Zieliński 285bafdbf4 Do not ban heroes in Prisons, they might be rehired after they are defeated.
Restore hero to pool if Prison fails to be placed.
2024-01-15 07:41:29 +01:00
Tomasz Zieliński ee6c331bad Merge remote-tracking branch 'origin/beta' into random_prison_distributor 2024-01-14 21:56:49 +01:00
DjWarmonger 19765e0e01 Merge pull request #3480 from IvanSavenko/rmg_ban_starting_heroes
Ban starting heroes in RMG
2024-01-14 21:56:16 +01:00
Tomasz Zieliński 3e623565a2 Fix redundant class 2024-01-13 21:39:17 +01:00
Tomasz Zieliński 3aa67b3e5f Merge remote-tracking branch 'origin/beta' into random_prison_distributor 2024-01-13 21:02:08 +01:00
Tomasz Zieliński ebf2055afc - Unban hero if related Prison is destroyed during map generation
- Move prison counter to PrisonHeroPlacer
2023-12-24 09:36:26 +01:00
Tomasz Zieliński b0f0e9caa8 Merge remote-tracking branch 'origin/beta' into random_prison_distributor 2023-12-24 06:46:18 +01:00
Tomasz Zieliński 47915e02fa Ban Armageddon's Blade and Vial of Dragon Blood by default 2023-12-23 13:12:09 +01:00
Tomasz Zieliński f9e5d73014 Missed optimization case 2023-12-21 17:56:21 +01:00
Tomasz Zieliński d6336d7c45 Reverted change that seems to cause regression 2023-12-21 17:55:08 +01:00
Tomasz Zieliński d4216a9191 Fixed routing roads behind Sub Gates, Monoliths and Mines 2023-12-21 13:22:23 +01:00
Tomasz Zieliński d5f9de5beb Definitive solution for Corpse 2023-12-21 12:29:45 +01:00
Tomasz Zieliński e22f6dd07e Fix for choosing most specific templates. Also seems to fix the Prisons. 2023-12-21 09:58:39 +01:00
Tomasz Zieliński ad82eff225 Final and perfect treasue nd obstacle density 2023-12-19 09:24:43 +01:00
Tomasz Zieliński 916aedb13c Obvious fix 2023-12-19 09:24:01 +01:00
Tomasz Zieliński bbb3e701ab Reverted incorrect logic. Likely the fix for hota Prison. 2023-12-18 17:18:13 +01:00
Tomasz Zieliński 9b12f54972 Compile fix 2023-12-18 14:49:05 +01:00
Tomasz Zieliński 7f7df93e12 Style fix 2023-12-18 14:25:07 +01:00
Tomasz Zieliński 80ea1826d3 Style fix 2023-12-18 14:02:55 +01:00
Tomasz Zieliński 038bcd32f6 Lightweight int3 hash function 2023-12-18 13:55:54 +01:00
Tomasz Zieliński c701d42781 Multiple optimizations to avoid copying and allocating tiles for rmg::Area 2023-12-18 13:52:03 +01:00
Tomasz Zieliński 985a2682ae Place Monoliths at max distance in Junction zone 2023-12-18 11:12:52 +01:00
Tomasz Zieliński bd5361a108 Possible fix to https://github.com/vcmi/vcmi/issues/3334 2023-12-18 10:55:40 +01:00
Tomasz Zieliński 24f74875ef Do not fractalize tiles near the edge of the map to avoid paths adjacent to map edge 2023-12-18 08:14:48 +01:00
Tomasz Zieliński 339627731c Fixes 2023-12-15 18:26:59 +01:00
Tomasz Zieliński 99870be24c Tiny optimizations to avoid copies 2023-12-13 22:20:23 +01:00
Tomasz Zieliński d31789e745 Extra cache for search area 2023-12-13 22:13:42 +01:00
Tomasz Zieliński bfea30e318 Optimization tweaks 2023-12-13 22:12:16 +01:00
Tomasz Zieliński 8602a14e6f Minor optimizations 2023-12-13 22:10:39 +01:00
Tomasz Zieliński b9193ecb73 Do not calculate area for invalid positions 2023-12-13 22:06:47 +01:00
Tomasz Zieliński 2d3b8ee866 Increased amount of generated treasure piles without increasing density 2023-12-12 12:50:27 +01:00
Tomasz Zieliński e5f60f063c - Check full object area for minimum distance requirement
- Add option to optimize both for max distance and custom weight
2023-12-12 07:40:54 +01:00