jacobwojoski / dice-stats

A Module for Foundry VTT that tracks and displays dice stats
MIT License
7 stars 6 forks source link

[Enhancement] Refactor Templates #106

Open jacobwojoski opened 8 months ago

jacobwojoski commented 8 months ago

Templates have a lot of looping code. Handlebars sucks for looking code but could prob come up with something so its a bit better

jacobwojoski commented 7 months ago

Update Template objects to be

PACKEDOBJ {
    // Info used for charts so cant be part of handlebars # each loop
    TOTAL_ROLLS[],
    IS_DISP[],
    D2_INFO[],
    D3_INFO[],
    ...
    D100_INFO[],

    // Info that will be part of a handlebars # each loop
    DIE_SEC_INFO[
           {
              Is_displayed
              Total_Rolls
              Mean
              Median
              Mode
              StreakIsBlind
              StreakString
              chartClassId
              DiceHeading
           }, {SAME}, {SAME}. . .
    ]
}