set new card modulus on new cards at end deck

This commit is contained in:
Damien Elmes 2008-11-15 04:56:52 +09:00
parent af78b0bf94
commit cdce18f5c0

View file

@ -403,6 +403,8 @@ strftime("%s", "now")+1 from decks)"""))
self.newCardModulus = max(2, self.newCardModulus) self.newCardModulus = max(2, self.newCardModulus)
else: else:
self.newCardModulus = 0 self.newCardModulus = 0
else:
self.newCardModulus = 0
# determine starting factor for new cards # determine starting factor for new cards
self.averageFactor = (self.s.scalar( self.averageFactor = (self.s.scalar(
"select avg(factor) from cards where type = 1") "select avg(factor) from cards where type = 1")