Ensure empty exp bar at start

This commit is contained in:
Kyle Coburn 2015-05-06 21:45:46 -07:00
parent 2d371c3c1c
commit 9417d3d88c
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ function Combat.updateHP(curr_hp)
lastHP = curr_hp lastHP = curr_hp
local baseExp = Pokemon.getExpForLevelFromCurrent(0) local baseExp = Pokemon.getExpForLevelFromCurrent(0)
local expForCurrentLevel = Pokemon.getExp() - baseExp local expForCurrentLevel = Pokemon.getExp() - baseExp
local nextLevelExp = Pokemon.getExpForLevelFromCurrent(1) - baseExp local nextLevelExp = math.max(Pokemon.getExpForLevelFromCurrent(1) - baseExp, 1)
Bridge.hp(curr_hp, max_hp, expForCurrentLevel, nextLevelExp, Pokemon.index(0, "level")) Bridge.hp(curr_hp, max_hp, expForCurrentLevel, nextLevelExp, Pokemon.index(0, "level"))
end end
end end