Page 1 of 1

store restocking

Posted: Fri Feb 18, 2011 12:15 pm
by hops
I think there is a bug in these lines

Code: Select all

    if self.last_filled and p and self.last_filled >= p.level - s.restock_every then
        print("[STORE] not restocking yet [player level]", p.level, s.restock_every, self.last_filled)
        return false
    end
Output from my game:
[STORE] not restocking yet [player level] 24 5 809136
The no-restocking condition is almost always true.

Re: store restocking

Posted: Tue Feb 22, 2011 6:32 pm
by complexityQuantifier
Yeah, none of the stores are ever restocking in the svn version. It's apparently comparing your level to the turn number of the last restock.