Skip to content

Commit 05fb541

Browse files
committed
fix chargen error, uia script update
1 parent 57e78a9 commit 05fb541

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

modules/model/item/skill.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,17 @@ export class SkillModel extends BaseItemModel {
165165
}
166166
}
167167

168-
_handleSkillMerging()
168+
_handleSkillMerging(data, options, user)
169169
{
170-
if (this.parent.isEmbedded)
170+
if (this.parent.isEmbedded && this.parent.actor.inCollection) // prevent error during chargen
171171
{
172172
let actor = this.parent.actor;
173173

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

176176
if (existing)
177177
{
178-
existing.update({"system.advances.value" : existing.advances.value + this.advances.value});
178+
existing.update({"system.advances.value" : existing.advances.value + this.advances.value}, options);
179179
}
180180
}
181181
}

scripts/R32U01LBjBrK1pns.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const templateMap = {
22
'P2e7Yx98bK3u110a' : "",
3-
'iuMp3KLaMT2WCmie' : "Xp4r2KUhqfjak8zq",
4-
'RBuYcT5tppwcmnC5' : "wYN19h3WVF1yOVq2",
5-
'vcGpNwNbhvfzVveQ' : "ac5ClOuaYtzOYyWp",
6-
'jmhKZy0w9TzkEK9c' : "IS3LTdTuay6uRHUq",
7-
'9Byj6k7SmdTYis2V' : "LjMlx99gBGeRJUQu",
8-
'laJwc2l9tzJPgaaJ' : "x5wpMprsObuqMCYg",
3+
'iuMp3KLaMT2WCmie' : "4s01nHFKVKTEZd3B",
4+
'RBuYcT5tppwcmnC5' : "h3yuJDWnixliXeBG",
5+
'vcGpNwNbhvfzVveQ' : "7QrsbofccMOE1YsF",
6+
'jmhKZy0w9TzkEK9c' : "scVTPVyDDbli4WZL",
7+
'9Byj6k7SmdTYis2V' : "4Cd7Dknee2WjReOo",
8+
'laJwc2l9tzJPgaaJ' : "2hJ2a5YjbwZWWYrd",
99
}
1010
let template = (await game.wfrp4e.tables.rollTable("hireling-templates", {hideDSN: true})).object;
1111
let physicalQuirk = (await game.wfrp4e.tables.rollTable("physical-quirks", {hideDSN: true})).text;

system.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "wfrp4e",
33
"title": "Warhammer Fantasy Roleplay 4th Edition",
44
"description": "A comprehensive system for running grim and perilous games of Warhammer Fantasy Roleplay in the Foundry VTT environment.",
5-
"version": "8.4.0",
5+
"version": "8.4.1",
66
"authors" : [
77
{
88
"name": "Moo Man",
@@ -72,6 +72,6 @@
7272
},
7373
"socket": true,
7474
"manifest" : "https://github.com/moo-man/WFRP4e-FoundryVTT/releases/latest/download/system.json",
75-
"download" : "https://github.com/moo-man/WFRP4e-FoundryVTT/releases/download/8.4.0/wfrp4e.zip",
75+
"download" : "https://github.com/moo-man/WFRP4e-FoundryVTT/releases/download/8.4.1/wfrp4e.zip",
7676
"url" : "https://github.com/moo-man/WFRP4e-FoundryVTT"
7777
}

0 commit comments

Comments
 (0)