Commit Graph
5 Commits
Author SHA1 Message Date
Tristan Maat 49d77ab784 PTUv2: Use strict equality checking for strings on attribute import
Currently when using the import button, all attributes set to 0 will be skipped, because the [`==`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality) operator is silly and auto-converts strings into numbers.
 
This is technically a backwards-incompatible change, since this could in theory be used to set some attributes to "please don't override this". I don't think that's useful, however, since simply omitting those attributes achieves the same effect, and if this was intentional I doubt it would be checked this way.

Allowing these values to be changed on the other hand is useful for backup imports and other suchlike.
2022-05-04 03:33:38 +01:00
Nathanael Winget cfb3227746 Add legacy sanitization opt-in 2021-02-04 10:52:31 -05:00
Chevron Allen d9907579ab Known moves effect fix
fixed a typo in the rolls  preventing known moves from displaying effect details. Thanks Cerin!
2020-10-11 14:28:24 -04:00
Chevron Allen 3396f0161e [Pokemon Tabletop United v2] JSON Import and Roll Template fixes (#7375)
* Fixed Import Issue

Fixed error importing blank fields.
Fixed empty string replacing character_name.
Added Multistrike macro and selector to PTU rolltemplate.
Added character_name to all rolls.
Moved most rolltemplate use to the PTU template. The PTU_move rolltemplate is now considered deprecated.
Added Jakob's custom rolltemplate

* Update PTUv2.html

skip all empty string or null values
2020-09-14 17:35:59 -04:00
Chevron Allen 335eff88f0 sheet files 2020-09-02 12:25:57 -04:00