ItemHandlers::UseOnPokemon.add(:REDPOKEBLOCK1,proc{|item,pokemon,scene| if pokemon.sheen==255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cool==255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==1 || pokemon.nature==2|| pokemon.nature==3|| pokemon.nature==4) pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==5 || pokemon.nature==10|| pokemon.nature==15|| pokemon.nature==20) pokemon.cool+=3.5 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cool+=5 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:REDPOKEBLOCK2,proc{|item,pokemon,scene| if pokemon.sheen==255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cool==255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==1 || pokemon.nature==2|| pokemon.nature==3|| pokemon.nature==4) pokemon.cool+=20 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==5 || pokemon.nature==10|| pokemon.nature==15|| pokemon.nature==20) pokemon.cool+=5 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:REDPOKEBLOCK3,proc{|item,pokemon,scene| if pokemon.sheen==255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cool==255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==1 || pokemon.nature==2|| pokemon.nature==3|| pokemon.nature==4) pokemon.cool+=30 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==5 || pokemon.nature==10|| pokemon.nature==15|| pokemon.nature==20) pokemon.cool+=7.5 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cool+=15 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:BLUEPOKEBLOCK1,proc{|item,pokemon,scene| if pokemon.sheen==255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.beauty==255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==15 || pokemon.nature==16|| pokemon.nature==17|| pokemon.nature==19) pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==3 || pokemon.nature==8 || pokemon.nature==13 || pokemon.nature==24) pokemon.beauty+=3.5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.beauty+=5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:BLUEPOKEBLOCK2,proc{|item,pokemon,scene| if pokemon.sheen==255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.beauty==255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==15 || pokemon.nature==16|| pokemon.nature==17|| pokemon.nature==19) pokemon.beauty+=20 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==3 || pokemon.nature==8 || pokemon.nature==13 || pokemon.nature==24) pokemon.beauty+=5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:BLUEPOKEBLOCK3,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==15 || pokemon.nature==16|| pokemon.nature==17|| pokemon.nature==19) pokemon.beauty+=30 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==3 || pokemon.nature==8|| pokemon.nature==13|| pokemon.nature==24) pokemon.beauty+=7.5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.beauty+=15 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:PINKPOKEBLOCK1,proc{|item,pokemon,scene| if pokemon.sheen==255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cute==255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==10 || pokemon.nature==11|| pokemon.nature==13|| pokemon.nature==14) pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==2 || pokemon.nature==7|| pokemon.nature==17|| pokemon.nature==22) pokemon.cute+=3.5 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cute+=5 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:PINKPOKEBLOCK2,proc{|item,pokemon,scene| if pokemon.sheen==255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cute==255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==10 || pokemon.nature==11|| pokemon.nature==13|| pokemon.nature==14) pokemon.cute+=20 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==2 || pokemon.nature==7|| pokemon.nature==17|| pokemon.nature==22) pokemon.cute+=5 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:PINKPOKEBLOCK3,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==10 || pokemon.nature==11|| pokemon.nature==13|| pokemon.nature==14) pokemon.cute+=30 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==2 || pokemon.nature==7|| pokemon.nature==17|| pokemon.nature==22) pokemon.cute+=7.5 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cute+=15 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:GREENPOKEBLOCK1,proc{|item,pokemon,scene| if pokemon.sheen==255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.smart==255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==20 || pokemon.nature==21|| pokemon.nature==22|| pokemon.nature==23) pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==4 || pokemon.nature==9|| pokemon.nature==14|| pokemon.nature==19) pokemon.smart+=3.5 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.smart+=5 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:GREENPOKEBLOCK2,proc{|item,pokemon,scene| if pokemon.sheen==255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.smart==255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==20 || pokemon.nature==21|| pokemon.nature==22|| pokemon.nature==23) pokemon.smart+=20 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==4 || pokemon.nature==9|| pokemon.nature==14|| pokemon.nature==19) pokemon.smart+=5 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:GREENPOKEBLOCK3,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==20 || pokemon.nature==21|| pokemon.nature==22|| pokemon.nature==23) pokemon.smart+=30 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==4 || pokemon.nature==9|| pokemon.nature==14|| pokemon.nature==19) pokemon.smart+=7.5 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.smart+=15 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:YELLOWPOKEBLOCK1,proc{|item,pokemon,scene| if pokemon.sheen==255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.tough==255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==5 || pokemon.nature==7|| pokemon.nature==8|| pokemon.nature==9) pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==1 || pokemon.nature==11|| pokemon.nature==16|| pokemon.nature==21) pokemon.tough+=3.5 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.tough+=5 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:YELLOWPOKEBLOCK2,proc{|item,pokemon,scene| if pokemon.sheen==255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.tough==255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==5 || pokemon.nature==7|| pokemon.nature==8|| pokemon.nature==9) pokemon.tough+=20 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==1 || pokemon.nature==11|| pokemon.nature==16|| pokemon.nature==21) pokemon.tough+=5 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:YELLOWPOKEBLOCK3,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==5 || pokemon.nature==7|| pokemon.nature==8|| pokemon.nature==9) pokemon.tough+=30 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==1 || pokemon.nature==11|| pokemon.nature==16|| pokemon.nature==21) pokemon.tough+=7.5 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.tough+=15 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:PURPLEPOKEBLOCK1,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==1 || pokemon.nature==2|| pokemon.nature==3|| pokemon.nature==4) pokemon.cool+=10 pokemon.cool=255 if pokemon.cute>255 pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==5 || pokemon.nature==10|| pokemon.nature==15|| pokemon.nature==20) pokemon.cool+=3.5 pokemon.cool=255 if pokemon.cool>255 pokemon.cute+=3.5 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cool+=5 pokemon.cool=255 if pokemon.cool>255 pokemon.cute+=5 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:PURPLEPOKEBLOCK2,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==1 || pokemon.nature==2|| pokemon.nature==3|| pokemon.nature==4) pokemon.cool+=20 pokemon.cool=255 if pokemon.cute>255 pokemon.cute+=20 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==5 || pokemon.nature==10|| pokemon.nature==15|| pokemon.nature==20) pokemon.cool+=5 pokemon.cool=255 if pokemon.cool>255 pokemon.cute+=5 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:PURPLEPOKEBLOCK3,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==1 || pokemon.nature==2|| pokemon.nature==3|| pokemon.nature==4) pokemon.cool+=30 pokemon.cool=255 if pokemon.cute>255 pokemon.cute+=30 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==5 || pokemon.nature==10|| pokemon.nature==15|| pokemon.nature==20) pokemon.cool+=7.5 pokemon.cool=255 if pokemon.cool>255 pokemon.cute+=7.5 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cool+=15 pokemon.cool=255 if pokemon.cool>255 pokemon.cute+=15 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:INDIGOPOKEBLOCK1,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==15 || pokemon.nature==16|| pokemon.nature==17|| pokemon.nature==19) pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==3 || pokemon.nature==8|| pokemon.nature==13|| pokemon.nature==24) pokemon.beauty+=3.5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.smart+=3.5 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.beauty+=5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.smart+=5 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:INDIGOPOKEBLOCK2,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==15 || pokemon.nature==16|| pokemon.nature==17|| pokemon.nature==19) pokemon.beauty+=20 pokemon.beauty=255 if pokemon.beauty>255 pokemon.smart+=20 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==3 || pokemon.nature==8|| pokemon.nature==13|| pokemon.nature==24) pokemon.beauty+=5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.smart+=5 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:INDIGOPOKEBLOCK3,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==15 || pokemon.nature==16|| pokemon.nature==17|| pokemon.nature==19) pokemon.beauty+=30 pokemon.beauty=255 if pokemon.beauty>255 pokemon.smart+=30 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==3 || pokemon.nature==8|| pokemon.nature==13|| pokemon.nature==24) pokemon.beauty+=7.5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.smart+=7.5 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.beauty+=15 pokemon.beauty=255 if pokemon.beauty>255 pokemon.smart+=15 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:BROWNPOKEBLOCK1,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==10 || pokemon.nature==11|| pokemon.nature==13|| pokemon.nature==14) pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==2 || pokemon.nature==7|| pokemon.nature==17|| pokemon.nature==22) pokemon.cute+=3.5 pokemon.cute=255 if pokemon.cute>255 pokemon.tough+=3.5 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cute+=5 pokemon.cute=255 if pokemon.cute>255 pokemon.tough+=5 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:BROWNPOKEBLOCK2,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==10 || pokemon.nature==11|| pokemon.nature==13|| pokemon.nature==14) pokemon.cute+=20 pokemon.cute=255 if pokemon.cute>255 pokemon.tough+=20 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==2 || pokemon.nature==7|| pokemon.nature==17|| pokemon.nature==22) pokemon.cute+=5 pokemon.cute=255 if pokemon.cute>255 pokemon.tough+=5 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:BROWNPOKEBLOCK3,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==10 || pokemon.nature==11|| pokemon.nature==13|| pokemon.nature==14) pokemon.cute+=30 pokemon.cute=255 if pokemon.cute>255 pokemon.tough+=30 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==2 || pokemon.nature==7|| pokemon.nature==17|| pokemon.nature==22) pokemon.cute+=7.5 pokemon.cute=255 if pokemon.cute>255 pokemon.tough+=7.5 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.cute+=15 pokemon.cute=255 if pokemon.cute>255 pokemon.tough+=15 pokemon.tough=255 if pokemon.tough>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:LITEBLUEPOKEBLOCK1,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==20 || pokemon.nature==21|| pokemon.nature==22|| pokemon.nature==23) pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==4 || pokemon.nature==9|| pokemon.nature==14|| pokemon.nature==19) pokemon.smart+=3.5 pokemon.smart=255 if pokemon.smart>255 pokemon.cool+=3.5 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.smart+=5 pokemon.smart=255 if pokemon.smart>255 pokemon.cool+=5 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:LITEBLUEPOKEBLOCK2,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==20 || pokemon.nature==21|| pokemon.nature==22|| pokemon.nature==23) pokemon.smart+=20 pokemon.smart=255 if pokemon.smart>255 pokemon.cool+=20 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==4 || pokemon.nature==9|| pokemon.nature==14|| pokemon.nature==19) pokemon.smart+=5 pokemon.smart=255 if pokemon.smart>255 pokemon.cool+=5 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:LITEBLUEPOKEBLOCK3,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==20 || pokemon.nature==21|| pokemon.nature==22|| pokemon.nature==23) pokemon.smart+=30 pokemon.smart=255 if pokemon.smart>255 pokemon.cool+=30 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==4 || pokemon.nature==9|| pokemon.nature==14|| pokemon.nature==19) pokemon.smart+=7.5 pokemon.smart=255 if pokemon.smart>255 pokemon.cool+=7.5 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.smart+=15 pokemon.smart=255 if pokemon.smart>255 pokemon.cool+=15 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:OLIVEPOKEBLOCK1,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==5 || pokemon.nature==7|| pokemon.nature==8|| pokemon.nature==9) pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==1 || pokemon.nature==11|| pokemon.nature==16|| pokemon.nature==21) pokemon.tough+=3.5 pokemon.tough=255 if pokemon.tough>255 pokemon.beauty+=3.5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.tough+=5 pokemon.tough=255 if pokemon.tough>255 pokemon.beauty+=5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:OLIVEPOKEBLOCK2,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==5 || pokemon.nature==7|| pokemon.nature==8|| pokemon.nature==9) pokemon.tough+=20 pokemon.tough=255 if pokemon.tough>255 pokemon.beauty+=20 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==1 || pokemon.nature==11|| pokemon.nature==16|| pokemon.nature==21) pokemon.tough+=5 pokemon.tough=255 if pokemon.tough>255 pokemon.beauty+=5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:OLIVEPOKEBLOCK3,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 else if (pokemon.nature==5 || pokemon.nature==7|| pokemon.nature==8|| pokemon.nature==9) pokemon.tough+=30 pokemon.tough=255 if pokemon.tough>255 pokemon.beauty+=30 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=17 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} happily ate the {2}!",pokemon.name,PBItems.getName(item))) elsif (pokemon.nature==1 || pokemon.nature==11|| pokemon.nature==16|| pokemon.nature==21) pokemon.tough+=7.5 pokemon.tough=255 if pokemon.tough>255 pokemon.beauty+=7.5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=4.25 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} reluctantly ate the {2}!",pokemon.name,PBItems.getName(item))) else pokemon.tough+=15 pokemon.tough=255 if pokemon.tough>255 pokemon.beauty+=15 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems indifferent to the taste.",pokemon.name,PBItems.getName(item))) end return 3 end }) ItemHandlers::UseOnPokemon.add(:WHITEPOKEBLOCK,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 else pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to enjoy the taste.",pokemon.name,PBItems.getName(item))) return 3 end }) ItemHandlers::UseOnPokemon.add(:GOLDPOKEBLOCK1,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 else pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to enjoy the taste.",pokemon.name,PBItems.getName(item))) return 3 end }) ItemHandlers::UseOnPokemon.add(:GOLDPOKEBLOCK2,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 else pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to enjoy the taste.",pokemon.name,PBItems.getName(item))) return 3 end }) ItemHandlers::UseOnPokemon.add(:GOLDPOKEBLOCK3,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 else pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to enjoy the taste.",pokemon.name,PBItems.getName(item))) return 3 end }) ItemHandlers::UseOnPokemon.add(:GOLDPOKEBLOCK4,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 else pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to enjoy the taste.",pokemon.name,PBItems.getName(item))) return 3 end }) ItemHandlers::UseOnPokemon.add(:GOLDPOKEBLOCK5,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 else pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to enjoy the taste.",pokemon.name,PBItems.getName(item))) return 3 end }) ItemHandlers::UseOnPokemon.add(:GOLDPOKEBLOCK6,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 else pokemon.cool+=10 pokemon.cool=255 if pokemon.cool>255 pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to enjoy the taste.",pokemon.name,PBItems.getName(item))) return 3 end }) ItemHandlers::UseOnPokemon.add(:GOLDPOKEBLOCK7,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 else pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to enjoy the taste.",pokemon.name,PBItems.getName(item))) return 3 end }) ItemHandlers::UseOnPokemon.add(:GOLDPOKEBLOCK8,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 else pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to enjoy the taste.",pokemon.name,PBItems.getName(item))) return 3 end }) ItemHandlers::UseOnPokemon.add(:GOLDPOKEBLOCK9,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 else pokemon.beauty+=10 pokemon.beauty=255 if pokemon.beauty>255 pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to enjoy the taste.",pokemon.name,PBItems.getName(item))) return 3 end }) ItemHandlers::UseOnPokemon.add(:GOLDPOKEBLOCK10,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 else pokemon.cute+=10 pokemon.cute=255 if pokemon.cute>255 pokemon.tough+=10 pokemon.tough=255 if pokemon.tough>255 pokemon.smart+=10 pokemon.smart=255 if pokemon.smart>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to enjoy the taste.",pokemon.name,PBItems.getName(item))) return 3 end }) ItemHandlers::UseOnPokemon.add(:BLACPOKEBLOCK,proc{|item,pokemon,scene| if pokemon.sheen>=255 scene.pbDisplay(_INTL("{1} can't eat anymore Pokéblocks",pokemon.name)) return 0 elsif pokemon.tough>=255 scene.pbDisplay(_INTL("{1}'s toughness can't go any higher",pokemon.name)) return 0 elsif pokemon.beauty>=255 scene.pbDisplay(_INTL("{1}'s beauty can't go any higher",pokemon.name)) return 0 elsif pokemon.smart>=255 scene.pbDisplay(_INTL("{1}'s intelligence can't go any higher",pokemon.name)) return 0 elsif pokemon.cute>=255 scene.pbDisplay(_INTL("{1}'s cuteness can't go any higher",pokemon.name)) return 0 elsif pokemon.cool>=255 scene.pbDisplay(_INTL("{1}'s coolness can't go any higher",pokemon.name)) return 0 else pokemon.cute+=3.5 pokemon.cute=255 if pokemon.cute>255 pokemon.tough+=3.5 pokemon.tough=255 if pokemon.tough>255 pokemon.smart+=3.5 pokemon.smart=255 if pokemon.smart>255 pokemon.beauty+=3.5 pokemon.beauty=255 if pokemon.beauty>255 pokemon.cool+=3.5 pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=8.5 pokemon.sheen=255 if pokemon.sheen>255 scene.pbDisplay(_INTL("{1} ate the {2}! It seems to dislike the taste.",pokemon.name,PBItems.getName(item))) return 3 end })