diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d16c5c2d..38352d9ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Next Release - Fix a bug where clicking "+Vow" would create a "progress" item instead of a "vow" item. +- Extend the location sheet to include IS islands and settlements ([#1037](https://github.com/ben/foundry-ironsworn/pull/1037)) ## 1.24.6 diff --git a/src/module/features/sceneButtons.ts b/src/module/features/sceneButtons.ts index f276febd9..9bf2b58a4 100644 --- a/src/module/features/sceneButtons.ts +++ b/src/module/features/sceneButtons.ts @@ -135,6 +135,14 @@ function newVault() { newLocation('vault', 'ACTOR.SubtypeVault', 2) } +function newIsland() { + newLocation('island', 'ACTOR.SubtypeIsland') +} + +function newSiSettlement() { + newLocation('sunderedsettlement', 'ACTOR.SubtypeSettlement') +} + let ORACLE_WINDOW: OracleWindow | undefined function theOracleWindow() { if (ORACLE_WINDOW == null) ORACLE_WINDOW = new OracleWindow() @@ -265,14 +273,32 @@ function sunderedIslifyControl(control: SceneControl) { }) if (game.user?.isGM) { - control.tools.push({ - name: 'edit', - icon: 'isicon-region-si', - title: game.i18n.format('DOCUMENT.Update', { - type: game.i18n.localize('IRONSWORN.SCENE.TypeChart') - }), - onClick: editSector - }) + control.tools.push( + { + name: 'edit', + icon: 'isicon-region-si', + title: game.i18n.format('DOCUMENT.Update', { + type: game.i18n.localize('IRONSWORN.SCENE.TypeChart') + }), + onClick: editSector + }, + { + name: 'island', + icon: 'isicon-island', + title: game.i18n.format('DOCUMENT.Create', { + type: game.i18n.localize('IRONSWORN.ACTOR.SubtypeDerelict') + }), + onClick: newIsland + }, + { + name: 'sisettlement', + icon: 'isicon-settlement-si', + title: game.i18n.format('DOCUMENT.Create', { + type: game.i18n.localize('IRONSWORN.ACTOR.SubtypeSettlement') + }), + onClick: newSiSettlement + } + ) } } diff --git a/src/module/vue/sf-locationsheet.vue b/src/module/vue/sf-locationsheet.vue index 08611b3cf..9f285553c 100644 --- a/src/module/vue/sf-locationsheet.vue +++ b/src/module/vue/sf-locationsheet.vue @@ -9,14 +9,8 @@ > {{ $t('IRONSWORN.Region') }} @@ -28,11 +22,9 @@ > {{ $t('IRONSWORN.LocationType') }} @@ -41,6 +33,7 @@