MonsterBlocks icon indicating copy to clipboard operation
MonsterBlocks copied to clipboard

Support Thrown Weapons

Open jeremyregnerus opened this issue 4 years ago • 5 comments

I've been trying to think of a way to support thrown weapons. Some of the things they would need to support and challenges

  • Listing the attack as Melee or Ranged Weapon Attack
  • Listing a Melee Reach and a Thrown Range (looking at possible fields that are never used in a ranged attack, width for line attacks seems possibly viable)
  • Can't just use 5ft. reach for all creatures as some large and larger creatures have 10 ft. reach
  • Unsure about the interaction with MQOL and it's range automation

jeremyregnerus avatar Mar 07 '21 14:03 jeremyregnerus

Looking at doing this this way. If you see any glaring issues with this method, give me a heads up. in en.json "MOBLOKS5E.ThrownRange": "reach {melee} {units} or range {range}{sep}{max} {units}", in monsterblock.js

range: atkd?.properties?.thr ? game.i18n.format("MOBLOKS5E.ThrownRange", {
melee: atkd.target?.width ? atkd.target?.width : 0,
units: atkd.range?.units,
range: atkd.range?.value ? atkd.range.value : 0,
sep: atkd.range?.long ? "/" : "",
max: atkd.range?.long ? atkd.range.long : ""
}) : game.i18n.format("MOBLOKS5E.AttackRange", {
reachRange: game.i18n.localize(this.isRangedAttack(attack) ? "MOBLOKS5E.range" : "MOBLOKS5E.reach"),
range: atkd.range?.value ? atkd.range.value : 0,
sep: atkd.range?.long ? "/" : "",
max: atkd.range?.long ? atkd.range.long : "",
units: atkd.range?.units
}),

jeremyregnerus avatar Mar 07 '21 19:03 jeremyregnerus

Do you have an example monster with a melee/thrown weapon?

zeel01 avatar Mar 07 '21 19:03 zeel01

Orc Warchief is a good example as it shows both the thrown property interaction, as well as a versatile weapon combined with a Spear. image

jeremyregnerus avatar Mar 11 '21 15:03 jeremyregnerus

Just a heads up, this Merge Request has been submitted to help facilitate this - https://gitlab.com/foundrynet/dnd5e/-/merge_requests/487#note_847132488

jeremyregnerus avatar Feb 17 '22 23:02 jeremyregnerus

Per https://github.com/foundryvtt/dnd5e/issues/1037 a Reach value will be available in an upcoming system release. If I'm remembering correctly, that should allow this issue to be resolved finally.

zeel01 avatar Aug 20 '24 20:08 zeel01