The variable num_keys is never explicitly set to 0, so any keys collected in a given playthrough will carry over to the the subsequent run.
To reproduce, start a run, collect at least 1 key, and then die. On the second run, the UI will display zero keys, but upon collecting a new key, the UI will update to display 2 keys. Additionally, you can open the first door on floor 3 without having to find the mod with the key.
The variable
num_keys
is never explicitly set to 0, so any keys collected in a given playthrough will carry over to the the subsequent run.To reproduce, start a run, collect at least 1 key, and then die. On the second run, the UI will display zero keys, but upon collecting a new key, the UI will update to display 2 keys. Additionally, you can open the first door on floor 3 without having to find the mod with the key.