theForsaken/src/main/java/theForsaken/variables/SacrificeSoulVariable.java
@Override
    public int value(AbstractCard card)
    {
        AbstractPlayer player = AbstractDungeon.player;
        if (player != null) {
            Iterator powerIterator = player.powers.iterator();
            int buffsCount = 0;

            while (powerIterator.hasNext()) {
                AbstractPower p = (AbstractPower) powerIterator.next();
                if (p.type == AbstractPower.PowerType.BUFF) {
                    buffsCount += 1;
                }
            }

            return card.damage + card.magicNumber * buffsCount;
        }
        return card.damage;
    }
// In our case, it displays the damage the card would do, multiplied by the amount of energy the player currently has.
In our case, it displays the damage the card would do, multiplied by the amount of energy the player currently has.
In our case it displays the damage the card would do multiplied by the amount of energy the player currently has .
@Override
    public int value(AbstractCard card)
    {
        AbstractPlayer player = AbstractDungeon.player;
        if (player != null) {
            Iterator powerIterator = player.powers.iterator();
            int buffsCount = 0;
            while (powerIterator.hasNext()) {
                AbstractPower p = (AbstractPower) powerIterator.next();
                if (p.type == AbstractPower.PowerType.BUFF) {
                    buffsCount += 1;
                }
            }
            return card.damage + card.magicNumber * buffsCount;
        }
        return card.damage;
    }
@ Override public int value ( AbstractCard card ) { AbstractPlayer player = AbstractDungeon . player ; if ( player != null ) { Iterator powerIterator = player . powers . iterator ( ) ; int buffsCount = 0 ; while ( powerIterator . hasNext ( ) ) { AbstractPower p = ( AbstractPower ) powerIterator . next ( ) ; if ( p . type == AbstractPower . PowerType . BUFF ) { buffsCount += 1 ; } } return card . damage + card . magicNumber * buffsCount ; } return card . damage ; }
In our case, it displays the damage the card would do, multiplied by the amount of energy the player currently has.
In our case it displays the damage the card would do multiplied by the amount of energy the player currently has .