Equipment size not changing for small characters

Description

When creating a small sized character (halfing, gnome, svirfneblin tested), selected equipment is not being resized to small, even though the auto-resize box is checked. Thanks!

Environment

Windows and Linux

Activity

Show:
Stefan Radermacher
February 20, 2017, 9:17 AM

That sounds great! We can always use new members!

Ken Weise
February 20, 2017, 10:46 PM
Edited

Thanks for checking into this! It makes the current PCGen unusable for small or large characters. Please note that I also reported related item CODE-3135. If the auto-resize can't be fixed, can the item size drop-down be added back?

Vv King
February 21, 2017, 5:04 PM

Hi, I wanted to add that the problem is not limited to Small characters, but any non medium-sized character. When you create a Large sized character, equipment is still medium sized and does not resize.

Keith Heinzelmann
May 19, 2017, 8:22 PM

I managed to track this down in Globals.java the canResizeHaveEffect method is checking that the item contains a property listed in resizeTypeList. The problem is resizeTypeList returns a list with mixed case letters and the check wants all uppercase letters.

Converting the resizeTypeList to uppercase fixes it for armor and shields. With the fix I can also add a non-medium weapon by adding the sprop RESIZEABLE to a custom weapon.

Gordon McLeod
May 20, 2017, 9:01 PM

Keith, many thanks for tracking down the cause of this bug, sounds like a tough one to catch. Are you able to submit a codefix to github? Presumably a bit more needs to be done to fix weapons but at least you have a workaround.
Thanks, Gordon.

Fixed

Assignee

Andrew Maitland

Reporter

Ken Weise

Labels

None

Theme

None

Epic/Theme

None

Pending User Input

No

Fix versions

Affects versions

Priority

Minor
Configure