vagueGM says:
Rather then and "totalle" business, can we change it to allow '<=>' opperators in the value field?
These can then apply to "rolled" and "natural" and such as well. '"natural":">19"' for Improved Criticals, for example.
Oh yes, vagueGM! That's a far superior syntax.
It can't apply to rolled (that's a string match) but it allows us to operate on total and natural in a more lucid way.
{"rolled": "1d20","reason":"DC15","total": "<15","contentAppend": "❌","highlight":"fail invert bold"}
{"rolled": "d20","natural": ">=19","highlight":"success invert bold"}
To allow ranges I'm going to use "x", so "5<x<7" is valid too (your ordering hack seems a little fragile).