1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/docs/modders/Map_Objects/Dwelling.md
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

758 B

Dwelling

{
	/// List of creatures in this bank. Each list represents one "level" of bank
	/// Creatures on the same level will have shared growth and available number (similar to towns)
	/// Note that due to GUI limitation it is not recommended to have more than 4 creatures at once
	"creatures" : [ 
		[ "airElemental", "stormElemental" ],
		[ "waterElemental" ]
	],

	/// List of guards for this dwelling. Can have two possible values:
	/// Boolean true/false - If set to "true", guards will be generated using H3 formula:
	/// 3 week growth of first available creatures
	/// List of objects - custom guards, each entry represent one stack in defender army
	"guards" : true,
	"guards" : [
		{ "amount" : 12, "type" : "earthElemental" }
	]
}