COrrections, WIP

This commit is contained in:
2026-04-24 22:04:09 +02:00
parent d75b6cb945
commit e200b5f7b0
126 changed files with 768 additions and 5805 deletions

View File

@@ -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;
}