diff --git a/module/actor/entity.js b/module/actor/entity.js index 2e2bf087..349bcf4d 100644 --- a/module/actor/entity.js +++ b/module/actor/entity.js @@ -347,7 +347,7 @@ export default class Actor5e extends Actor { data.attributes.cost.baseBuild = sizeData.buildBaseCost; data.attributes.workforce.minBuild = sizeData.buildMinWorkforce; data.attributes.workforce.max = data.attributes.workforce.minBuild * 5; - data.attributes.cost.baseUpgrade = SW5E.upgradeBaseCost[tiers]; + data.attributes.cost.baseUpgrade = SW5E.baseUpgradeCost[tiers]; data.attributes.cost.multUpgrade = sizeData.upgrdCostMult; data.attributes.workforce.minUpgrade = sizeData.upgrdMinWorkforce; // push to derived since based on attributes diff --git a/module/config.js b/module/config.js index 016e27d7..b7c4820a 100644 --- a/module/config.js +++ b/module/config.js @@ -489,6 +489,17 @@ SW5E.powerDieTypes = [1, "d4", "d6", "d8", "d10", "d12"]; /* -------------------------------------------- */ + +/** + * Enumerate the upgrade costs as they apply to starships in the SW5E system based on Tier. + * @type {Array.} + */ + +SW5E.baseUpgradeCost = [0, 3900, 77500, 297000, 620000, 1150000]; + +/* -------------------------------------------- */ + + /** * Enumerate the base stat and feature settings for starships based on size. * @type {Array.} diff --git a/templates/actors/newActor/starship.html b/templates/actors/newActor/starship.html index 2de88fc1..4e3a206d 100644 --- a/templates/actors/newActor/starship.html +++ b/templates/actors/newActor/starship.html @@ -89,7 +89,7 @@ - {{!-- NPC Sheet Body --}} + {{!-- Starship Sheet Body --}}
@@ -170,12 +170,12 @@ {{localize "SW5E.DmgRed"}}: @@ -273,7 +273,7 @@ {{localize "SW5E.PowerDieAlloc"}} {{localize "SW5E.PowerDie"}}: +

{{localize "SW5E.StarshipmodPl"}}