forked from GitHub-Mirrors/foundry-sw5e
Removed unnecessary additions to migration
This commit is contained in:
parent
fe520f2c0d
commit
e30d823225
1 changed files with 0 additions and 22 deletions
|
@ -216,7 +216,6 @@ export const migrateItemData = function(item) {
|
|||
const updateData = {};
|
||||
_migrateItemClassPowerCasting(item, updateData);
|
||||
_migrateItemAttunement(item, updateData);
|
||||
_migrateItemPowercasting(item, updateData);
|
||||
return updateData;
|
||||
};
|
||||
|
||||
|
@ -231,7 +230,6 @@ export const migrateActorItemData = async function(item, actor) {
|
|||
const updateData = {};
|
||||
_migrateItemClassPowerCasting(item, updateData);
|
||||
_migrateItemAttunement(item, updateData);
|
||||
_migrateItemPowercasting(item, updateData);
|
||||
await _migrateItemPower(item, actor, updateData);
|
||||
return updateData;
|
||||
};
|
||||
|
@ -655,26 +653,6 @@ function _migrateItemAttunement(item, updateData) {
|
|||
return updateData;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
/**
|
||||
* Replace class powercasting string to object.
|
||||
*
|
||||
* @param {object} item Item data to migrate
|
||||
* @param {object} updateData Existing update to expand upon
|
||||
* @return {object} The updateData to apply
|
||||
* @private
|
||||
*/
|
||||
function _migrateItemPowercasting(item, updateData) {
|
||||
if ( item.type !== "class" || (foundry.utils.getType(item.data.powercasting) === "Object") ) return updateData;
|
||||
updateData["data.powercasting"] = {
|
||||
progression: item.data.powercasting,
|
||||
ability: ""
|
||||
};
|
||||
return updateData;
|
||||
}
|
||||
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue