/** * Get enemy hp percent. * * @return hp percent */ private static int hp() { return (npc != null) ? npc.getHpPercent() : 0; }