Java Code Examples for com.megacrit.cardcrawl.dungeons.AbstractDungeon#returnRandomCurse()

The following examples show how to use com.megacrit.cardcrawl.dungeons.AbstractDungeon#returnRandomCurse() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Strife.java    From jorbs-spire-mod with MIT License 5 votes vote down vote up
@Override
public void use(AbstractPlayer p, AbstractMonster abstractMonster) {
    for (int i = 0; i < urMagicNumber; ++i) {
        AbstractCard c = AbstractDungeon.returnRandomCurse();
        addToBot(new MakeTempCardInDiscardAction(c, 1));
    }
    addToBot(new ApplyPowerAction(p, p, new StrengthPower(p, magicNumber)));
}
 
Example 2
Source File: WastingForm.java    From jorbs-spire-mod with MIT License 5 votes vote down vote up
@Override
public void use(AbstractPlayer p, AbstractMonster m) {
    for (int i = 0; i < metaMagicNumber; i++) {
        AbstractCard c = AbstractDungeon.returnRandomCurse();
        AbstractDungeon.actionManager.addToBottom(new MakeTempCardInDiscardAction(c, 1));
    }
    addToBot(new ApplyPowerAction(p, p, new WastingFormPower(p, magicNumber, metaMagicNumber)));
}
 
Example 3
Source File: Brooding.java    From jorbs-spire-mod with MIT License 4 votes vote down vote up
@Override
public void use(AbstractPlayer p, AbstractMonster abstractMonster) {
    addToBot(new DrawCardAction(p, magicNumber));
    AbstractCard c = AbstractDungeon.returnRandomCurse();
    addToBot(new MakeTempCardInDiscardAction(c, CURSE_AMOUNT));
}
 
Example 4
Source File: PathosPower.java    From jorbs-spire-mod with MIT License 4 votes vote down vote up
@Override
public void onUseCard(AbstractCard card, UseCardAction action) {
    this.flash();
    AbstractCard c = AbstractDungeon.returnRandomCurse();
    AbstractDungeon.actionManager.addToBottom(new MakeTempCardInDiscardAction(c, 1));
}