moo-man / WFRP4e-FoundryVTT

The premiere system for running grim and perilous games of Warhammer Fantasy Role-play in the Foundry VTT environment.
Apache License 2.0
87 stars 52 forks source link

[WFRP4e Core] NPC/Creature sheet error with blackpowder weapons from compendium #234

Closed moo-man closed 3 years ago

moo-man commented 3 years ago

When a blackpowder weapon (blunderbuss, pistol) from wfrp4e-core compendium to npc or creature the trapping does not get added to the trappings list, and the npc cannot be opened once it is closed - all that can be done is deleting it. The following error occurs when dropping the trapping, and on trying to open the npc/creature :

foundry.js:4481 TypeError: An error occurred while rendering ActorSheetWfrp4eNPC 83: Cannot set property 'repeater' of undefined at ActorWfrp4e.prepareWeaponCombat (actor-wfrp4e.js:2558) at ActorWfrp4e.prepareItems (actor-wfrp4e.js:2192) at ActorWfrp4e.prepare (actor-wfrp4e.js:1735) at ActorSheetWfrp4eNPC.getData (actor-sheet.js:107) at ActorSheetWfrp4eNPC._render (foundry.js:4509) at ActorSheetWfrp4eNPC._render (foundry.js:5163) at ActorSheetWfrp4eNPC._render (foundry.js:16728) at ActorSheetWfrp4eNPC._render (actor-sheet.js:51) at ActorSheetWfrp4eNPC.render (foundry.js:4479) at ActorSheetWfrp4eNPC.render (foundry.js:5629)

All versions are up to date - foundry 0.7.7 wfrp 3.2.0 wfrp-core 1.11
From: Firtun#8250
wfrp4e: 3.2.0
wfrp4e-core: 1.11

Firtun commented 3 years ago

Apologies missed a bit in the first line - it should read -- (blunderbus, pistol) is dragged from wfrp4e-compendium