Added FoV English Opportunities usage
Fix for Asako Inquisitor School : Crab -> Phoenix
This commit is contained in:
@@ -80,10 +80,17 @@ export class ItemL5r5e extends Item {
|
||||
}
|
||||
|
||||
// Sanitize some values
|
||||
if (this.data.type === "weapon") {
|
||||
this.data.data.range = this.data.data.range || 0;
|
||||
this.data.data.damage = this.data.data.damage || 0;
|
||||
this.data.data.deadliness = this.data.data.deadliness || 0;
|
||||
switch (this.data.type) {
|
||||
case "armor":
|
||||
this.data.data.armor.physical = this.data.data.armor.physical || 0;
|
||||
this.data.data.armor.supernatural = this.data.data.armor.supernatural || 0;
|
||||
break;
|
||||
|
||||
case "weapon":
|
||||
this.data.data.range = this.data.data.range || 0;
|
||||
this.data.data.damage = this.data.data.damage || 0;
|
||||
this.data.data.deadliness = this.data.data.deadliness || 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -234,6 +234,10 @@ export class MigrationL5r5e {
|
||||
const actorData = actor.data;
|
||||
|
||||
// We need to be careful for unlinked tokens, only the diff is store in "data".
|
||||
// ex no diff : actor = {type: "npc"}, actorData = undefined
|
||||
if (!actorData) {
|
||||
return updateData;
|
||||
}
|
||||
|
||||
// ***** Start of 1.1.0 *****
|
||||
if (options?.force || MigrationL5r5e.needUpdate("1.1.0")) {
|
||||
|
||||
Reference in New Issue
Block a user