forked from public/foundryvtt-reve-de-dragon
Simplification des actionPrincipales
Préparation pour supporter une liste d'actions sur les items
This commit is contained in:
@ -70,7 +70,7 @@ export class RdDSheetUtility {
|
||||
await RdDSheetUtility._onSplitItem(item, split, actor);
|
||||
onSplit();
|
||||
});
|
||||
dialog.render(true);
|
||||
dialog.render(true)
|
||||
}
|
||||
|
||||
static async _onSplitItem(item, split, actor) {
|
||||
@ -82,4 +82,11 @@ export class RdDSheetUtility {
|
||||
await actor.createEmbeddedDocuments('Item', [splitItem])
|
||||
}
|
||||
}
|
||||
|
||||
static async renderItemBranch(actor, item) {
|
||||
while (item) {
|
||||
await item.sheet?.render()
|
||||
item = actor.getContenant(item)
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user