Commit Graph
72069 Commits
Author SHA1 Message Date
BeautiDemise b6af4e7b46 Bugfix: FlatDamage AutoEffect not working properly for attacks 2024-09-26 20:34:44 +02:00
BeautiDemise 50b3e82311 Bugfix: Action buttons now work correctly when using generic token mode and targeting simultaneously
- Also changes name of getTokenId function to getTokenAttrs to better reflect its functionality
2024-09-26 20:09:33 +02:00
BeautiDemise fe0d18e041 Feature: Changed default name of Auto Update initiative item from "New round" to "Round end"
- This has been done to match the language used for similar features (Round end ailments for example)
2024-09-26 18:29:57 +02:00
BeautiDemise 454ca0347d Bugfix: Token instances were not initializing with the correct max bar values
- This appears to have been a bug with Roll20's macro functionality and not the sheet. target|HP_max consistently returns 30 (the default value) and not the calculated value
2024-09-25 14:21:36 +02:00
BeautiDemise afd52db858 Bugfix: Token instance bars were not initialized correctly when "None" was specified for the bar setting 2024-09-25 09:48:54 +02:00
BeautiDemise 0a53add41d Hotfix: Changing token instances no longer changes the max value of bars 2024-09-13 01:33:35 +02:00
BeautiDemise 974cf09731 Hotfix: Changed default token bars to match WM rules 2024-09-12 22:59:09 +02:00
BeautiDemise 2f5cc9f5a4 Hotfixes:
- Some errors when using targeting in unexpected ways
- Token bars initializing with the wrong defaults (all StagRes)
2024-09-12 20:51:49 +02:00
BeautiDemise 4bafbfd8f4 Bugfix: Consume with Target option now apply correctly to the target when ailment was reduced during the action (ex. Bleed)
- Also added Reset after Consume on Target to ensure it doesn't affect any other AutoEffects on the target
2024-09-11 04:24:59 +02:00
BeautiDemise 1535eb0a3d Feature: Checks using the Target option no longer throw an error and instead return a failed check and an alert they have no target 2024-09-11 03:30:36 +02:00
BeautiDemise 21c57329d8 Bugfix: Disabling the Combat Options UI now also clears your targeting 2024-09-11 02:46:08 +02:00
BeautiDemise cce7fe2f90 Feature/Bugfix: action buttons now change to the selected token before applying its effects when targeting is not used but generic token mode is enabled 2024-09-11 01:20:47 +02:00
BeautiDemise 880a5f51f9 Bugfix: targetSettings was being reset to an illegal value, causing errors 2024-09-11 00:51:39 +02:00
BeautiDemise c6b3f09d7e Cleanup: Removed a remaining console.log() 2024-09-10 20:28:55 +02:00
BeautiDemise 8b103c0917 Bugfix: Was changing repeating id and not immutable count 2024-09-10 20:25:25 +02:00
BeautiDemise 932e37d02b Bugfix: Targeted damage AutoEffects were not working with attacks
- Doesn't currently do anything being that Consume using the target option is now added to "Apply ailments", but it will help with future AutoEffects
2024-09-10 20:08:20 +02:00
BeautiDemise 65268667f5 Feature: Checks using the Target option now show they're affecting the target for their messages 2024-09-10 19:53:33 +02:00
BeautiDemise 830bbc42fb Bugfix: Consume using the Target option was consuming ailment/bar value on both the user and target 2024-09-10 19:52:44 +02:00
BeautiDemise d3cf7b7701 Bugfix: Consumed ailments on target did not handle scaling correctly 2024-09-10 19:37:21 +02:00
BeautiDemise 68fd03638e Bugfix: Ailments set through the token bar were not updating the immutable ailment count 2024-09-10 19:29:00 +02:00
BeautiDemise 591afd21d2 Feature: Generic Tokens, part 11
- The target option for Require and Comsume now use the ailmentList and barLists of the target, allowing them to be used with AutoEffects that apply to the user
- Currently there's a small known issue where ailments set through the token bar is not available to AutoEffects until the token is selected
2024-09-10 19:23:36 +02:00
BeautiDemise 818beb09e0 Bugfix: Targeting was not collecting ailment/bar lists correctly when using the hide detail setting (the lists are available for AutoEffects, but aren't revealed to the user) 2024-09-10 07:21:40 +02:00
BeautiDemise 38f34570d2 Feature: Generic Tokens, part 10
- Added the Combat Options UI, a new interface for assorted combat tools and aids
   - Planed for the future: Action and reaction tracking. More settings for configuring exactly which options one wants enabled
- Added a targeting button. A characeter can now target a creature to have all action buttons apply to that target automatically. Also gives updated readouts of the creature's status bars and ailments, and allows for using these values as part of AutoScripts (Still WIP)
- Added Auto Update functionality. Enabled by a setting, this setting allow for sheets to automatically update when encountering a "Round end" item in the initiative order with a decrementing value. Also allows for periodically updating the status bars/ailments of a target
   - Requires a bit of setup. If the initiative item cannot be found, initiative must be rerolled or the setting must be toggled on and off to retry the setup process
- Added two new settings: one to hide the combat options, and one to hide sheet details being visible to other who target the character
   - Hide: Bar updates now also hides your bar values from others targeting you, but does not hide your name or ailments
2024-09-10 07:11:18 +02:00
BeautiDemise d67e9184cb Feature: Generic Tokens, part 9
- All states, including the stagger duration, is now saved for each generic token
- Stagger for generic tokens is processed correctly when updating
2024-09-09 23:39:03 +02:00
BeautiDemise 5260d3b970 Feature: Generic Tokens, part 8
- Temp bar values are now stored seperately for each generic token
- Required some minor rewriting of the temp bar code. Value overrides are now stored for the each individual ailment instead of the entire sheet, letting multiple temp bar ailments  update simultanously without conflicts
2024-09-09 20:29:40 +02:00
BeautiDemise 90da97c2cd Bugfix: Temp Bar styling being used when possessing no Temp Bar value 2024-09-09 17:06:20 +02:00
BeautiDemise ce3139ebc5 Bugfix: Ailments were not applying correctly to tokens which had never been selected 2024-09-07 01:34:15 +02:00
BeautiDemise c14806f06c Bugfix: Setting translation had wrong name 2024-09-07 00:44:44 +02:00
BeautiDemise 9a17747d23 Feature: Auto Update
- A new setting "Auto: Update on New round" has been added. When enabled, all sheets automatically update when an item called "New round" in the initiative order decreases in initiative
   - Intended to be used with an item with -10 initiative that decays by -1
- The name of the initiative item and the frequence for which sheets check for updates can be configured using a new config setting
- Config settings do not appear in the sheet, and are strictly configured through imports/exports and default sheet settings
- The delay between generic token updates can now be configured with a new config setting
2024-09-07 00:44:05 +02:00
BeautiDemise 8c345321b4 Feature: Generic tokens, part 7
- Re-enabled the targetting system from the old 0.7 branch
- Changed Damage helper to now change to the targetted token before applying damage
- Changed action buttons to be whispered to the owner of the relevant token, unless no token is targetted in which case they are visible to everyone
- Changed Update to now update all tokens for a sheet with enabled generic tokens
   - Functions by cycling over all tokenIds with a delay of 1200ms between each token. Should look into a way to dynamically or manually set the delay in the future
2024-09-06 22:03:01 +02:00
BeautiDemise b99e595650 Bugfix: Generic token selection was not being cleared when disabling the setting 2024-09-06 17:35:23 +02:00
BeautiDemise a49e89f726 Bugfix: Generic tokens are now cleared when the generic token setting is disabled 2024-09-06 17:30:53 +02:00
BeautiDemise 1ec37b1ee6 Bugfix: Light was not syncing from sheet to selected token 2024-09-06 17:18:30 +02:00
BeautiDemise 65f240ad88 Bugfix: Tokens now initialize with the bar values of the token, not the sheet 2024-09-06 17:16:11 +02:00
BeautiDemise 8959db7bcc Bugfix: Custom ailments set through the generic token ailment display was not applying correctly 2024-09-06 17:08:25 +02:00
BeautiDemise cdfcb5d6d6 Bugfix: Damage helper dealing double damage 2024-09-06 16:53:06 +02:00
BeautiDemise d538d0380f Bugfixes:
- Custom ailments with no trigger were decaying on round end
- Proc AutoEffect was not triggering decay
2024-09-06 16:50:54 +02:00
BeautiDemise f4ff2e5d83 Bugfix: Stagger messages sometimes not printing correctly 2024-09-06 16:32:18 +02:00
BeautiDemise a329680a90 Experimental: Added ORCS Async. Will be used to add features later, but currenctly does nothing 2024-09-02 09:49:04 +02:00
BeautiDemise b9d4fa9664 Bugfix: deleteTokenMultiple was not deleting token bar values 2024-09-01 16:32:50 +02:00
BeautiDemise 34ba318051 Feature: Generic tokens, part 6
- Select now updates the token bars of a token instance, leading to decently more consistent updates
2024-09-01 16:20:10 +02:00
BeautiDemise 445f557243 Feature: Generic tokens, part 5
- The name of token instances can now be pressed to change the selected instance
- Bars are now saved for generic tokens. Bar values for the selected token instance is synced with the sheet
- Ailments are now saved for generic tokens. Ailments for the selected token instance as synced with the sheet
   - A display of the four ailments with the highest count is shown for each token instance. The ailments can be adjusted even while the token is not selected
- Added functionality to add or delete multiple tokens instances at the same time
- When selecting a token without a token instance, the user is now asked if they wish to add the token as a new instance
- A bunch of token fixes as well as some assorted general bugfixes
2024-09-01 14:35:34 +02:00
BeautiDemise 33a76ff235 Feature: Generic tokens, part 4
- Added functionality to add and delete a token instance from the generic token display
- Added new game setting to configure what the token bars are set to (default is bar 1: hp, bar2: stagres and bar 3: sp)
   - This is only for the token instance display. It does not change the actual token bars of the token
- Cleaned up some duplicate code from the v0.7 merge
2024-09-01 05:53:49 +02:00
BeautiDemise efed522628 Feature: Generic tokens, part 3
- Added function callable by macros "selectToken" which sets the selected generic token of the sheet to that of the selected token
- If generic mode is not enabled for the token's sheet, the user is asked if they want to enable the settings
- All subfunctions can be reused for other functionality
2024-08-31 11:22:00 +02:00
BeautiDemise c206e5c9ba Merge branch 'Release-v0.7-OLD' into Release-v0.7 2024-08-31 10:39:16 +02:00
BeautiDemise b106a2f275 Feature: Generic tokens, part 2
- Added setting to enable and disable the display
- Settings should also be used to disable all generic token features made in the future
2024-08-31 10:10:57 +02:00
BeautiDemise 1360c54740 Feature: Generic tokens, part 1
- Generic tokens is a new dispay for GMs for letting them track copies of the same character
- This adds a non-functional outline of the look of the display
2024-08-31 09:46:51 +02:00
BeautiDemise 26712cbc6d Bugfix: Smoke was displaying in damage calculations when dealing 0 damage 2024-08-31 05:36:42 +02:00
BeautiDemise f89e01357b Bugfix: Moved temp bar valie styling from using JQuery to the old method
- Classes set by JQuery are cleared on closing and opening the sheet, leading to a very inconsistent display style
2024-08-31 05:29:35 +02:00
BeautiDemise a9580aaecd Bugfix: Ailment temp bar updates now displaying correctly when dealing damage to multiple sources of temp bar val 2024-08-28 19:44:18 +02:00