Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
675 B
2
Indexable
Never
    private void loadSpecialOrb(int xOffset) {
        Sprite image = ImageCache.get(specialHover ? 95 : 94);
        Sprite fill = ImageCache.get(specialEnabled ? 115 : 114);
        Sprite sword = ImageCache.get(116);
        Sprite orb = ImageCache.get(14);
        double percent = specialAttack / (double) 100;
        image.drawSprite(43 + xOffset, 132);
        fill.drawSprite(70 + xOffset, 135);
        orb.myHeight = (int) (26 * (1 - percent));
        orb.drawSprite(71 + xOffset, 135);
        sword.drawSprite(70 + xOffset, 136);
        smallText.method382(getOrbTextColor((int) (percent * 100)), 57 + xOffset, specialAttack + "", 158, true);
    }