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
-7: 6,
-8: 7,
-9: 5,
-10: 5,
-11: 7,
-12: 5,
-13: 5,
-14: 7,
-15: 5,
-16: 6,
-17: 7,
-18: 5,
-19: 6,
-20: 5,
-21: 7,
-22: 5,
-23: 7,
-24: 5,
-25: 7,
-26: 5,
-27: 6,
-28: 5,
-29: 6,
-30: 7,
-31: 5,
-32: 6,
-33: 7,
-34: 5,
-35: 6,
-36: 6,
-37: 7,
-38: 5,
-39: 6,
-40: 5,
-41: 7,
-42: 5,
-43: 6,
-44: 7,
-45: 5,
-46: 7,
-47: 5,
-48: 7,
-49: 5,
-50: 7,
-51: 5,
-52: 7,
-53: 5,
-54: 7,
-55: 5,
-56: 7,
-57: 5,
-58: 7,
-59: 5,
-60: 6,
-61: 7,
-62: 5,
-63: 6,
-64: 7,
-65: 5,
-66: 7,
-67: 7,
-68: 5,
-69: 6,
-70: 7,
-71: 5,
-72: 6,
-73: 5,
-74: 6,
-75: 6,
-76: 6,
-77: 7,
-78: 5,
-79: 7,
-80: 5,
-81: 6,
-82: 6,
-83: 5,
-84: 7,
-85: 6,
-86: 7,
-87: 5,
-88: 7,
-89: 5,
-90: 7,
-91: 7,
-92: 6,
-93: 6,
-94: 7,
-95: 6,
-96: 7,
-97: 5,
-98: 7,
-99: 5,
-100: 5,
-101: 7,
-102: 7,
-103: 5,
-104: 6,
-105: 7,
-106: 6,
-107: 7,
-108: 6,
-109: 7,
-110: 7,
-111: 7,
-112: 6,
-113: 6,
-114: 7,
-115: 5,
-116: 6,
-117: 6,
-118: 7,
-119: 6,
-120: 6,
-121: 6,
-122: 7,
-123: 6,
-124: 6,
-125: 6,
-126: 7,
-127: 7,
-128: 6,
-129: 7,
-130: 7,
-131: 5,
-132: 5,
-133: 6,
-134: 6,
-135: 6,
-136: 6,
-137: 5,
-138: 6,
-139: 5,
-140: 6,
-141: 7,
-142: 7,
-143: 7,
-144: 7,
-145: 7,
-146: 5,
-147: 6,
-148: 7,
-149: 7,
-150: 5,
-151: 5,
-152: 6,
-153: 7,
-154: 5,
-155: 6,
-156: 7,
-157: 5,
-158: 6,
-159: 7,
-160: 6,
-161: 6,
-162: 5,
-163: 7,
-164: 6,
-165: 6,
-166: 5,
-167: 7,
-168: 7,
-169: 6,
-170: 6,
-171: 5,
-172: 5,
-173: 5,
-174: 5,
-175: 7,
-176: 5,
-177: 6,
-178: 5,
-179: 6,
-180: 7,
-181: 7,
-182: 5,
-183: 7,
-184: 6,
-185: 7,
-186: 5,
-187: 6,
-188: 7,
-189: 5,
-190: 5,
-191: 6,
-192: 6,
-193: 5,
-194: 6,
-195: 6,
-196: 6,
-197: 6,
-198: 7,
-199: 6,
-200: 5,
-201: 6,
-202: 7,
-203: 5,
-204: 7,
-205: 6,
-206: 6,
-207: 7,
-208: 6,
-209: 6,
-210: 5,
-211: 7,
-212: 5,
-213: 6,
-214: 6,
-215: 5,
-216: 7,
-217: 5,
-218: 6,
-219: 5,
-220: 6,
-221: 6,
-222: 5,
-223: 6,
-224: 6,
-225: 7,
-226: 7,
-227: 6,
-228: 7,
-229: 7,
-230: 5,
-231: 7,
-232: 6,
-233: 7,
-234: 7,
-235: 5,
-236: 7,
-237: 5,
-238: 6,
-239: 6,
-240: 6,
-241: 7,
-242: 7,
-243: 7,
-244: 7,
-245: 5,
-246: 6,
-247: 7,
-248: 7,
-249: 7,
-250: 5,
-}
-
def make_sizes():
"""front pics have specified sizes"""
top = 251
@@ -982,10 +745,16 @@
base_stats = 0x51424
# print monster sizes
address = base_stats + 0x11
+
+ output = ''
+
for id in range(top):
size = (ord(rom[address])) & 0x0f
- print str(id) + ': ' + str(size) + ','
+ if id % 16 == 0: output += '\n\t'
+ output += str(size) + ', '
address += 0x20
+
+ print output