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

Merge pull request #5768 from IvanSavenko/skill_shortcut

Implement shortcut for hero skill specialties
This commit is contained in:
Ivan Savenko
2025-06-04 21:11:26 +03:00
committed by GitHub
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