A team game with an emphasis on movement (with no shooting), inspired by Overwatch and Zineth
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
673 B

#!/usr/bin/python3
from pathlib import Path
# Current working directory
cwd = Path.cwd()
for path in cwd.glob('**/*.tscn'):
result = []
with path.open() as f:
for line in f.readlines():
if line.startswith('_sections_unfolded'):
# Skip lines that start with _sections_unfolded
continue
elif line.startswith('[node') and 'parent=' not in line:
# Root node, remove 'index="0"'
result.append(line.replace(' index="0"', ''))
else:
# Add line as is
result.append(line)
with path.open('w') as f:
f.writelines(result)