Create Item Hotfix - 0.1.7b
This commit is contained in:
@@ -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>',
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user