Browse Source

Add game age bits, to avoid having big "000" chunks in every password

master
Noëlle Anthony 5 years ago
parent
commit
74a86ae24e
1 changed files with 65 additions and 1 deletions
  1. 65
    1
      metroidgen.py

+ 65
- 1
metroidgen.py View File

@@ -656,7 +656,71 @@ class MetroidState:
self.bitfield[86] = 1
if int(binMissiles[7]) == 1:
self.bitfield[87] = 1
# 88-119 are game age, leaving at 0
# 88-119 are game age, let's randomize
if random.randint(0,1) == 1:
self.bitfield[88] = 1
if random.randint(0,1) == 1:
self.bitfield[89] = 1
if random.randint(0,1) == 1:
self.bitfield[90] = 1
if random.randint(0,1) == 1:
self.bitfield[91] = 1
if random.randint(0,1) == 1:
self.bitfield[92] = 1
if random.randint(0,1) == 1:
self.bitfield[93] = 1
if random.randint(0,1) == 1:
self.bitfield[94] = 1
if random.randint(0,1) == 1:
self.bitfield[95] = 1
if random.randint(0,1) == 1:
self.bitfield[96] = 1
if random.randint(0,1) == 1:
self.bitfield[97] = 1
if random.randint(0,1) == 1:
self.bitfield[98] = 1
if random.randint(0,1) == 1:
self.bitfield[99] = 1
if random.randint(0,1) == 1:
self.bitfield[100] = 1
if random.randint(0,1) == 1:
self.bitfield[101] = 1
if random.randint(0,1) == 1:
self.bitfield[102] = 1
if random.randint(0,1) == 1:
self.bitfield[103] = 1
if random.randint(0,1) == 1:
self.bitfield[104] = 1
if random.randint(0,1) == 1:
self.bitfield[105] = 1
if random.randint(0,1) == 1:
self.bitfield[106] = 1
if random.randint(0,1) == 1:
self.bitfield[107] = 1
if random.randint(0,1) == 1:
self.bitfield[108] = 1
if random.randint(0,1) == 1:
self.bitfield[109] = 1
if random.randint(0,1) == 1:
self.bitfield[110] = 1
if random.randint(0,1) == 1:
self.bitfield[111] = 1
if random.randint(0,1) == 1:
self.bitfield[112] = 1
if random.randint(0,1) == 1:
self.bitfield[113] = 1
if random.randint(0,1) == 1:
self.bitfield[114] = 1
if random.randint(0,1) == 1:
self.bitfield[115] = 1
if random.randint(0,1) == 1:
self.bitfield[116] = 1
if random.randint(0,1) == 1:
self.bitfield[117] = 1
if random.randint(0,1) == 1:
self.bitfield[118] = 1
if random.randint(0,1) == 1:
self.bitfield[119] = 1

# 120-123 are unknown


Loading…
Cancel
Save