Mar 1, 2022 3:57 pm
Chalrytharendir says:
It might be nice if it renders with the calculated value, mainly because the variable are internal to the sheet, so the creator of the sheet will understand them, but users of the sheet might not understand unless the variable names are well chosen.
I don't think this is a critical fix, but I thought it was worth noting.
Anyway, I've done that (on staging)
Also, we have two new functions.
* lookupBonus(val, 1,3,-3, 4,5,-2, 6,8,-1, 9,12,0, 13,15,1, 16,17,2, 18,18,3)
This takes val and looks for it in the triples. If val is inclusively between 1 and 3 return -3. If between 4 and 5 return -2. etc.
* dwBonus(12) This is a shortcut for dungeon world players so they don't need that whole mess of lookupBonus code.