-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Items not displaying properly on PDF #35
Comments
I have experienced this bug a lot and it has caused some issues on my end. Anything you could do to fix that would be most appreciated. |
I have had the same issue. Although for me it is every time I try to create this particular magic item. I posted a bug ticket on larrychristensens issue list here: larrychristensen#143 The original text of my bug post was as follows: Under the "attacks & spellcasting" section of the printed character sheet I get the following issue. I created the item in the item builder as follows: To me this should show up as "Lightbringer +7 1D6+5 bludgeoning" Also, it would be nifty if the item and description showed up somewhere. |
I'm experiencing this also. I've created a custom weapon, and it shows up in the PDF simply as ".+3, d+3" as noted in #559 |
As far as i can tell the problem with the custom weapons not displaying correctly is caused by the fact that the weapon map used to parse the character weapons only contains the weapon info that is hard coded into the site and not the homebrew info. Ill post the code locations and references later tonight when im sitting infront of my pc and not on my cell. |
In pdf_spec.cljc line 433 sets all-weapons (the map used to populate the weapon field in the pdf), this uses mi5e/equipped-item-details which is defined in magic_items.cljc line 3137 to take a map of weapons from the players inventory and a map of all available weapons then pull from all available weapons those found the the players inventory and merge in some stats from the char inv map. However if you trace the code back through the generation of the map of all weapons. (mi5e/all-weapons-map defined in magic_items.cljc line 3089) it never takes into account the homebrew items and only pulls data from the hard coded information in magic_items.cljc and weapons.cljc. (non of the component definitions do either). Because the homebrew weapon is not contained in the map that generates the stats for the character sheet they cannot be extracted by the equipped-item-details function thus only contain the info that comes from the character data(modifier+prof to hit and modifer+prof for dammage) without the name because that too is pulled from the all-weapons-map and not the character data. obvious solution would be to add the homebrew data to the all-weapons-map |
I'm not sure how this flew so far under the radar, but thank you for the suggestion. I'll be looking into it soon! |
So. to finally put the nail in this annoying bug:
all we needed to do was change This took years for all of us non-clojurians to stab at and not crack until now. |
When creating custom items, normally weapons, often times the name and sometimes the damage dice do not display in the PDF export.
This bug can even occasionally crop up in the browser view too, iirc.
The text was updated successfully, but these errors were encountered: