Roll20 / Roll20/roll20-api-scripts
Bugs with ammo tracking and weight
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 407
- Forks
- 602
- Avg merge
- 7d 55m
- Merged PRs (30d)
- 18
Description
If you adjust the amount of the linked ammo resource, it does not adjust the total weight for the character.
Also, if you set the weight of the ammo to something less than 1, like .5, weight calculations will fail after you adjust the amount of ammo. For example: create a set of 20 arrows and link them to a bow with a weight of .05 each (per PHB). Fire one arrow, and it correctly subtracts the weight. Now add the arrow back by changing the quantity from 19 to 20. Fire again, and it will subtract the ammo but not the total weight for the character.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name a file, test, or entry point. Start by reproducing the linked-ammo weight behavior with fractional ammo weights and quantity changes, then locate the script that updates character weight and add coverage for firing and restoring one arrow. Done means both quantity adjustments and subsequent firing keep the character's total weight correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100