Skip to content

Commit 34c5c22

Browse files
committed
Fix various deprecation warnings
1 parent fda492b commit 34c5c22

30 files changed

+100
-881
lines changed

scripts/7F6aGxZJjwxm5e5P.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
if (args.test.result.castOutcome == "failure")
22
{
33
ValueDialog.create({text : "Enter Wounds Lost to gain SL", title : this.effect.name}, "0").then(async value => {
4-
value = Math.clamped(value, 0, 3)
4+
value = Math.clamp(value, 0, 3)
55
if (value == 0)
66
{
77
return;

scripts/OgSI0Z6SHjYuqKIz.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let blows = this.item.getFlag("wfrp4e", "blows") || 0
22
let difficulties = Object.keys(game.wfrp4e.config.difficultyLabels)
33

4-
blows = Math.clamped(blows, 0, difficulties.length - 1)
4+
blows = Math.clamp(blows, 0, difficulties.length - 1)
55
if (this.item.system.protects[args.opposedTest.result.hitloc.value])
66
{
77
let difficulty = difficulties[blows];

scripts/Y7McxsHFeGhwQx0J.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
this.actor.createEmbeddedDocuments("Item", [expandObject({
1+
this.actor.createEmbeddedDocuments("Item", [foundry.utils.expandObject({
22
name : "Ghostly Flame",
33
type : "weapon",
44
img : this.effect.img,

scripts/o3JUBKLvE6bBxK2n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if (test.failed)
55
await this.actor.addCondition("prone")
66
let injury = await fromUuid("Compendium.wfrp4e-core.items.ZhMADOqoo0y8Q9bx");
77
injury = injury.toObject()
8-
let toes = Math.clamped(Math.abs(test.result.SL) + 1, 1, 5)
8+
let toes = Math.clamp(Math.abs(test.result.SL) + 1, 1, 5)
99
injury.system.location.key = this.item.system.location.key[0] + injury.system.location.value
1010
if (injury.system.location.key[0] == "r")
1111
{

0 commit comments

Comments
 (0)