Sometimes key is not present on floor 3

Issue #111 resolved
V H. U repo owner created an issue

Some players are unable to get through floor 3, I have a feeling this is related to the save/load chest bug.

Comments (5)

  1. Alisa Drachnyd

    I finally encountered this bug on 0.4.3.1 and I do not think it has anything to do with saving or loading, as I don't use saves at all (gotta preserve that roguelike feel). I have a ton of the ghost keys I mentioned in the other issue thread but never found the legit key after exploring the entire floor, opening every chest, and beating up any mimics encountered -- no retreats, no losses.

    Using the debug map viewer, there is nothing on the floor left unexplored, there are no chests remaining, and the only things left other than myself, the stairs, and the shopkeeper are 3 traps I bypassed. Even with my mighty stack of ghost keys, the stairs will not open due to never having found that one intended key. I went to the shopkeeper, sold him a few of those ghost keys for 1250 each, then bought a real key from him and exited as normal.

  2. V H. U reporter

    Yeah, after some experimentation I can confirm this to not be save/load related. This is something that I'm going to have to track down.

    The way keys work in 0.4.3.1 is that when they are added to the players inventory via the item.add method, they change the beatBoss tag for the floor to True. This means that somewhere keys are being added to the players inventory via the item.addOne method, or by directly changing the item.count variable.

    I've changed my local branch (this will be added to the master sooner or later) so that it also, when the player tries to go down, checks for keys in the inventory, but the ability to have a never-ending supply of 1250g items that just pop into the inventory is something I have to fix.

  3. Log in to comment