import sys
with open('dungeons/index.html', 'r', encoding='utf-8') as f:
text = f.read()
target = '''
| ワンダラーパレス (Hard) |
Lv50 (IL90〜) |
非対応 |
マムージャ族占領。死の宣告呪具解除、光鱗のモラージャラジャ。 |
準備中 |
'''
replacement = '''
| ワンダラーパレス (Hard) |
Lv50 (IL90〜) |
非対応 |
マムージャ族占領。死の宣告呪具解除、光鱗のモラージャラジャ。 |
攻略を見る ➜ |
'''
if target in text:
text = text.replace(target, replacement)
with open('dungeons/index.html', 'w', encoding='utf-8') as f:
f.write(text)
print("Updated wanderers_palace_hard in dungeons/index.html")
else:
print("Target not found!")
sys.exit(1)