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:
parent
e12ac35855
commit
5d8877ff29
2 changed files with 68 additions and 64 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue