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

1015 B

Boat

{
	// Layer on which this boat moves. Possible values:
	// "land" - same rules as movement of hero on land
	// "sail" - object can move on water and interact with objects on water
	// "water" - object can walk on water but can not interact with objects
	// "air" - object can fly across any terrain but can not interact with objects
	"layer" : "",
	
	// If set to true, it is possible to attack wandering monsters from boat
	"onboardAssaultAllowed" : true;
	
	// If set to true, it is possible to visit object (e.g. pick up resources) from boat
	"onboardVisitAllowed" : true;
	
	// Path to file that contains animated boat movement
	"actualAnimation" : "",
	
	// Path to file that contains animated overlay animation, such as waves around boat
	"overlayAnimation" : "",
	
	// Path to 8 files that contain animated flag of the boat. 8 files, one per each player
	"flagAnimations" : ["", "" ],
	
	// List of bonuses that will be granted to hero located in the boat
	"bonuses" : { BONUS_FORMAT }
}