feat: move DEFAULT_AUGMENTS to dedicated augments.js module and update data definitions

This commit is contained in:
CPTN Cosmo 2026-04-26 19:58:19 +02:00
parent 21b5a5a481
commit 073ba927c0
2 changed files with 178 additions and 49 deletions

View file

@ -1,52 +1,4 @@
export const DEFAULT_AUGMENTS = [
{
id: "bonded",
name: "Bonded",
effect: "Primary module for Ikonis hardware synchronization.",
cost: "Cost: None",
img: "icons/magic/control/debuff-energy-hold-blue-yellow.webp",
effects: [
{
_id: "ikonisBondedEff",
name: "Ikonis: Bonded",
type: "base",
img: "icons/magic/control/debuff-energy-hold-blue-yellow.webp",
system: {
changes: [
{
key: "system.bonuses.damage.primaryWeapon.bonus",
type: "add",
value: "@tier",
priority: null,
phase: "initial"
}
],
duration: {
description: "",
type: ""
},
rangeDependence: {
enabled: false,
type: "withinRange",
target: "hostile",
range: "melee"
},
stacking: null,
targetDispositions: []
},
disabled: false,
transfer: true,
statuses: [],
showIcon: 1,
flags: {}
}
]
},
{ id: "force", name: "Force", effect: "+1 Damage on Melee attacks.", cost: "Cost: 2 Iron" },
{ id: "fire", name: "Fire", effect: "Deals Fire damage instead of Physical.", cost: "Cost: 1 Blaze Glass" },
{ id: "shield", name: "Shield", effect: "+1 Armor while equipped.", cost: "Cost: 2 Steel" },
{ id: "range", name: "Range", effect: "Increases Range by 1 step.", cost: "Cost: 1 Lens" }
];
import { DEFAULT_AUGMENTS } from './augments.js';
// Global caches for resolved features to keep getters fast
const _featureCache = new Map();