Closed jdavasligil closed 2 years ago
What an embarrassing oversight. Thanks for the very detailed report, I'll change it in the next release.
What an embarrassing oversight. Thanks for the very detailed report, I'll change it in the next release.
No worries, it happens to the best of us! Logic errors are sneaky like that. Loving the macros, thanks for the hard work!
Fixed in the v10 branch. Thanks for the report. =)
Describe the bug The setting "ignoreShapeChangeSizeRule" is ineffective and does not work for players.
To Reproduce Steps to reproduce the behavior:
Expected behavior The large creature should be in the shape changer list.
Desktop (please complete the following information):
Potential Error Source SWADE-Immersive-Macros/swim/scripts/swim_modules/shape_changer.js Possible logic error on lines 55-71 function main():
if (actor.data.data.advances?.value < 4) { maxSize = -1 } else if (actor.data.data.advances?.value < 8) { maxSize = 0 } <-- LOGIC BLOCK EXITED BEFORE SETTING EXECUTION else if (actor.data.data.advances?.value < 12) { maxSize = 2 } else if (actor.data.data.advances?.value < 16) { maxSize = 4 } else if (actor.data.data.advances?.value >= 16) { maxSize = 10 } else if (game.settings.get("swim", "ignoreShapeChangeSizeRule") === true) { maxSize = 999 } <-- NEVER REACHED
Potential Solution Change line 66 to: if (game.settings.get("swim", "ignoreShapeChangeSizeRule") === true) { maxSize = 999 }