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

20422 Commits

Author SHA1 Message Date
Ivan Savenko
f58d08e563 Support for banned game entities in random map templates
The following entities can now be banned in a random map template
definition:
- Hero
- Artifact
- Spell
- Secondary skill

The ban follows the same rules as banning via the map settings in the
map editor.

It is also now possible to bypass dependencies and access identifiers
from mods that are not dependencies when defining:
- Banned entities in random map templates
- the chance of a hero class appearing in a tavern of a specific faction
- the chance of a spell appearing in a mage guild of a specific faction
- the chance of a hero class receiving a secondary skill

For this to work, the identifier must be specified in full, e.g.
`modName:objectName`. If the specified mod is not active, the game will
silently ignore this entry.

This behaviour is not affected by mod load order. It is possible to use
this format to access a mod that has not yet been loaded.
2025-07-14 00:18:11 +03:00
Ivan Savenko
0d9fd09a6d Merge pull request #5908 from dydzio0614/commanders_fix
Fix commanders config
2025-07-10 15:55:05 +03:00
Ivan Savenko
d3263a9a26 Merge pull request #5905 from IvanSavenko/sonar
Fix some sonar warnings and convert formatting from spaces to tabs
2025-07-10 15:54:40 +03:00
Dydzio
8ab0dd1605 Fix commanders config 2025-07-09 22:34:03 +02:00
Ivan Savenko
e12765dca0 Fix sonar warnings, convert spaces -> tabs 2025-07-09 17:52:51 +03:00
Ivan Savenko
ac06f3d557 Merge pull request #5897 from Opuszek/fix_magic_mirror_spell
Fix magic_mirror spell
2025-07-09 12:37:33 +03:00
Ivan Savenko
5caf43a63c Merge pull request #5900 from IvanSavenko/bonus_limiters
Bonus limiters refactoring
2025-07-09 11:12:11 +03:00
Ivan Savenko
09ac0f1806 Merge pull request #5851 from Laserlicht/max_range_spell
max range for spell cast
2025-07-09 11:05:37 +03:00
Ivan Savenko
97db95a3ab Merge pull request #5904 from Laserlicht/glitch
fix graphical glitch
2025-07-09 11:05:14 +03:00
Ivan Savenko
e3be6cc513 Merge pull request #5892 from Laserlicht/spell_school
custom spell schools in spell book
2025-07-09 11:04:27 +03:00
Ivan Savenko
b3c20d30e5 Merge pull request #5903 from Laserlicht/bonus_hide
Hide bonus from creature window
2025-07-09 11:03:21 +03:00
Ivan Savenko
c0145bad58 Merge pull request #5898 from IvanSavenko/clang
Add clang-tidy and clang-format configuration
2025-07-09 11:02:40 +03:00
Laserlicht
5ba4cb8270 fix small res 2025-07-08 22:21:03 +02:00
Laserlicht
7055e13059 fix second glitch in upper area (under lists) 2025-07-08 22:15:31 +02:00
Laserlicht
c26edf8963 fix graphical glitch 2025-07-08 21:57:21 +02:00
Laserlicht
3b63b837cc fix 2025-07-08 21:47:03 +02:00
Opuszek
7135005d89 fix problems 2025-07-08 16:20:09 +02:00
Laserlicht
07a62e28b9 tab 2025-07-08 14:20:15 +02:00
Ivan Savenko
4af7949571 Bonus limiters refactoring
- Split massive `parseLimiter` method in smaller chunks
- Added alternative format for limiters with named parameters instead of
unclear `parameters` entry that often leads to bugs in mods. Old format
is still available.
- Added detailed validation for limiter format
- Converted vcmi json's to use new format
- Removed parameter-less `CREATURE_FACTION` and `SAME_FACTION` limiter.
They are unused in mods and have unclear use-case that can be replaced
by other limiters
- Expanded documentation on limiter types

All mods that were supported before should still be supported
2025-07-08 13:01:08 +03:00
Laserlicht
cf32f00472 hide bonus 2025-07-08 11:59:16 +02:00
Laserlicht
ca8cfaf0ad Merge branch 'develop' into max_range_spell 2025-07-08 11:36:23 +02:00
Laserlicht
b6e8731329 code review 2025-07-08 10:34:11 +02:00
Laserlicht
c562aff7d2 translation / 6 slots for big book 2025-07-08 10:11:17 +02:00
Opuszek
00d5c3bca1 Update lib/spells/BattleSpellMechanics.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2025-07-08 10:04:36 +02:00
Opuszek
c78e8aa69f Update lib/spells/BattleSpellMechanics.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2025-07-08 10:04:23 +02:00
Opuszek
1393ac0420 Update lib/spells/BattleSpellMechanics.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2025-07-08 10:02:48 +02:00
Opuszek
7fc25319ee Update lib/spells/BattleSpellMechanics.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2025-07-08 10:02:37 +02:00
Opuszek
4eaa337eb3 Update lib/spells/BattleSpellMechanics.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2025-07-08 10:00:27 +02:00
Laserlicht
a37f918a15 code review 2025-07-08 09:57:03 +02:00
Ivan Savenko
46072a1d60 Merge pull request #5896 from IvanSavenko/code_reorganize
Split large source files into smaller files per 1 class
2025-07-08 10:47:13 +03:00
Ivan Savenko
fb8535d1cf Merge pull request #5882 from Laserlicht/save_stat
Statistics in highscore screen
2025-07-08 10:21:02 +03:00
Ivan Savenko
40f7de1342 Merge pull request #5889 from IvanSavenko/bonus_fixes
Fixes for bonus system
2025-07-08 10:05:38 +03:00
Ivan Savenko
0c037c6992 Merge pull request #5890 from IvanSavenko/battle_layout_fix
Tweaks for adaptive battle window UI
2025-07-08 10:05:27 +03:00
Ivan Savenko
f76b2efee6 Merge pull request #5894 from IvanSavenko/army_swap_fix
Armies swap will now maintain unit ordering
2025-07-08 10:05:18 +03:00
Ivan Savenko
980ffa591e Merge pull request #5893 from IvanSavenko/event_fix
Fix events on .vmap's not activating on hero visit
2025-07-08 10:05:10 +03:00
Opuszek
94ad9d536b Update lib/spells/BattleSpellMechanics.cpp
Fixes a lambda's captured values in BattleSpellMechanics.

Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2025-07-07 21:11:57 +02:00
Opuszek
f7bd9de59f fixes formatting 2025-07-07 21:00:42 +02:00
Ivan Savenko
95bc827f1b Add clang-tidy and clang-format configuration 2025-07-07 21:37:27 +03:00
Ivan Savenko
4c2d67eb45 Fix build 2025-07-07 20:58:53 +03:00
Ivan Savenko
33431adb27 Apply formatting on changed files 2025-07-07 19:19:17 +03:00
Ivan Savenko
8721bdd728 Split CCreatureSet file on .h/.cpp per class basis 2025-07-07 19:12:31 +03:00
Opuszek
c472427d8c Fix magic_mirror spell 2025-07-07 18:09:23 +02:00
Ivan Savenko
2ad186130f Split MapDefines file on .h per class basis 2025-07-07 18:16:42 +03:00
Ivan Savenko
ddff11184a Split AdventureSpellMechanics file on .h+.cpp per class basis 2025-07-07 17:28:16 +03:00
Ivan Savenko
5932e67568 Merge pull request #5875 from Laserlicht/patch-1
Fix AssetGenerator
2025-07-07 13:49:14 +03:00
Ivan Savenko
ce4e37f2d9 Armies swap will now maintain unit ordering 2025-07-07 13:45:34 +03:00
Ivan Savenko
4fc63427b9 Fix events on .vmap's not activating on hero visit 2025-07-07 12:41:45 +03:00
Laserlicht
23301b99dd fix 2025-07-07 03:47:29 +02:00
Laserlicht
e224ef73ff docs 2025-07-07 03:42:23 +02:00
Laserlicht
e9c250c1f8 update docs 2025-07-07 03:32:21 +02:00