mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-23 09:01:45 +00:00
916e797b34
- New assets - New parameters for EN event maps - New tips GUI
10 lines
369 B
Python
10 lines
369 B
Python
shape = 'K7'
|
|
def location2node(location):
|
|
return chr(location[0] + 64 + 1) + str(location[1] + 1)
|
|
def node2location(node):
|
|
return ord(node[0]) % 32 - 1, int(node[1]) - 1
|
|
shape = node2location(shape.upper())
|
|
for y in range(shape[1]+1):
|
|
text = ', '.join([location2node((x, y)) for x in range(shape[0]+1)]) + ', \\'
|
|
print(text)
|
|
print(' = MAP.flatten()') |