Pārlūkot izejas kodu

More examples in docs

Ivan Savenko 1 gadu atpakaļ
vecāks
revīzija
cf1c2d66cc
1 mainītis faili ar 31 papildinājumiem un 0 dzēšanām
  1. 31 0
      docs/modders/Entities_Format/Town_Building_Format.md

+ 31 - 0
docs/modders/Entities_Format/Town_Building_Format.md

@@ -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