Lavaeolous / PF1-StatBlock-Converter-Module

FoundryVTT Module to convert PF1 Statblocks into Foundry Actors (PC or NPC).
MIT License
14 stars 12 forks source link

Missing armor leads to unnecessary adjustment of ACP affected skills #601

Closed mkahvi closed 1 year ago

mkahvi commented 1 year ago

For example, Hobgoblin: https://www.aonprd.com/MonsterDisplay.aspx?ItemName=Hobgoblin

Studded leather is not added to the sheet, but if it was, it would give 1 ACP that would together with the Dex lead to the correct final modifier, needing no adjustment in the corrective buff.

The above assumes #600 is also fixed.

Lavaeolous commented 1 year ago

This seems to be an issue specific for the Hobgoblin, as thats using

Treasure NPC Gear (studded leather armor, light steel shield, longsword, longbow with 20 arrows, other treasure)

There's issues with that:

In that case, from a technical standpoint of the statblock, the Hobgoblin is not wearing the armor, but just carrying it around as treasure 🗡️ :)

I do not think i have an easy solution for that.

mkahvi commented 1 year ago

Could add special case for "Gear"/"NPC Gear" appearing there if it's not too hard, since that seems to be the intent of it there, even if it's abnormal notation.

Otherwise could add detection for it and warn users of the problems it causes and do nothing else.

Lavaeolous commented 1 year ago

There's no easy fix, sorry. Ecology parsing happens after everything with values was parsed, so i'd need to pull it in front to be parsed after statistics but before defense and offense.

I'll add a info into the error section for users, so they can copy the data to the correct section themselves.

Lavaeolous commented 1 year ago

I've added a (quite hacky) workaround for this to v4.0.2

https://user-images.githubusercontent.com/14833806/198870127-c9e4f95b-aa97-4f50-bbb4-4f192ffde03c.mp4