Files
vcmi/lib
Ivan Savenko aeb6c0be26 Support for replacement of individual entries in json lists
It is now possible for mods to modify json lists precisely, without full
replacement. Supported options:
- `append`: appends a single item to end of list
- `appendItems`: appends multiple items to end of list
- `insert@NUM`: inserts a single item *before* item NUM (item counting
is 0-based)
- `modify@NUM`: allows editing of a single item NUM (item counting is 0-
based)

Example - addition of a new item into town hall slots:
```json
"hallSlots":
{
	"modify@4" : {
		"append" : [ "dwellingLvl7B", "dwellingUpLvl7B" ]
	}
},
```
This would modify 4th element (last row) by appending new entry to the
end of last row

```json
{
	"modify@4" : {
		"insert@1" : [ "dwellingLvl5B", "dwellingUpLvl5B" ]
	}
},
```
This would add new slot not in the end of last row, but before 1st item
(between 5th and 6th dwellings)
2025-03-27 19:22:50 +00:00
..
2025-03-19 08:03:56 +00:00
2025-03-08 16:11:59 +00:00
2025-03-12 13:33:12 +00:00
2025-03-26 19:55:56 +00:00
…
…
2025-03-26 00:18:45 +08:00
2025-02-28 14:59:00 +00:00
…
2025-03-12 13:33:12 +00:00
2025-03-26 00:18:45 +08:00
2025-03-26 00:18:45 +08:00
2025-02-28 15:25:58 +01:00
2025-02-28 15:25:58 +01:00
…
…
…
…
2025-02-28 16:01:11 +01:00
2025-03-19 08:03:56 +00:00