import re with open('stages/manager/StageManager.gd', 'r', encoding='utf-8') as f: content = f.read() content = content.replace('while polls < 2:', 'while polls < 50:') with open('stages/manager/StageManager.gd', 'w', encoding='utf-8') as f: f.write(content) print("StageManager polls increased to 50!")