COrrections, WIP
This commit is contained in:
@@ -108,19 +108,12 @@ export class ItemSheetL5r5e extends BaseItemSheetL5r5e {
|
||||
}
|
||||
|
||||
// If we are a property, the child id need to be different to parent
|
||||
// (property type removed — guard kept for legacy data safety)
|
||||
if (this.item.type === "property" && this.item.id === item._id) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Specific ItemPattern's drop, get the associated props instead
|
||||
if (item.type === "item_pattern" && item.system.linked_property_id) {
|
||||
item = await game.l5r5e.HelpersL5r5e.getObjectGameOrPack({
|
||||
id: item.system.linked_property_id,
|
||||
type: "Item",
|
||||
});
|
||||
}
|
||||
|
||||
// Final object has to be a property
|
||||
// Final object has to be a property (type removed — no more drops possible)
|
||||
if (item.type !== "property") {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user