docs(mods): add standalone mod-dev-docs handbook and launcher quick-open button
This commit is contained in:
1 parent
5983e3f3e2
commit
aa952e7cca
26 files changed
+1619
-145
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# 05 · Server Code-Free Tuning Overlays
|
||||
|
||||
The local server stores all offline-defined economy, battle, store, marketplace, chest, redeem-code, clan, and limit values in **12 `.jsonc` tuning files**. Mods can overlay any of them under `server/tuning/<name>.jsonc` without writing code.
|
||||
|
||||
## 1. Merge Precedence
|
||||
|
||||
1. Shipped defaults (`apps/server/tuning/<name>.jsonc`)
|
||||
2. Enabled mods' `server/tuning/<name>.jsonc` in load order
|
||||
3. Player overrides (`<dataFolder>/tuning/<name>.jsonc`, highest priority)
|
||||
|
||||
## 2. All 12 Tuning Files
|
||||
|
||||
`battle.jsonc`, `battle-economy.jsonc`, `store.jsonc`, `marketplace.jsonc`, `trophies.jsonc`, `supply-chests.jsonc`, `recycling.jsonc`, `redeem-codes.jsonc`, `new-profile.jsonc`, `research.jsonc`, `clans.jsonc`, `limits.jsonc`.
|
||||
|
||||
## 3. Additive List Operations (`$listOps`)
|
||||
|
||||
Objects merge recursively by key; plain arrays replace the previous array. To stack items across multiple mods without clobbering, wrap list edits in `{ "$listOps": [...] }`:
|
||||
|
||||
```jsonc
|
||||
{
|
||||
"multiVehiclePacks": {
|
||||
"$listOps": [
|
||||
{ "op": "append", "items": [{ "id": "mod_duo_pack", "priceGjn": 49.99, "vehicles": ["us_m2a4"] }] },
|
||||
{ "op": "upsertBy", "key": "id", "item": { "id": "wto_pack_two_fronts", "priceGjn": 19.99 } },
|
||||
{ "op": "removeBy", "key": "id", "value": "some_pack_id" }
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Supported ops: `append`, `prepend`, `upsertBy`, `removeBy`.
|
||||
Reference in new issue
Block a user