Created
March 20, 2019 16:01
-
-
Save alcaras/260001f4a40c0d7c571eae0f7a6576c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f = open('simc.txt','r') | |
to_write = [] | |
tmp = f.readline() | |
while(not tmp==''): | |
x = tmp.find('id=') | |
if(x==-1): | |
to_write.append(tmp) | |
else: | |
if(tmp.find('main_hand')>-1): | |
tmp = tmp[:-1]+',ilevel=415\n' | |
to_write.append(tmp) | |
else: | |
tmp = tmp[:-1]+',ilevel=415\n' | |
to_write.append(tmp) | |
tmp = f.readline() | |
f.close() | |
f = open('simc_415.txt','w') | |
f.writelines(to_write) | |
f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment