Adds Monsters and Locations

This commit is contained in:
2025-05-31 22:56:43 -07:00
parent f3bfb2736c
commit 9c0d9326e0
11 changed files with 358 additions and 18 deletions

View File

@@ -0,0 +1,51 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_617371094")
// update field
collection.fields.addAt(3, new Field({
"hidden": false,
"id": "select2363381545",
"maxSelect": 1,
"name": "type",
"presentable": false,
"required": false,
"system": false,
"type": "select",
"values": [
"discoveredIn",
"secrets",
"treasures",
"scenes",
"npcs",
"locations",
"monsters"
]
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_617371094")
// update field
collection.fields.addAt(3, new Field({
"hidden": false,
"id": "select2363381545",
"maxSelect": 1,
"name": "type",
"presentable": false,
"required": false,
"system": false,
"type": "select",
"values": [
"discoveredIn",
"secrets",
"treasures",
"scenes",
"npcs",
"locations"
]
}))
return app.save(collection)
})