This splits the maxAwarded option into two: maxAwarded and maxAwardedTotal, like discussed in #27. maxAwarded works as before, but maxAwardedTotal now looks at the total amount of the particular achievement ever granted to the user. This is achieved (hehe) by splitting the amount database field in the achievements table into current_amount and total_amount. current_amount is set to 0 when the achievement is replaced by another achievement, but total_amount only counts upwards.
This makes replaces a bit more useful.
This splits the
maxAwarded
option into two:maxAwarded
andmaxAwardedTotal
, like discussed in #27.maxAwarded
works as before, butmaxAwardedTotal
now looks at the total amount of the particular achievement ever granted to the user. This is achieved (hehe) by splitting theamount
database field in theachievements
table intocurrent_amount
andtotal_amount
.current_amount
is set to0
when the achievement is replaced by another achievement, buttotal_amount
only counts upwards. This makesreplaces
a bit more useful.