noita_entangled_worlds/quant.ew/files/lib/genhex.py
2024-05-26 23:21:36 +03:00

5 lines
No EOL
165 B
Python

with open("hex.lua", "w") as f:
print("return {", file=f)
for i in range(256):
print(f'"{hex(i)[2:].rjust(2, "0")}",', file=f)
print("}", file=f)