Updated to mkxp-z v2.1.1, renamed and rearranged some script files

This commit is contained in:
Maruno17
2021-04-04 16:24:46 +01:00
parent afd76503b2
commit 5b0960337a
92 changed files with 916 additions and 927 deletions

View File

@@ -166,7 +166,7 @@ class PBPokemon
ev.each { |stat| pokemon.ev[stat] = Pokemon::EV_LIMIT / ev.length }
end
GameData::Stat.each_main { |s| pokemon.iv[s.id] = iv }
pokemon.calcStats
pokemon.calc_stats
return pokemon
end
end

View File

@@ -60,14 +60,14 @@ class LevelAdjustment
exp=adjustments[0][i]
if exp && team1[i].exp!=exp
team1[i].exp=exp
team1[i].calcStats
team1[i].calc_stats
end
end
for i in 0...team2.length
exp=adjustments[1][i]
if exp && team2[i].exp!=exp
team2[i].exp=exp
team2[i].calcStats
team2[i].calc_stats
end
end
end
@@ -90,7 +90,7 @@ class LevelAdjustment
for i in 0...team1.length
if team1[i].level!=adj1[i]
team1[i].level=adj1[i]
team1[i].calcStats
team1[i].calc_stats
end
end
end
@@ -98,7 +98,7 @@ class LevelAdjustment
for i in 0...team2.length
if team2[i].level!=adj2[i]
team2[i].level=adj2[i]
team2[i].calcStats
team2[i].calc_stats
end
end
end

View File

@@ -849,7 +849,7 @@ def pbRuledBattle(team1,team2,rule)
next if !p
if p.level!=level
p.level=level
p.calcStats
p.calc_stats
end
items1[i]=p.item_id
trainer1.party.push(p)
@@ -858,7 +858,7 @@ def pbRuledBattle(team1,team2,rule)
next if !p
if p.level!=level
p.level=level
p.calcStats
p.calc_stats
end
items2[i]=p.item_id
trainer2.party.push(p)