1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Implement shortcut for hero skill specialties

Should make changes to secondary skill bonuses less mod-breaking, and
reduce chances of incorrectly defined specialties in mods
This commit is contained in:
Ivan Savenko
2025-06-03 17:32:15 +03:00
parent 4fda657296
commit eb9a5bb71b
17 changed files with 170 additions and 382 deletions

View File

@@ -129,8 +129,11 @@ In order to make functional hero you also need:
"someBonus" : {Bonus Format},
"anotherOne" : {Bonus Format}
},
// Optional. Shortcut for defining creature specialty, using standard H3 rules
"creature" : "griffin"
// Shortcut for defining creature specialty, using standard H3 rules
"creature" : "griffin",
// Shortcut for defining specialty in secondary skill, using standard H3 rules
"secondary" : "offence"
}
}
```

View File

@@ -26,6 +26,11 @@
"advanced": {Skill level format},
"expert": {Skill level format},
// Names of bonuses of the skill that are affected by default secondary skill specialty of a hero
"specialty" : [
"main"
],
// Chance for the skill to be offered on level-up (heroClass may override)
"gainChance" : {
// Chance for hero classes with might affinity