private static void appendHit2Update(final Player p, final PacketBuilder updateBlock) { updateBlock.putByteS((byte) p.getDamage().getHitDamage2()); updateBlock.putByteA(p.getDamage().getHitType2()); }
private static void appendHitUpdate(Player p, PacketBuilder updateBlock) { updateBlock.putByteS((byte) p.getDamage().getHitDamage1()); updateBlock.putByteS((byte) p.getDamage().getHitType1()); final int hpRatio = p.getSkills().getLevel(3) * 255 / p.getSkills().getLevelForExperience(3); updateBlock.putByteS((byte) hpRatio); }