summaryrefslogtreecommitdiff
path: root/evolved.py
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2023-09-23 12:46:54 +0200
committerHoraK-FDF <horak-fdf@web.de>2023-09-23 12:46:54 +0200
commitf4f3be50092c1ed9d30d5539152a16f9c9ae504a (patch)
treee2370255130df51c83d5ffc6f22b06100c8b0209 /evolved.py
parent22ce3fd72b46c4675d82fa4b35fa24b8f22bd2d0 (diff)
downloadtools-f4f3be50092c1ed9d30d5539152a16f9c9ae504a.tar.gz
tools-f4f3be50092c1ed9d30d5539152a16f9c9ae504a.tar.bz2
tools-f4f3be50092c1ed9d30d5539152a16f9c9ae504a.tar.xz
tools-f4f3be50092c1ed9d30d5539152a16f9c9ae504a.zip
SC_MATKPOT
Diffstat (limited to 'evolved.py')
-rwxr-xr-xevolved.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/evolved.py b/evolved.py
index 5bdc168..42e5b78 100755
--- a/evolved.py
+++ b/evolved.py
@@ -401,11 +401,12 @@ def stis(x):
x=re.sub(r'readparam\(b(.*)\)',r'\1',x)
x=re.sub(r'callfunc "itheal", (-?[0-9]+), (-?[0-9]+).*',r'heal \1, \2, 1;',x)
x=re.sub(r'callfunc "RequireStat", b(.*), ([0-9]+).*',r'set @bStat, \1; set @minbStatVal, \2; callfunc "RequireStat";',x)
- x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_PLUSATTACKPOWER, (-?[0-9]+).*',r'sc_start sc_raiseattackstrength, \1, \2;',x)
- x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_ATTHASTE_POTION1, (-?[0-9]+).*',r'sc_start sc_raiseattackspeed0, \1, \2;',x)
- x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_SLOWPOISON, (-?[0-9]+).*',r'sc_start sc_slowpoison, \1, \2;',x) # uses 180k in tmwa files but gets multiplied by 1000 in source if low evolved value is taken
- x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_BLOODING, (-?[0-9]+).*',r'sc_start sc_poison, \1, \2;',x)
- x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_POISON, (-?[0-9]+).*',r'sc_start sc_poison, \1, \2;',x)
+ x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_PLUSATTACKPOWER, (-?[0-9]+).*',r'sc_start SC_ATKPOT, \1, \2;',x)
+ x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_PLUSMAGICPOWER, (-?[0-9]+).*',r'sc_start SC_MATKPOT, \1, \2;',x)
+ x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_ATTHASTE_POTION1, (-?[0-9]+).*',r'sc_start SC_SPEEDPOTION0, \1, \2;',x)
+ x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_SLOWPOISON, (-?[0-9]+).*',r'sc_start SC_SLOWPOISON, \1, \2;',x) # uses 180k in tmwa files but gets multiplied by 1000 in source if low evolved value is taken
+ x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_BLOODING, (-?[0-9]+).*',r'sc_start SC_POISON, \1, \2;',x)
+ x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_POISON, (-?[0-9]+).*',r'sc_start SC_POISON, \1, \2;',x)
x=re.sub(r'callfunc\("SC_Bonus", (-?[0-9]+), SC_PHYS_SHIELD, (-?[0-9]+).*',r'sc_start SC_PHYS_SHIELD, \1, \2;',x)
x=re.sub(r' +',' ',x)
return x.replace('\n', '').replace("\t","").strip()