Create Item Hotfix - 0.1.7b

This commit is contained in:
Martin Jencka
2021-12-31 09:09:03 -07:00
parent f51015e214
commit fafe85c96e
4 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -307,7 +307,7 @@ export class MothershipActorSheet extends ActorSheet {
// Finally, create the item!
return this.actor.createOwnedItem(itemData);
return this.actor.createEmbeddedDocuments("Item",[itemData]);
}
/**
@@ -356,7 +356,8 @@ export class MothershipActorSheet extends ActorSheet {
itemData.data.rank = rank;
itemData.name = html.find('[id=\"name\"]')[0].value
this.actor.createOwnedItem(itemData);}
this.actor.createEmbeddedDocuments("Item",[itemData]);
}
},
cancel: {
icon: '<i class="fas fa-times"></i>',
+1 -1
View File
@@ -254,7 +254,7 @@ export class MothershipCreatureSheet extends ActorSheet {
delete itemData.data["type"];
// Finally, create the item!
return this.actor.createOwnedItem(itemData);
return this.actor.createEmbeddedDocuments("Item",[itemData]);
}
+1 -1
View File
@@ -243,7 +243,7 @@ export class MothershipShipSheet extends ActorSheet {
delete itemData.data["type"];
// Finally, create the item!
return this.actor.createOwnedItem(itemData);
return this.actor.createEmbeddedDocuments("Item",[itemData]);
}
+2 -2
View File
@@ -2,9 +2,9 @@
"name": "mosh",
"title": "MoSh - Unofficial Mothership",
"description": "The unofficial Mothership system for FoundryVTT.",
"version": "0.1.7",
"version": "0.1.7b",
"minimumCoreVersion": "0.8.6",
"compatibleCoreVersion": "0.9.0",
"compatibleCoreVersion": "V9",
"templateVersion": 2,
"author": "Futilrevenge",
"esmodules": ["module/mosh.js"],