-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add weapon features' toggles and integrate features with chat and combat actions #47
Add weapon features' toggles and integrate features with chat and combat actions #47
Conversation
Change the weapon features from a single string to an object containing all features available in the core rules. * melee weapon features: edged, pointed, blunt, parrying and hook * ranged weapon feature: slow reload A free-form list is left to allow custom features to be added to weapons. The weapon sheet was modified to let users select the weapon features via toggles. Available toggles depend on the current weapon's category (melee or ranged). There are also some changes in the way weapons are posted to the chat, mostly to allow the localization of stock weapon features.
As stated by combat rules: "If you PARRY with a weapon that lacks the PARRYING feature, you get a -2 penalty." The parry action link in the combat tab will display the penalty if a melee weapon lacks the appropriate feature.
Weapon features are now objects instead of a string. The migration was kept simple: the previous value is moved over to the "others" field (which as free-form string).
Great! I'm looking forward to checking it out:) Will hopefully get to it tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great QoL change to the system here! ⭐🌟
Have left some thoughts on certain implementations. But overall happy with how it looks 😀
Will come back with suggestion for visual layout/styling.
- The migration changes are compatible with the official content and likely other English worlds. - WorldSchema is now an integer and failsafes are built in for schemaVersions larger than system version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have taken care of the changes I requested, and have reviewed the changes using the official modules, as well as I can. Will go ahead and merge and close this one.
Great addition to the system! Thanks @giant-teapot ⭐
Ah, I finally got a moment to myself and as I was about to work on those final touches and I just saw you already took care of it! |
Fixes a small UI bug introduced with fvtt-fria-ligan#47: only weapon's additional ("others") features would appear in the character sheet's combat tab. This fix reverts back to the old behaviour as all weapon features should appear for each eligible items.
Fixes a small UI bug introduced with fvtt-fria-ligan#47: only weapon's additional ("others") features would appear in the character sheet's combat tab. This fix reverts back to the old behaviour as all weapon features should appear for each eligible items.
I didn't get as much time as I wanted to work on this, but finally: here it is. You can now specify weapon features in a way that is easier for the system to understand.
The bulk of the change can be summarized by the datamodel change:
The rest is just making it visible and having a few quality of life improvements. So what do we have in stock?
features
->features.others
.And that's about it. Tell me what you think about this! :)
Addresses #19