forked from public/foundryvtt-wh4-lang-fr-fr
Fix v10 datapath and functions
This commit is contained in:
@ -726,9 +726,9 @@ export class WH4FRPatchConfig {
|
||||
if (weaponLength > 3)
|
||||
{
|
||||
let improv = duplicate(game.wfrp4e.config.systemItems.improv)
|
||||
improv.data.twohanded.value = args.item.twohanded.value
|
||||
improv.data.offhand.value = args.item.offhand.value
|
||||
args.item.data.update({"data" : improv.data, name : args.item.name + " (Combat au Contact")})
|
||||
improv.system.twohanded.value = args.item.twohanded.value
|
||||
improv.system.offhand.value = args.item.offhand.value
|
||||
args.item.update({"system" : improv.system, name : args.item.name + " (Combat au Contact")})
|
||||
}
|
||||
}
|
||||
`
|
||||
@ -1161,7 +1161,7 @@ export class WH4FRPatchConfig {
|
||||
let applicableCharacteristics = ["ws", "bs", "s", "fel", "ag", "t", "dex"]
|
||||
if (applicableCharacteristics.includes(args.test.result.characteristic))
|
||||
this.actor.addCondition("stunned")
|
||||
else if (args.test.result.skill && applicableCharacteristics.includes(args.test.result.skill.data.characteristic.value))
|
||||
else if (args.test.result.skill && applicableCharacteristics.includes(args.test.result.skill.system.characteristic.value))
|
||||
this.actor.addCondition("stunned")
|
||||
else if (args.test.result.weapon)
|
||||
this.actor.addCondition("stunned")
|
||||
@ -1210,7 +1210,7 @@ export class WH4FRPatchConfig {
|
||||
{
|
||||
if (test.result.outcome == "failure")
|
||||
fromUuid("Compendium.wfrp4e-core.diseases.kKccDTGzWzSXCBOb").then(disease => {
|
||||
args.actor.createEmbeddedEntity("OwnedItem", disease.data)
|
||||
args.actor.createEmbeddedDocuments("Item", [disease.toObject()])
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user