Commit Graph
68 Commits
Author SHA1 Message Date
Ian Merryweather 4310415b68 feat: Adds level tracker to hybrid characters 2021-07-17 19:24:15 +01:00
Ian Merryweather ecc42d8513 fix: Ensured effectiveness row is hidden
- Added the effectiveness-roll parameter to the quick roll move template values
2021-07-01 14:42:08 +01:00
Ian Merryweather 319c37b44f chore: Updates config option descriptions
- Corrects the initiative tie breaker config description, as the attribute is now used by the sheet
- Provides cleaner wording, and an example, for the skill modifier selection
- Allows hiding the accuracy field when building a customised move roll template
2021-06-22 02:44:26 +01:00
Adam Talbot 4d9034b0df PTA3 - Allow using the word 'Special' in JSON import instead 2021-05-11 23:08:45 -04:00
Adam Talbot 5d537b6dbc Review: Null chaining 2021-04-16 21:21:53 -04:00
Adam Talbot 00c7f774c8 Review: Rename function and use const 2021-04-16 19:00:57 -04:00
Adam Talbotandcwstra eacfa458e8 Review: Tested and we do have _.pick
Co-authored-by: cwstra <cwstra@gmail.com>
2021-04-16 18:47:49 -04:00
Adam Talbotandcwstra c7c0b605f1 Review: Use Flatmap
Co-authored-by: cwstra <cwstra@gmail.com>
2021-04-16 18:45:30 -04:00
Adam Talbotandcwstra f448a1b29c Review: Less code for natures
Co-authored-by: cwstra <cwstra@gmail.com>
2021-04-16 18:43:04 -04:00
Adam Talbot aac9cd5239 PTA3 Import/Export Support 2021-04-11 17:48:21 -04:00
Adam Talbot 124dcaec21 PTA3 - Autoinitiative, status boxes, and more 2021-03-21 16:34:10 -04:00
Adam Talbot 32aafd1d2b PTA3 - Massive stat overhaul and auto-calc some more things 2021-03-07 22:12:09 -05:00
Ian Merryweather dcc681dedd chore: Adding more to-do entries
- Adds missing sheet-worker script for repeating features options flag management
2021-02-24 10:54:16 +00:00
Ian Merryweather f26ba7d841 feature: Makes class features collapsible
- Updates text area and number input backgrounds to use the type-variable text background colour
- Updates number inputs to use bold font weight for consistency across the character sheet
- Adds collapsing to class features
- Corrects the assignment of relative position for the origin feature div
2021-02-23 19:25:24 +00:00
Ian Merryweather b996696032 feature: Collapsing origin feature
- Added the capability to collapse the Origin Feature to save scroll time
- Added the capability to send the Origin Feature to the chat log in a neat and colour-coded format
2021-02-23 18:15:56 +00:00
Ian Merryweather ad623d6276 feature: Improved capture pokemon appearance
- removes the feature bonus configuration option as it was unnecessary and made the sheet worker bloated
- updated the styling of various capture pokemon skill sub-elements
- added more descriptive titles to the capture pokemon skill sub-elements
- updated the README
2021-02-18 13:06:11 +00:00
Ian Merryweather a83531d282 feature: Adds capture roll modifiers
- refactors the capture pokemon skill section to allow for more information and more extensive modifiers
- adds two new options to the configuration page to further modify the capture pokemon skill
2021-02-18 00:19:26 +00:00
Ian Merryweather 698063ee9d fix: Resolves minor display issue with open move fields
- Updates Changelog with previous addition
- Corrects the move field open/close button display value based on the field state
2021-02-11 18:05:49 +00:00
Ian Merryweather 11aa851f05 feature: Adds typeless as a type option
- Adds an option for type that is intended to represent the many type-less artefacts in-game
- Updates the default type selection for new characters to be typeless
2021-02-10 20:03:18 +00:00
Ian Merryweather c0df9b83fb chore: Prepends sheet to every class name
- Ensures that when the Roll20 changes to no longer do this go live, the CSS continues to style the sheet and rolltemplates properly
2021-02-06 19:25:13 +00:00
Ian Merryweather 9770ade24a feature: Adds support for triple hit scatter moves
- Adds Triple Hit to the scatter type options
- Adds a roll template for Triple Hit moves
- Adds CSS to the new roll template
2021-02-05 16:30:47 +00:00
Ian Merryweather 57ad24a3a3 fix: Resolves issues with hiding empty damage fields
- ensures single-hit roll template doesn't show the damage row when total damage is less than or equal to 0
- ensures dual- and multi-hit roll templates - used for scatter moves - always show damage to ensure the roll template table isn't left incomplete
- adds fix to readme, and corrects dates therein
2021-01-23 13:34:43 +00:00
Ian Merryweather 4b5ffb59ef feature: Adds the capability of changing which ability modifier is added to skill totals
- Adds a new option to the configuration page which allows swapping the associated ability for each skill - _and the capture pokémon meta-skill_
- Updates CSS to allow for attribute-based colouring of each skill field
- Updates sheet workers to allow for double-dipping into getting attributes, and slightly refactors them to be more generic! Woo!
2021-01-08 03:13:38 +00:00
Ian Merryweather adf6cc9e5f feature: Adds tooltip information to the inline roller buttons
- Updates README with relevant changes from this branch
2021-01-07 19:37:28 +00:00
Ian Merryweather fb15f6b9e6 feature: Added support for scatter-type moves
- Adds a move configuration option for Scatter typing
- Adds new roll templates that support the additional attacks that scatter moves come with
2021-01-07 18:31:25 +00:00
Ian Merryweather 8c9f88ad08 feature: Adds quick roll options to moves
- Adds an extra inline move roller to the top segment of both move display types to allow for quickly rolling a move without configuring it with effectiveness and temporary modifiers
2021-01-07 03:30:11 +00:00
Ian Merryweather 8eb34d130f feature: Streamlines combat moves
- Makes the pokemon-move repeating section fields collapsible to hide the clutter of the roll customisation options
  - Adds an inline roll command for the move to make using it easier
2021-01-07 00:59:13 +00:00
Ian Merryweather c52f0dc5be feature: Refactors migration code to make it more performant
- Consolidates all attribute changes into a single getAttrs and setAttrs pair
- Adds a new migration for the Character Type selection that was previously missed
2020-12-24 15:54:36 +00:00
Ian Merryweather c3fc6aab33 feature: Adds attribute-revealing titles to each relevant element
- Adds a title to allow hover-inspection of attribute names
- Alphabetises element attributes for a consistent order
- Increased the line length for Prettier to 160 because it was annoying me again, lol (sorry)
- Capitalises the hybrid character's nature field
- Renamed the nature select drop-down attribute as there was a clash with the nature bonus attribute
  - Added a sheet worker to migrate this change over
2020-12-12 15:17:33 +00:00
Ian Merryweather de04044eb3 fix: Resolves broken roll templates
- Uses comments to break up sections of the conditional HTML blocks so that Prettier doesn't fuck it up by splitting them into separate lines
2020-12-12 11:28:54 +00:00
Ian Merryweather 1c57b400fa feature: Adds pages
- Adds Character and Configuration buttons, which change the "page" of the character sheet to the relevant information
- Indented all of the previous character sheet code that isn't needed for the configuration page, so sorry about that diff
- Adds a new "type-background" color which is the normal color for that type adjusted up the same way the shaded color is adjusted down, and given a 50% alpha channel
- Added a few configuration items to the configuration page
2020-12-11 23:06:49 +00:00
Ian Merryweather 9c2ee28ab0 feature: Refactored character type to use dropdown
- Uses a select and paired hidden input sharing attribute name in preparation for moving the selector to a configuration tab
- Adds a sheet worker to update old character sheets to maintain the same type and style colouring
2020-12-11 17:29:18 +00:00
Ian Merryweather bf43ae7956 feature: Refactored move color setting
- Utilises a single hidden input sharing an attribute and default value with the move type selection dropdown
2020-12-10 17:34:30 +00:00
Ian Merryweather f2394ddade feature: Refactored sheet color setting
- Utilises a single hidden input sharing an attribute and default value with the first type selection dropdown
2020-12-10 17:33:57 +00:00
Ian Merryweather af1e32002a chore: Reapplied formatter
- Set Prettier line length limit to a more sensible 140 to prevent the horrendous formatting that caused so many elements to be broken into multiple lines
2020-12-10 17:19:35 +00:00
Ian Merryweather 0a7e42cd8c feature: Added initiative tie breaker attribute 2020-12-07 12:30:22 +00:00
Ian Merryweather b0c29f9fa2 feature: Added a separator between skills and capture pokemon 2020-12-07 12:30:06 +00:00
Ian Merryweather 349e90799e chore: Ran code through linter
- Installed the Prettifier linter to ensure the code is presented in a "standard" format
  - Helps to catch any errors missed _(such as missing semi-colons, of which there were a few!)_
- Added task to the to-do concerning the cascading sheet workers
2020-12-07 00:49:01 +00:00
Ian Merryweather 88f56bf531 feature: Added generic stat checks
- Changes the readonly input field for stat modifiers to be buttons with attribute-backed span titles to allow for making them rollable
- Added dice rolls for generic stat checks to the new dice modifier buttons
  - This means Pokémon character sheets don't have checks for DEF and SPDEF, as those mods aren't used for Pokémon; this may change in the future
2020-12-07 00:44:24 +00:00
Ian Merryweather dbb1b30eed feature: Added a pokemon capture skill
- Adds a new skill to the end of the skill list - placement intentionally breaking alphabetical order for fast location, and because the format doesn't match the rest of the table
2020-12-07 00:41:19 +00:00
Ian Merryweather a851e9c3ab feature: Refactors skill talents
- Changes the header of the talent checkboxes to Talent to make it easier for users to identify their purpose
- Sets value of each checkbox to 2 to eliminate the need to select talent in a particular order
- Updates the skill total sheet workers to add the extra +1 if both checkboxes are on
- Updates the skill total sheet workers to encapsulate some repeated code into a function to make the scripts section neater
- Updates skill total *(and other)* sheet workers to react to attribute mods, which ensures attribute changes have time to propagate to the mod before being used
- Updates the README

feature: Calculates stat modifiers using temporary bonuses

- Adds labelling to the sheet workers
- Removes superfluous comments
2020-11-29 15:21:42 +00:00
Adam Talbot a053ce801c PTA3 - Bluff and Deception use SPDMODEF 2020-11-25 23:39:19 -05:00
Ian Merryweather f2994b67f3 feature: Use skill total in skill roll
- Replaces fetching the various skill total components with just using the calculated skill total for adding to the dice in skill rolls via the template
2020-11-09 12:29:36 +00:00
Ian Merryweather 4d5ac70c7f feature: Adds skill total sheet workers
- Adds sheet workers to calculate the total modifier for a skill based on stat, talents, and manually assigned bonuses
  - Workers run on sheet open, and when any of the relevant stats are changed
- Updated the readme to tick off one of our tasks
2020-11-08 08:31:55 +00:00
Ian Merryweather a24d25c829 feature: Moves skill roller button to the skill name
- Combines the roll button with the name label to make it into a single control
- Adds styling to the button to make it display the same colour as the relevant stat field when hovered over
- Prepares the stat display box for use as the skill total
- Adds new `skillname_total` attributes
2020-11-08 08:26:54 +00:00
Miguel Peres b2b471ad01 Merge pull request #7609 from mrianmerry/pta/critical-hit-adjustments
[PokemonTabletopAdventures_v3] Improves the Move roll template
2020-11-02 17:13:13 -03:00
Ian Merryweather 28f4165d04 feature: Adds title properties for tooltip assistance
* Adds fields to the spans containing the Critical Threshold and the first Effect Threshold and Effect Drop-Down fields in each move
* Attaches a title to these new tooltip fields
* Styles fields appropriately to look like a tooltip
2020-11-01 13:50:22 +00:00
Ian Merryweather 495b899702 chore: Allows 0 effect threshold 2020-10-31 18:51:58 +00:00
Ian Merryweather 652538965f fix: Deault move colouration
* Marks the checkbox relating to normal move-type selection checked by default
2020-10-29 21:18:14 +00:00
Ian Merryweather 45db332de7 feature: Accuracy roll total
* Clarifies intent of the total damage field
* Adds field for indicating the accuracy roll in the same manner as the damage roll field
* Changes display for total damage field to show the base damage roll
* Corrects previous misnamed attribute in total damage sheet worker
2020-10-28 22:58:03 +00:00