Skip to content
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

Giffyglyph's Foundry Monster Maker Continued - GMMv3 / D&D2.1.x+ / Foundry v10 #74

Open
wants to merge 304 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
304 commits
Select commit Hold shift + click to select a range
7a8f13e
Logic for max TST
Skyl3lazer Jun 10, 2023
9fe3d1d
Merge branch 'dev' of https://github.com/Skyl3lazer/giffyglyph-monste…
Skyl3lazer Jun 10, 2023
ed75dbf
UI for choosing a relevant stat on abilities
Skyl3lazer Jun 10, 2023
28e763c
Fixing attack labels and implementing stat
Skyl3lazer Jun 10, 2023
0e638b2
Updating language to match v3
Skyl3lazer Jun 10, 2023
c15d5be
Paragon Defenses
Skyl3lazer Jun 10, 2023
1a34087
Testing new rolls
Skyl3lazer Jun 10, 2023
758d226
Working labels and rolls for attacks
Skyl3lazer Jun 10, 2023
9056155
Updating styles for prof/attack dc space on the sheet artifact. Also …
Skyl3lazer Jun 10, 2023
7484fc8
Fixed rolling HP
Skyl3lazer Jun 10, 2023
442df5e
Fixes to let compendium items open
Skyl3lazer Jun 10, 2023
bf8d5c3
Updated Powers compendiums to reference Skirmishers instead of Scouts…
Skyl3lazer Jun 10, 2023
616e481
Merge pull request #1 from Skyl3lazer/dev
Skyl3lazer Jun 10, 2023
99c7118
Readme update
Skyl3lazer Jun 10, 2023
bc37d9e
Merge pull request #2 from Skyl3lazer/dev
Skyl3lazer Jun 10, 2023
3c41ef4
Readme update, CSS cleanup
Skyl3lazer Jun 10, 2023
d255c82
Revert "Readme update, CSS cleanup"
Skyl3lazer Jun 10, 2023
74303f3
Merge branch 'master' of https://github.com/Skyl3lazer/giffyglyph-mon…
Skyl3lazer Jun 10, 2023
3bc1b42
Readme update
Skyl3lazer Jun 10, 2023
570c364
Readme link fixes
Skyl3lazer Jun 10, 2023
fba3bb9
Got my discord name B)
Skyl3lazer Jun 10, 2023
e4dbdef
Module readme and changelog update for dev
Skyl3lazer Jun 10, 2023
c775d04
Module readme and changelog update for dev
Skyl3lazer Jun 10, 2023
15cc8e8
Merged
Skyl3lazer Jun 10, 2023
a30b92d
Readme minor changes
Skyl3lazer Jun 10, 2023
b5470c2
Damage fixes for main, miss, and vers
Skyl3lazer Jun 11, 2023
eee127f
Docs updates
Skyl3lazer Jun 11, 2023
4f128c9
Merge pull request #3 from Skyl3lazer/dev
Skyl3lazer Jun 11, 2023
ef2a9ed
Doc bump
Skyl3lazer Jun 11, 2023
0e82d16
Damage type fixes
Skyl3lazer Jun 11, 2023
d237217
Merge pull request #4 from Skyl3lazer/dev
Skyl3lazer Jun 11, 2023
5ace57d
Documentation updates
Skyl3lazer Jun 11, 2023
b61350b
Doc pushes for dev
Skyl3lazer Jun 11, 2023
7fd90fc
Merge branch 'master' into dev
Skyl3lazer Jun 12, 2023
55632f7
Dev download ref
Skyl3lazer Jun 12, 2023
aeb6bf9
Updated comment for future use
Skyl3lazer Jun 12, 2023
136043d
Dev manifest update
Skyl3lazer Jun 12, 2023
e33e58c
Fix to saving throws not getting their DC correctly
Skyl3lazer Jun 12, 2023
804d0a6
Bumped dev version
Skyl3lazer Jun 12, 2023
dfd3449
Fixes to dev module, string durations, and deprecation errors
Skyl3lazer Jun 12, 2023
9a51541
Attempting to move us on to libwrapper for safety. Nothing explodes w…
Skyl3lazer Jun 12, 2023
a895cbd
Bump dev module
Skyl3lazer Jun 12, 2023
b557904
Doc updates
Skyl3lazer Jun 12, 2023
d12aaec
Apparently I was violating markdown best practices by not having a li…
Skyl3lazer Jun 12, 2023
f2c76eb
Updates to libwrapper binds
Skyl3lazer Jun 13, 2023
4c6116d
Fixes to armor class pre-processing and display for DAE compatability
Skyl3lazer Jun 13, 2023
c90d486
Updated processing for the following items to be affected by DAE and …
Skyl3lazer Jun 13, 2023
2a73770
Small fix for damage without a type
Skyl3lazer Jun 13, 2023
73274ae
I'm good at programming
Skyl3lazer Jun 13, 2023
b1cd920
Fixes for saves with DAE and midi
Skyl3lazer Jun 13, 2023
25d50a3
Handlebars Deprecation
Skyl3lazer Jun 13, 2023
fdb4a00
Initiative fixes for dae (partial)
Skyl3lazer Jun 13, 2023
bb48b88
Sync mode TST
Skyl3lazer Jun 13, 2023
e6ebe5b
Doc updates, branding updates
Skyl3lazer Jun 13, 2023
1fbb979
Branding updates, version bump for rc
Skyl3lazer Jun 13, 2023
626fe35
Readme proofreading
Skyl3lazer Jun 13, 2023
3e75eba
Readme links to webapp
Skyl3lazer Jun 13, 2023
ecae58e
Module target move for merge
Skyl3lazer Jun 13, 2023
cbbf9c4
Merge pull request #5 from Skyl3lazer/dev
Skyl3lazer Jun 13, 2023
28c5a3c
Dev module
Skyl3lazer Jun 13, 2023
cc1ddf9
Readme fix
Skyl3lazer Jun 13, 2023
c8cb0f7
Merge branch 'master' into dev
Skyl3lazer Jun 13, 2023
72aa88e
Minor typo fix we'll see it live one day lads
Skyl3lazer Jun 13, 2023
1a78027
Todo
Skyl3lazer Jun 14, 2023
a8210c6
Verified 2.2.1 Performance
Skyl3lazer Jun 14, 2023
086dec4
Added a shortcoder to CONFIG.Item.documentClass.prototype.use
Skyl3lazer Jun 15, 2023
b3b8f32
doc update
Skyl3lazer Jun 15, 2023
fd31edb
"Other" abilities still get save bonus
Skyl3lazer Jun 20, 2023
e5bb3a2
Added missing text string
Skyl3lazer Jun 20, 2023
cd29eaf
Catch shortcoder errors if we can't parse them - they could just be n…
Skyl3lazer Jun 20, 2023
3090451
Module update
Skyl3lazer Jun 20, 2023
eb1eb22
Changelog update
Skyl3lazer Jun 20, 2023
a68a1cb
Updated math library. Stopped reporting shortcode errors from non-GMM…
Skyl3lazer Jun 20, 2023
15e1edc
Update todo
Skyl3lazer Jun 20, 2023
5e623ee
Master branch push updates
Skyl3lazer Jun 21, 2023
a81a260
Merge pull request #7 from Skyl3lazer/dev
Skyl3lazer Jun 21, 2023
634974d
Dev version revert
Skyl3lazer Jun 21, 2023
8e6ef20
Readme update
Skyl3lazer Jun 21, 2023
f9929fe
Merge branch 'master' into dev
Skyl3lazer Jun 21, 2023
eee108e
Fixed ability_bonus on rank not affecting creatures
Skyl3lazer Jun 21, 2023
c85820d
Updates to libwrapper processing to fix bad args
Skyl3lazer Jun 23, 2023
1e5dcfe
changelog update
Skyl3lazer Jun 23, 2023
05ff60d
Updated pack definitions for deprecation
Skyl3lazer Jun 23, 2023
d701459
Version up
Skyl3lazer Jun 23, 2023
c5e1493
Added missing strings, fixed paragon defenses reporting as action amount
Skyl3lazer Jun 26, 2023
06fd409
Retrofit for earlier bug
Skyl3lazer Jun 26, 2023
31d6f4d
Module for merge
Skyl3lazer Jun 26, 2023
fe8a165
Merge pull request #9 from Skyl3lazer/dev
Skyl3lazer Jun 26, 2023
b21c58d
Dev update
Skyl3lazer Jun 26, 2023
39c341f
Fixing return with libwrapper breaking midi's automation for dots.
Skyl3lazer Jun 27, 2023
1e6dc08
Module bump
Skyl3lazer Jun 27, 2023
be1f054
Fixing return with libwrapper breaking midi's automation for dots.
Skyl3lazer Jun 27, 2023
863e8a7
Bringing .10 dev change to master for 0.9.3
Skyl3lazer Jun 27, 2023
4d52c2d
update from master
Skyl3lazer Jun 27, 2023
971accf
Docs updates
Skyl3lazer Jun 28, 2023
33dd27f
Fix to readme
Skyl3lazer Jun 28, 2023
a41f374
v11 compatable, from what I can tell. Testing continues.
Skyl3lazer Jul 2, 2023
ce958dc
Doc updates for v11
Skyl3lazer Jul 2, 2023
7b95b84
Removed an extra console log
Skyl3lazer Jul 3, 2023
87dfdab
Module update for merge
Skyl3lazer Jul 4, 2023
861a223
Doc updates for main branch
Skyl3lazer Jul 4, 2023
fee99bb
Merge pull request #11 from Skyl3lazer/dev
Skyl3lazer Jul 4, 2023
13266ea
Dev module/doc updates
Skyl3lazer Jul 4, 2023
74c5a7e
Fix for module not appearing with dnd5e update
Skyl3lazer Jul 5, 2023
73efa3c
Fix for dnd5e updates hiding module
Skyl3lazer Jul 5, 2023
f50964f
changelog
Skyl3lazer Jul 5, 2023
3cb0cd5
changelog
Skyl3lazer Jul 5, 2023
551aa41
Ability descriptions will use shortcodes in both the item description…
Skyl3lazer Aug 1, 2023
4746592
Changed the display button on monster actions to actually just displa…
Skyl3lazer Aug 1, 2023
3cd55ad
Changelog update
Skyl3lazer Aug 1, 2023
76d5cd9
Messy, but items created on the main actor sheets don't take properti…
Skyl3lazer Aug 2, 2023
7b99e5f
Doc updates for main branch merge
Skyl3lazer Aug 2, 2023
83b2f72
Merge branch 'master' into dev
Skyl3lazer Aug 2, 2023
bf8741c
Merge pull request #15 from Skyl3lazer/dev
Skyl3lazer Aug 2, 2023
96bcb9b
Update README.md
Skyl3lazer Aug 2, 2023
f43c919
Document updates for dev
Skyl3lazer Aug 2, 2023
d508661
#16 Fixed async loading to allow inline descriptions, foldouts, charg…
Skyl3lazer Aug 15, 2023
38f8490
Patch notes formatting
Skyl3lazer Aug 15, 2023
de582cd
#16 Fixed async loading to allow inline descriptions, foldouts, charg…
Skyl3lazer Aug 15, 2023
f5c19a0
Updates after 11.0.3 merge
Skyl3lazer Aug 18, 2023
4e33332
Changelog update
Skyl3lazer Aug 18, 2023
5569ee3
Merge branch 'master' into dev
Skyl3lazer Aug 18, 2023
a5dac76
Readme typo
Skyl3lazer Aug 18, 2023
06a9819
Added a small change to make roll text not break shortcoder
Skyl3lazer Sep 6, 2023
61d837c
Fixed bug when overriding paragon defenses
Skyl3lazer Dec 18, 2023
b7c4615
Cotinuing previous fix
Skyl3lazer Dec 18, 2023
be6dc95
Default paragon defenses logic
Skyl3lazer Dec 18, 2023
3403dd8
Updated module and patch notes
Skyl3lazer Dec 18, 2023
b807c4f
Merge from master
Skyl3lazer Dec 18, 2023
0c7c275
Module for push to master
Skyl3lazer Dec 18, 2023
e001e53
Merge pull request #17 from Skyl3lazer/dev
Skyl3lazer Dec 18, 2023
a6e9d0f
Changelog typo
Skyl3lazer Dec 18, 2023
e150e57
Module update back to dev
Skyl3lazer Dec 18, 2023
0eb73c8
V12 info
Skyl3lazer Dec 18, 2023
cd15de8
Fixed spell DC not taking proficiency into account. Fixed VSM labels …
Skyl3lazer Jan 8, 2024
b347a6c
Version bump
Skyl3lazer Jan 8, 2024
6faea5b
Updating links since I dont use twitter anymore
Skyl3lazer Jan 11, 2024
0968f6f
More changes for bluesky badge
Skyl3lazer Jan 11, 2024
85380fb
Missed one badge
Skyl3lazer Jan 11, 2024
263ab15
Updating links since I dont use twitter anymore
Skyl3lazer Jan 11, 2024
e073900
More changes for bluesky badge
Skyl3lazer Jan 11, 2024
fabdc0e
Missed one badge
Skyl3lazer Jan 11, 2024
02438eb
Merge branch 'master' of https://github.com/Skyl3lazer/giffyglyph-mon…
Skyl3lazer Jan 11, 2024
a9706a2
Fixes to swarm size
Skyl3lazer Feb 14, 2024
0cabeea
Fixed GMM-based clamp deprecations (backwards compatable with v10) an…
Skyl3lazer Feb 6, 2024
348bde9
#22 Added the [name] shortcode to allow customization in scaling abil…
Skyl3lazer Feb 23, 2024
bc413cd
#21 Bugfix for hp values in dnd5e 3.0. Moved the max hp set to prepar…
Skyl3lazer Feb 23, 2024
805c663
#23 Fix for formula HP not displaying
Skyl3lazer Feb 23, 2024
bb1c1c1
Changelog updates
Skyl3lazer Feb 23, 2024
c7ff158
Fix for #26
Skyl3lazer Mar 31, 2024
7b3430f
Some fixes to items in monster inventories
Skyl3lazer Mar 31, 2024
8fcb297
Fix for #24, plus updated changelog and todo
Skyl3lazer Mar 31, 2024
479aff3
#27 and #28 - Added maxMod support for scalar abilities and shortcodes
Skyl3lazer Apr 3, 2024
b21682e
Bumped version
Skyl3lazer Apr 3, 2024
c527d1b
Monster Trait Compendium first draft
Skyl3lazer Apr 3, 2024
af89df1
#32 Added range/target hinter to other type actions if they exist. Cl…
Skyl3lazer Apr 3, 2024
7d06238
#33 Added concentration support and UI
Skyl3lazer Apr 4, 2024
5f68f5f
Added pills to UI. Moved concentration to pills, added pills for dura…
Skyl3lazer Apr 4, 2024
6b1d343
Added pill for activation requirement
Skyl3lazer Apr 4, 2024
f526a50
First draft of v3 powers, moving attacks to new format, updates to tr…
Skyl3lazer Apr 4, 2024
6e4cfd2
Version bump, readme, and package switchover
Skyl3lazer Apr 4, 2024
21686e7
Packs corrected
Skyl3lazer Apr 4, 2024
1a93af0
Don't try to shortcode if we don't have a valid monster yet
Skyl3lazer Apr 4, 2024
9ed394f
Return and keep the desc
Skyl3lazer Apr 4, 2024
8f157c6
Traits updated with icons
Skyl3lazer Apr 4, 2024
4c8bf81
V10 compatibility work. Compendium folder names now set to match thei…
Skyl3lazer Apr 4, 2024
5778297
Added maxMod to tooltip
Skyl3lazer Apr 4, 2024
363290c
Type fix in tooltips and new example
Skyl3lazer Apr 4, 2024
d9dc30e
Moved example
Skyl3lazer Apr 4, 2024
1d62bcc
Added icons to all of the new powers. Update some changelog info. Upd…
Skyl3lazer Apr 4, 2024
e1a091b
Bumped build version since the major compendium changes are now inclu…
Skyl3lazer Apr 4, 2024
f321824
First pass at updating Attacks compendium
Skyl3lazer Apr 5, 2024
4ff92b6
Readme and version bump
Skyl3lazer Apr 5, 2024
6f2832a
Merge dev 1.0.x into master
Skyl3lazer Apr 10, 2024
f0d045e
Bumped version
Skyl3lazer Apr 10, 2024
fba32bf
Activation condition isn't always there.
Skyl3lazer Apr 11, 2024
a5271eb
Fixed powerful build not doing anything
Skyl3lazer Apr 11, 2024
1af0aa1
#36 Fixed interactions between actions and encumbrance variants
Skyl3lazer Apr 11, 2024
f44f1fd
#44 Fixed checking for the wrong version (foundry vs dnd5e) for a bac…
Skyl3lazer Apr 29, 2024
dd1707b
Version bump
Skyl3lazer Apr 29, 2024
527bc4b
Changelog update
Skyl3lazer May 1, 2024
1868f4d
Merge branch 'master' into dev
Skyl3lazer May 1, 2024
8feaae2
Merge pull request #46 from Skyl3lazer/dev
Skyl3lazer May 1, 2024
61bd870
Bumped versions
Skyl3lazer May 1, 2024
467080b
Fixed an issue with converting sheets with no monster type
Skyl3lazer May 3, 2024
8356455
#34 Added rarity support.
Skyl3lazer May 18, 2024
1334d6d
#47 Round 1 compendium fixes. Also added rarities to attacks and powers
Skyl3lazer May 18, 2024
5704fca
Changelog updates
Skyl3lazer May 18, 2024
c5ecb46
#43 Added conditions to a compendium, and created a dfred's importabl…
Skyl3lazer May 20, 2024
292ae11
#38 Reorganized the monster blueprint sidebar to improve logical orga…
Skyl3lazer May 20, 2024
df5dcc9
Readme update + version bump
Skyl3lazer May 20, 2024
3452f6d
Dev readme update
Skyl3lazer May 20, 2024
fd5b83f
Readme fixes
Skyl3lazer May 20, 2024
0d1e9ed
#42 Fixed "Add" button on inventory tab not working
Skyl3lazer May 20, 2024
108893c
#42 Made the inventory always show if the currency or emcumberance is…
Skyl3lazer May 20, 2024
892eccb
Changelog + version bump
Skyl3lazer May 20, 2024
f38b240
#48 Added delays and deferrals to actions, as well as displaying them…
Skyl3lazer May 20, 2024
f6dab7b
Updated 'timer' language for deferral. Updated changelog.
Skyl3lazer May 20, 2024
3ad1435
Fixed bug with displaying deferrals
Skyl3lazer May 20, 2024
0d78428
Updated verbiage to "GMM" (what giffyglyph used) instead of my incorr…
Skyl3lazer May 20, 2024
06a9904
Fixing an issue with passthrough for midiqol.
Skyl3lazer May 20, 2024
79f3286
#41 Added overkill attacks, and a mix of delayed/mixed effect attacks…
Skyl3lazer May 20, 2024
6da5ef6
Module bump and changelog
Skyl3lazer May 20, 2024
9f12ef4
#19 Fixes towards compatibility with v12.
Skyl3lazer May 20, 2024
8c5fb44
#19 v12 updates
Skyl3lazer May 20, 2024
79794f7
#19 Moved clamp logic to compatibilityhelpers
Skyl3lazer May 21, 2024
bf0f807
#19 Moved mergeObject to compatibilityhelpers
Skyl3lazer May 21, 2024
7b48a2b
#19 Fixed pre v12 issues
Skyl3lazer May 21, 2024
9854495
#19 More fixes
Skyl3lazer May 21, 2024
e4703e5
#19 more fixes
Skyl3lazer May 21, 2024
90ed100
#19 Fixes for new error checking in v12
Skyl3lazer May 21, 2024
f7dada3
Changelog and version bump
Skyl3lazer May 21, 2024
68dc741
First pass at monster flyout
Skyl3lazer May 21, 2024
31045ba
Hopes and prayers, this inheritence change breaks every css style cur…
Skyl3lazer May 21, 2024
a6552cc
Monster effects tab working!
Skyl3lazer May 21, 2024
f799495
Added effects tab to actions. No drag and drop yet.
Skyl3lazer May 21, 2024
e4c2167
Item drag and drop fixed, other bugfixes
Skyl3lazer May 21, 2024
95f78bd
Merge pull request #52 from Skyl3lazer/effects-tab
Skyl3lazer May 21, 2024
1f0d68b
#50 Added some "add" buttons on the monster so you can create effects…
Skyl3lazer May 21, 2024
ee9faad
#50 Added the create effect buttons to feature sidebar. Version bump.
Skyl3lazer May 21, 2024
d776582
Update dev version number
Skyl3lazer May 22, 2024
6ad143d
Merge pull request #53 from Skyl3lazer/dev
Skyl3lazer May 22, 2024
3e4da21
Master changelog/readme/module updates
Skyl3lazer May 22, 2024
403501c
Dev baseline for 1.1.1
Skyl3lazer May 22, 2024
f21b9f8
Old words in the changelog
Skyl3lazer May 22, 2024
6557cbc
Don't support dnd 3.2
Skyl3lazer May 22, 2024
e93acce
Don't support dnd5e 3.2
Skyl3lazer May 22, 2024
946555a
A fix to die rolling in 3.2, preliminary support for 3.2
Skyl3lazer May 22, 2024
5feb0b2
changelog
Skyl3lazer May 22, 2024
e49bf7c
Fixed the hilariously dumb breaking change in dnd5e 3.2 dealing with …
Skyl3lazer May 22, 2024
f518ce6
Module bump and changelog.
Skyl3lazer May 22, 2024
ad165ff
Weight and price alteration no longer supported from the monster shee…
Skyl3lazer May 22, 2024
c8d89af
Fixed data entry in inventory
Skyl3lazer May 22, 2024
61a02ed
Updated more editable fields
Skyl3lazer May 22, 2024
3f61318
Fixed a visual bug with displaying shortcodes in scalar damages
Skyl3lazer Jun 9, 2024
2cc30bd
Added better backwards compatibility to weight on monster sheet. Adde…
Skyl3lazer Jun 9, 2024
76cceaf
#56 Made maxDice actually work for shortcoded damage
Skyl3lazer Jun 17, 2024
4e18cdd
v1.1.1.2 merge
Skyl3lazer Jul 5, 2024
8fe9231
#57 Fix for enter adding effects to things
Skyl3lazer Jul 8, 2024
380d1c3
Changelog
Skyl3lazer Jul 8, 2024
aa02207
#57 Fix for enter adding effects to things
Skyl3lazer Jul 8, 2024
b3f4f79
Module update for main
Skyl3lazer Jul 8, 2024
c05786b
Minor updates to readmes and confirmed 3.3.x dnd
Skyl3lazer Jul 19, 2024
7195602
#59 Fixed descriptions on items to use the new editor and updated sav…
Skyl3lazer Jul 29, 2024
26cabbe
Fixed some bugs around damage rolling #62 by updating to the newer ro…
Skyl3lazer Aug 12, 2024
c98db86
#60 Fixed max breaking TST auto set
Skyl3lazer Aug 12, 2024
5a07064
Changelog for previous
Skyl3lazer Aug 12, 2024
70c7795
1.1.2.2 dev into master
Skyl3lazer Aug 12, 2024
c7009e0
#69 (nice) Fixed an issue preventing damage from being added/removed …
Skyl3lazer Sep 13, 2024
be3c51c
Updated readme
Skyl3lazer Sep 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed some bugs around damage rolling #62 by updating to the newer ro…
…llConfigs format

Fixed bug with shortcoders
  • Loading branch information
Skyl3lazer committed Aug 12, 2024
commit 26cabbebfd34bdcd78136f3f4028f53e16d43103
6 changes: 4 additions & 2 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
[![BlueSky](https://img.shields.io/badge/%40Skyl3lazer_on_BlueSky-grey?logo=bluesky&logoColor=%230285FF&labelColor=grey)](https://bsky.app/profile/skyl3lazer.bsky.social)
[![Discord](https://img.shields.io/badge/contact-me-blue?logo=discord&logoColor=white)](https://discord.com/channels/@skyl3lazer)

## v1.1.2.1 (dev)
## v1.1.2.2 (dev)

* Confirmed dnd5e 3.3.0 compatibility
* #59 Fixed descriptions on items to use the new editor and updated save/load code for same.
* #59 Fixed descriptions on items to use the new editor and updated save/load code for same
* #62 Fixed some bugs around damage rolling by updating to the newer rollConfigs format
* Fixed bug with shortcoders

## v1.1.1.3 (latest)

Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
}

],
"version": "1.1.2.1",
"manifestPlusVersion": "1.1.2.1",
"version": "1.1.2.2",
"manifestPlusVersion": "1.1.2.2",

"compatibility": {
"minimum": "10.291",
Expand Down
49 changes: 41 additions & 8 deletions scripts/classes/GmmItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ const GmmItem = (function () {
}, 'MIXED');
libWrapper.register('giffyglyph-monster-maker-continued', 'game.dnd5e.documents.Item5e.prototype.rollDamage', function (wrapped, ...args) {
if (this.getSheetId() == `${GMM_MODULE_TITLE}.ActionSheet` && this.isOwnedByGmmMonster()) {
return wrapped(_rollActionDamage({
return _rollActionDamage({
item: this,
critical: args[0]?.critical ?? false,
event: args[0]?.event ?? null,
spellLevel: args[0]?.spellLevel ?? null,
versatile: args[0]?.versatile ?? false,
options: args[0]?.options ?? {}
}));
});
} else {
return wrapped(...args);
}
}, 'WRAPPER');
}, 'MIXED');
libWrapper.register('giffyglyph-monster-maker-continued', 'CONFIG.Item.documentClass.prototype.use', function (wrapped, ...args) {
if (this.getSheetId() == `${GMM_MODULE_TITLE}.ActionSheet` && this.isOwnedByGmmMonster()) {
const gmmMonster = this.getOwningGmmMonster();
Expand Down Expand Up @@ -157,7 +157,7 @@ const GmmItem = (function () {

if (this.hasDamage) {
const damages = this.system.damage.parts.map((x) => {
let damage = (rollData && gmmMonster) ? simplifyRollFormula( Shortcoder.replaceShortcodes(x[0], gmmMonster), rollData).trim() : x[0];
let damage = (rollData && gmmMonster) ? simplifyRollFormula(Shortcoder.replaceShortcodes(x[0], gmmMonster), rollData).trim() : x[0];
return `${damage}${x[1] ? ` ${game.i18n.format(`gmm.common.damage.${x[1]}`).toLowerCase()}` : ``} damage`;
});
if ((itemData.consume?.type === 'ammo') && !!this.actor?.items) {
Expand Down Expand Up @@ -496,7 +496,7 @@ const GmmItem = (function () {
return item.system.save ? item.system.save.dc : 0;
}

function _rollActionDamage({ item = null, critical = false, event = null, options = {} } = {}) {
async function _rollActionDamage({ item = null, critical = false, event = null, spellLevel = null, versatile = false, options = {} } = {}) {
if (!item.hasDamage) {
throw new Error("You may not make a Damage Roll with this Item.");
}
Expand All @@ -509,6 +509,8 @@ const GmmItem = (function () {
const parts = itemData.damage.parts.map((x) =>
(gmmMonster) ? Shortcoder.replaceShortcodesAndAddDamageType(x[0], gmmMonster, x[1]) : x[0]
);
const properties = itemData.properties ? Array.from(itemData.properties).filter(p => CONFIG.DND5E.itemProperties[p]?.isPhysical) : [];
const rollConfigs = itemData.damage.parts.map(([formula, type]) => ({ parts: [(gmmMonster) ? Shortcoder.replaceShortcodes(formula, gmmMonster) : formula], type, properties }));
const rollData = item.getRollData();

// Configure the damage roll
Expand All @@ -520,7 +522,8 @@ const GmmItem = (function () {
data: rollData,
event: event,
fastForward: event ? event.shiftKey || event.altKey || event.ctrlKey || event.metaKey : false,
parts: parts,
//parts: parts,
rollConfigs: rollConfigs,
title: title,
flavor: gmmActionBlueprint.attack.damage.type ? `${title} (${gmmActionBlueprint.attack.damage.type})` : title,
speaker: ChatMessage.getSpeaker({ actor: item.actor }),
Expand All @@ -531,21 +534,51 @@ const GmmItem = (function () {
},
messageData: messageData
};


// Handle ammunition damage
const ammoItem = item.actor.items.get(itemData.consume.target);
const ammoItemData = ammoItem?.system;
if (ammoItemData && (ammoItemData.type.value === "ammo")) {
rollData["ammo"] = ammoItemData.damage.parts.map(p => p[0]).join("+") + (ammoItemData.magicalBonus ? `+${ammoItemData.magicalBonus}` : "");
if (rollData["ammo"] != "") {
rollConfigs[0].parts.push("@ammo");
parts.push("@ammo");
rollConfig.flavor += ` [${ammoItem.name}]`;
}
}

//Pre dnd3.x versions use the 'parts' field still
if (dnd5e.version.localeCompare(3, undefined, { numeric: true, sensitivity: 'base' }) < 0) {
rollConfig.parts = parts;
}
// Call the roll helper utility
return CompatibilityHelpers.mergeObject(rollConfig, options);

CompatibilityHelpers.mergeObject(rollConfig, options)
rollConfig.rollConfigs = rollConfigs.concat(options.rollConfigs ?? []);
/**
* A hook event that fires before a damage is rolled for an Item.
* @function dnd5e.preRollDamage
* @memberof hookEvents
* @param {Item5e} item Item for which the roll is being performed.
* @param {DamageRollConfiguration} config Configuration data for the pending roll.
* @returns {boolean} Explicitly return false to prevent the roll from being performed.

if (Hooks.call("dnd5e.preRollDamage", this, rollConfig) === false) return;
*/
const rolls = await game.system.dice.damageRoll(rollConfig);

/**
* A hook event that fires after a damage has been rolled for an Item.
* @function dnd5e.rollDamage
* @memberof hookEvents
* @param {Item5e} item Item for which the roll was performed.
* @param {DamageRoll|DamageRoll[]} rolls The resulting rolls (or single roll if `returnMultiple` is `false`).

*/
if (rolls || (rollConfig.returnMultiple && rolls?.length)) Hooks.callAll("dnd5e.rollDamage", this, rolls);


return rolls;
}
function _getSortingCategory() {
if (this.getSheetId() == `${GMM_MODULE_TITLE}.ActionSheet`) {
Expand Down
1 change: 1 addition & 0 deletions scripts/classes/Shortcoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const Shortcoder = (function () {
];

function replaceShortcodes(text, monsterData) {
if (!text) return "";
if (!monsterData)
return text;
return text.replace(/\[.*?\]/g, (token) => {
Expand Down