{
  name: "Iapapa Berry",
  spritenum: 217,
  isBerry: true,
  naturalGift: {
  	basePower: 80,
  	type: "Dark",
  },
  onUpdate(pokemon) {
  	if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&
  			pokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {
  		pokemon.eatItem();
  	}
  },
  onTryEatItem(item, pokemon) {
  	if (!this.runEvent('TryHeal', pokemon, null, this.effect, pokemon.baseMaxhp / 3)) return false;
  },
  onEat(pokemon) {
  	this.heal(pokemon.baseMaxhp / 3);
  	if (pokemon.getNature().minus === 'def') {
  		pokemon.addVolatile('confusion');
  	}
  },
  num: 163,
  gen: 3,
}