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

21 Commits

Author SHA1 Message Date
Ivan Savenko
6720289682 Merge pull request #5919 from IvanSavenko/rmg_banned_entities
Support for banned game entities in random map templates
2025-07-17 16:03:08 +03:00
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
a0a99d7311 Fix build, fix sonar 2025-07-13 23:03:45 +03:00
Ivan Savenko
246010c13e Update docs, fix inconsistencies between config & code 2025-07-11 19:20:53 +03:00
Ivan Savenko
42c995bbd7 Add more internal links, fix formatting 2025-06-08 14:51:52 +03:00
Ivan Savenko
b0926c67b6 Apply suggestions 2025-06-07 19:40:54 +03:00
Ivan Savenko
5bc27d3d90 Initial version of bonus system usage guide 2025-06-06 18:52:10 +03:00
Ivan Savenko
8f0bca05de Review & update spell format documentation. Remove unused ai value 2025-06-05 22:30:16 +03:00
Ivan Savenko
879aaba980 Use json instead of json5 for syntax highlight in docs
Looks like website only recognizes javascript & json, and is not aware
of jsonc or json5.

Will result in small regression on Github web view - comments will show
up as red (since comments are not part of json format), but syntax
highlight would work both on website and on Github.

Alternative is using javascript for syntax highlight, however syntax
highlighter for json looks better on both website and Github (since it
uses separate highlighting for json keys, separate from strings in
values)
2024-12-04 16:50:01 +00:00
Ivan Savenko
7b682f9010 Always use json5 for syntax highlighting. 2024-12-01 12:18:06 +00:00
Ivan Savenko
74a4a10f48 Added markdownlint to Github CI
- Markdown will now be validated as part of Github CI
- Applied auto-fix to most common issues (mostly whitespace related)
- Fixed manually some of more complex cases

Some valid markdownlint rules are currently disabled, to avoid failing
CI, can be enabled in future
2024-11-30 20:20:15 +00:00
Ivan Savenko
be0da8442e Adjust docs 2024-11-18 10:45:43 +00:00
Laserlicht
e6cb87abac cast only on self 2024-09-28 17:32:53 +02:00
Laserlicht
0aaafc4c8a cast without skip 2024-09-14 15:10:24 +02:00
Laserlicht
8f407311fd fix headings of md files 2024-07-16 20:29:20 +02:00
Ivan Savenko
fc28943741 Adjusted docs layout to fix table of content 2024-06-04 20:22:43 +00:00
Laserlicht
277a0e63d8 update docs 2024-05-06 00:46:21 +02:00
Ivan Savenko
1194419884 Added option to allow self-casting 2024-01-16 15:13:00 +02:00
Ivan Savenko
403acc0cf1 Update spell docs 2023-09-26 15:55:27 +03:00
Ivan Savenko
704772d6ce Added navigation to player and modders docs 2023-09-07 11:04:01 +03:00
Ivan Savenko
3dcd4c7a6f Modders docs update iteration 2023-09-07 11:04:01 +03:00