1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

More examples in docs

This commit is contained in:
Ivan Savenko 2024-08-17 15:00:27 +00:00
parent cc5564a7b1
commit cf1c2d66cc

View File

@ -79,6 +79,37 @@ These are just a couple of examples of what can be done in VCMI. See vcmi config
},
```
#### Brotherhood of Sword - bonuses in siege
```jsonc
"special3": {
// replaces +1 Morale bonus from Tavern
"upgradeReplacesBonuses" : true,
// Gives +2 bonus to morale to town (effective only during siege)
"bonuses": [
{
"type": "MORALE",
"val": 2
}
],
"upgrades" : "tavern"
},
```
#### Lighthouse - bonus to all heroes under player control
```jsonc
"special1": {
"bonuses": [
{
"propagator": "PLAYER_PROPAGATOR", // bonus affects everything under player control
"type": "MOVEMENT",
"subtype": "heroMovementSea",
"val": 500 // +500 movement points
}
],
"requires" : [ "shipyard" ]
},
```
## Town Building node
```jsonc