#=============================================================================
# Happiness Gauge
#=============================================================================
def pbDisplayHappiness
x = 1
y = 155
nohappiness = "Graphics/Pictures/heartempty"
lowhappiness = "Graphics/Pictures/heartlow"
highhappiness = "Graphics/Pictures/hearthigh"
maxhappiness = "Graphics/Pictures/heartmax"
overlay = @sprites["overlay"].bitmap
imagepos = []
imagepos.push([nohappiness,x,y,0,0,-1,-1])
if @pokemon.happiness == 255
imagepos.push([maxhappiness,x,y,0,0,-1,-1])
elsif @pokemon.happiness >= 150
imagepos.push([highhappiness,x,y,0,0,-1,-1])
elsif @pokemon.happiness > 0 && @pokemon.happiness < 150
imagepos.push([lowhappiness,x,y,0,0,-1,-1])
end
pbDrawImagePositions(overlay,imagepos)
end
#=============================================================================