Skip to content

Commit

Permalink
fix chargen error, uia script update
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-man committed Jan 31, 2025
1 parent 57e78a9 commit 05fb541
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions modules/model/item/skill.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,17 @@ export class SkillModel extends BaseItemModel {
}
}

_handleSkillMerging()
_handleSkillMerging(data, options, user)
{
if (this.parent.isEmbedded)
if (this.parent.isEmbedded && this.parent.actor.inCollection) // prevent error during chargen
{
let actor = this.parent.actor;

let existing = actor.itemTags.skill.find(i => i.name == this.parent.name);

if (existing)
{
existing.update({"system.advances.value" : existing.advances.value + this.advances.value});
existing.update({"system.advances.value" : existing.advances.value + this.advances.value}, options);
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions scripts/R32U01LBjBrK1pns.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const templateMap = {
'P2e7Yx98bK3u110a' : "",
'iuMp3KLaMT2WCmie' : "Xp4r2KUhqfjak8zq",
'RBuYcT5tppwcmnC5' : "wYN19h3WVF1yOVq2",
'vcGpNwNbhvfzVveQ' : "ac5ClOuaYtzOYyWp",
'jmhKZy0w9TzkEK9c' : "IS3LTdTuay6uRHUq",
'9Byj6k7SmdTYis2V' : "LjMlx99gBGeRJUQu",
'laJwc2l9tzJPgaaJ' : "x5wpMprsObuqMCYg",
'iuMp3KLaMT2WCmie' : "4s01nHFKVKTEZd3B",
'RBuYcT5tppwcmnC5' : "h3yuJDWnixliXeBG",
'vcGpNwNbhvfzVveQ' : "7QrsbofccMOE1YsF",
'jmhKZy0w9TzkEK9c' : "scVTPVyDDbli4WZL",
'9Byj6k7SmdTYis2V' : "4Cd7Dknee2WjReOo",
'laJwc2l9tzJPgaaJ' : "2hJ2a5YjbwZWWYrd",
}
let template = (await game.wfrp4e.tables.rollTable("hireling-templates", {hideDSN: true})).object;
let physicalQuirk = (await game.wfrp4e.tables.rollTable("physical-quirks", {hideDSN: true})).text;
Expand Down
4 changes: 2 additions & 2 deletions system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "wfrp4e",
"title": "Warhammer Fantasy Roleplay 4th Edition",
"description": "A comprehensive system for running grim and perilous games of Warhammer Fantasy Roleplay in the Foundry VTT environment.",
"version": "8.4.0",
"version": "8.4.1",
"authors" : [
{
"name": "Moo Man",
Expand Down Expand Up @@ -72,6 +72,6 @@
},
"socket": true,
"manifest" : "https://github.com/moo-man/WFRP4e-FoundryVTT/releases/latest/download/system.json",
"download" : "https://github.com/moo-man/WFRP4e-FoundryVTT/releases/download/8.4.0/wfrp4e.zip",
"download" : "https://github.com/moo-man/WFRP4e-FoundryVTT/releases/download/8.4.1/wfrp4e.zip",
"url" : "https://github.com/moo-man/WFRP4e-FoundryVTT"
}

0 comments on commit 05fb541

Please sign in to comment.