-
Notifications
You must be signed in to change notification settings - Fork 4
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
Actor items not draggable or allowed to be "stashed" #126
Comments
Looking at the json for weapons, equipment and skill kits, there is a |
I have worked out some solutions to activating the "stashed" option on the actor sheet on my local install of the system, but am not sure of the best way to hand that over to you. Let me know how you would like my suggestions. Thanks! |
I have done some fiddling around on my local install and this seems to work (at least for me), although you would have to test rigorously as I am not a professional developer (at least not any more) ... I have hooked on to the existing code for stashed items rather than try to introduce anything new in the process. templates/actor/parts/actor-skillkit.hbs insert at line 24 (after
templates/actor/parts/actor-weapons.hbs insert at line 55 (after
templates/actor/parts/actor-equipment.hbs insert at line 15:
i18n/en.json (you will have to include localised variants) insert at line 278:
src/sheets/ACActorSheet.mjs (I also changed this on ac2d20-compiled.mjs at line 1189, although this is probably done as part of the packaging process?) replace encumberingItems formula found at line 138 with:
src/sheets/ACActorSheet.mjs (I also changed this on ac2d20-compiled.mjs at line 1595, but I guess that's normally just part of the package process?) change line 542 to:
css/ac2d20.css at line 1409, remove space between .item-control and .item-unstashed
As I said, this seems to work fine for me, adjusting the encumbrance depending on whether or not a weapon, skillkit or piece of equipment is stashed or not. Please do test thoroughly though as I tend to use a lot of gaffer tape, glue and sawdust ... :) |
Once items (gear, weapons, etc) are placed on the Actor sheet, they cannot be dragged off. This prevents the use of a module such as Item Piles where PCs can store items they are not carrying in a vault or container.
If it is too system breaking to enable this function, a simpler solution could be to use a similar function that the armour items have, where there is an icon to click that shows the item is in storage and does not affect encumbrance (like the "stashed" icon on the Fallout 2d20 actor sheet).
The text was updated successfully, but these errors were encountered: