store restocking

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
hops
Halfling
Posts: 111
Joined: Tue Sep 21, 2010 9:05 am

store restocking

#1 Post 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.

complexityQuantifier
Higher
Posts: 56
Joined: Sun Jan 16, 2011 2:52 pm

Re: store restocking

#2 Post 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.

Post Reply