add configurable settings for tech damage and currency overrides, and update active effect injection logic to ensure proper parent binding.

This commit is contained in:
CPTN Cosmo 2026-04-26 18:02:08 +02:00
parent e12ac35855
commit 5d8877ff29
2 changed files with 68 additions and 64 deletions

View file

@ -93,7 +93,15 @@ export function patchIkonisLogic() {
if (!feature || !feature.effects) continue;
for (const effect of feature.effects) {
if (effect.transfer) yield effect;
if (effect.transfer) {
console.log(`DH-Ikonis | Injecting effect '${effect.name}' from augment '${feature.name}' on ${this.name}`);
// Clone the effect and set this actor as parent to ensure application
const effectData = effect.toObject();
effectData.disabled = false;
const effectInstance = new ActiveEffect(effectData, { parent: this });
yield effectInstance;
}
}
}
@ -102,7 +110,14 @@ export function patchIkonisLogic() {
const feature = _featureCache.get(bondedUuid) || fromUuidSync(bondedUuid);
if (feature?.effects) {
for (const effect of feature.effects) {
if (effect.transfer) yield effect;
if (effect.transfer) {
console.log(`DH-Ikonis | Injecting bonded effect '${effect.name}' from '${feature.name}' on ${this.name}`);
const effectData = effect.toObject();
effectData.disabled = false;
const effectInstance = new ActiveEffect(effectData, { parent: this });
yield effectInstance;
}
}
}
}