summon ally - mirror self fixes
This commit is contained in:
parent
c7193b3306
commit
f396636713
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [4.0.0]
|
## [4.0.0]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Added example morphables and summonables actor compendia.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Updated for Foundry v13
|
- Updated for Foundry v13
|
||||||
@ -18,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed Darksight effect name.
|
- Fixed Darksight effect name.
|
||||||
|
- Summon Ally: Mirror Self improvements - remove changesets and grants from
|
||||||
|
copied items.
|
||||||
|
|
||||||
## [3.1.5] 2025-01-27
|
## [3.1.5] 2025-01-27
|
||||||
|
|
||||||
|
|||||||
@ -65,6 +65,28 @@
|
|||||||
"ASSISTANT": "OWNER"
|
"ASSISTANT": "OWNER"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "summonable-actors",
|
||||||
|
"label": "SWADE MB Example Summonable Actors",
|
||||||
|
"path": "packs/summonable-actors",
|
||||||
|
"type": "Actor",
|
||||||
|
"system": "swade",
|
||||||
|
"ownership": {
|
||||||
|
"PLAYER": "OBSERVER",
|
||||||
|
"ASSISTANT": "OWNER"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "morphable-actors",
|
||||||
|
"label": "SWADE MB Example Morphable Actors",
|
||||||
|
"path": "packs/morphable-actors",
|
||||||
|
"type": "Actor",
|
||||||
|
"system": "swade",
|
||||||
|
"ownership": {
|
||||||
|
"PLAYER": "OBSERVER",
|
||||||
|
"ASSISTANT": "OWNER"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "swade-mb-gear",
|
"name": "swade-mb-gear",
|
||||||
"label": "SWADE MB Gear",
|
"label": "SWADE MB Gear",
|
||||||
@ -88,7 +110,9 @@
|
|||||||
"helper-macros",
|
"helper-macros",
|
||||||
"helper-actors",
|
"helper-actors",
|
||||||
"Common Actions",
|
"Common Actions",
|
||||||
"swade-mb-gear"
|
"swade-mb-gear",
|
||||||
|
"morphable-actors",
|
||||||
|
"summonable-actors"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@ -357,6 +357,13 @@ export class SummonAllyEffect extends BaseAllyEffect {
|
|||||||
scaleX: this.source.document.texture.scaleX * -1,
|
scaleX: this.source.document.texture.scaleX * -1,
|
||||||
scaleY: this.source.document.texture.scaleY,
|
scaleY: this.source.document.texture.scaleY,
|
||||||
},
|
},
|
||||||
|
ring: {
|
||||||
|
enabled: this.source.document.ring.enabled,
|
||||||
|
colors: {
|
||||||
|
ring: this.source.document.ring.colors.ring,
|
||||||
|
background: this.source.document.ring.colors.background,
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
this.data.mirrorChanges = [];
|
this.data.mirrorChanges = [];
|
||||||
for (const mirrorItem of mirrorActor.items) {
|
for (const mirrorItem of mirrorActor.items) {
|
||||||
@ -369,7 +376,13 @@ export class SummonAllyEffect extends BaseAllyEffect {
|
|||||||
if (['weapon', 'armor', 'consumable', 'gear'].includes(mirrorItem.type)) {
|
if (['weapon', 'armor', 'consumable', 'gear'].includes(mirrorItem.type)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
this.data.embeddedUpdates.Item[mirrorItem.name] = await mirrorActor.getEmbeddedDocument('Item', mirrorItem.id);
|
this.data.embeddedUpdates.Item[mirrorItem.name] = await mirrorActor
|
||||||
|
.getEmbeddedDocument('Item', mirrorItem.id)
|
||||||
|
.clone({
|
||||||
|
'system.choiceSets': {},
|
||||||
|
'system.grants': [],
|
||||||
|
});
|
||||||
|
|
||||||
if (mirrorItem.type === 'skill') {
|
if (mirrorItem.type === 'skill') {
|
||||||
this.data.mirrorChanges.push({
|
this.data.mirrorChanges.push({
|
||||||
key: `@Skill{${mirrorItem.name}}[system.die.sides]`,
|
key: `@Skill{${mirrorItem.name}}[system.die.sides]`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user