1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-16 00:10:48 +02:00
Files
vcmi/lib/mapObjectConstructors
Ivan Savenko a655661a2e Fix issues with object customization in rmg
Fixed several issues with resolving identifiers of map objects when
banning or overriding rmg properties of map objects.

Syntax should now be way simple and more readable, e.g:
```json
"bannedObjects" : {
	"randomArtifactRelic" : true,
	"hota.mapobjects:townGate" : true,
	"cartographer" : {
		"cartographerLand" : true
	}
}
```

Objects with customized rmg properties are not implicitly banned - to
prevent default rmg properties from having an effect.

In addition, it is now possible to ban or customize objects even without
explicit mod dependency, similar to how object bans work in 1.7. If
corresponding mod is not active, object ban/customization will be
ignored.

See changes in docs in this PR for docs.

Resolved issues:

- Fixes #5554
- Fixes #5556

NOTE: old (1.6) rmg templates will work as before, however changed
format will be reported by validation - please update mods either before
or after 1.7 release
2025-11-24 18:25:15 +02:00
..
2024-09-21 13:36:28 +02:00