Java Code Examples for com.megacrit.cardcrawl.core.Settings#ACTION_DUR_FAST
The following examples show how to use
com.megacrit.cardcrawl.core.Settings#ACTION_DUR_FAST .
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: DiscoveryAtCostAction.java From jorbs-spire-mod with MIT License | 6 votes |
public void update() { if (duration == Settings.ACTION_DUR_FAST) { AbstractDungeon.cardRewardScreen.customCombatOpen(cardChoices, CardRewardScreen.TEXT[1], isSkippable); } else { if (!retrieveCard) { if (AbstractDungeon.cardRewardScreen.discoveryCard != null) { int copiesToGenerate = 1 + ExtraCopiesToAddWhenGeneratingCardField.field.get(AbstractDungeon.cardRewardScreen.discoveryCard); for (int i = 0; i < copiesToGenerate; ++i) { AbstractCard discoveredCard = AbstractDungeon.cardRewardScreen.discoveryCard.makeStatEquivalentCopy(); discoveredCard.current_x = -1000.0F * Settings.scale; if (AbstractDungeon.player.hand.size() < 10) { AbstractDungeon.effectList.add( new ShowCardAndAddToHandEffect(discoveredCard, Settings.WIDTH / 2.0F, Settings.HEIGHT / 2.0F)); } else { AbstractDungeon.effectList.add( new ShowCardAndAddToDiscardEffect(discoveredCard, Settings.WIDTH / 2.0F, Settings.HEIGHT / 2.0F)); } } AbstractDungeon.cardRewardScreen.discoveryCard = null; } retrieveCard = true; } } tickDuration(); }
Example 2
Source File: ReplayThisAction.java From FruityMod-StS with MIT License | 6 votes |
public void update() { if (this.duration == Settings.ACTION_DUR_FAST) {// 26 AbstractMonster m = AbstractDungeon.getRandomMonster(); AbstractCard tmp = funCard.makeSameInstanceOf();// 56 AbstractDungeon.player.limbo.addToBottom(tmp);// 57 tmp.current_x = funCard.current_x;// 58 tmp.current_y = funCard.current_y;// 59 tmp.target_x = (float) Settings.WIDTH / 2.0F - 300.0F * Settings.scale;// 60 tmp.target_y = (float) Settings.HEIGHT / 2.0F;// 61 tmp.applyPowers();// 68 if (tmp.cost > 0) {// 63 tmp.freeToPlayOnce = true;// 64 } if (m != null) {// 67 tmp.calculateCardDamage(m);// 68 } tmp.purgeOnUse = true;// 71 AbstractDungeon.actionManager.cardQueue.add(new CardQueueItem(tmp, m, funCard.energyOnUse, true)); } this.isDone = true;// 79 }
Example 3
Source File: DecreaseMaxHpAction.java From jorbs-spire-mod with MIT License | 6 votes |
public DecreaseMaxHpAction(AbstractCreature target, AbstractCreature source, int amount, AttackEffect effect) { this.effect = effect; this.amount = amount; this.target = target; this.source = source; // This has the side effect of making the decrease still happen if an associated effect just recently ended combat. this.actionType = ActionType.DAMAGE; if (Settings.FAST_MODE) { this.startDuration = Settings.ACTION_DUR_XFAST; } else { this.startDuration = Settings.ACTION_DUR_FAST; } this.duration = this.startDuration; }
Example 4
Source File: DamageWithOnKillEffectAction.java From jorbs-spire-mod with MIT License | 5 votes |
public DamageWithOnKillEffectAction(AbstractCreature target, DamageInfo info, Runnable onKillCallback, boolean worksOnMinions) { this.info = info; this.setValues(target, info); this.actionType = ActionType.DAMAGE; this.duration = Settings.ACTION_DUR_FAST; this.onKillCallback = onKillCallback; this.worksOnMinions = worksOnMinions; }
Example 5
Source File: EclipseAction.java From FruityMod-StS with MIT License | 5 votes |
public EclipseAction(AbstractMonster target) { this.p = AbstractDungeon.player; this.setValues(this.p, AbstractDungeon.player, this.amount); this.actionType = AbstractGameAction.ActionType.CARD_MANIPULATION; this.duration = Settings.ACTION_DUR_FAST; this.target = target; }
Example 6
Source File: TriggerPassiveAction.java From StSLib with MIT License | 5 votes |
@Override public void update() { if (duration == Settings.ACTION_DUR_FAST && !AbstractDungeon.player.orbs.isEmpty()) { for (int i = 0; i < amount; i++) { targetOrb.onStartOfTurn(); targetOrb.onEndOfTurn(); } } tickDuration(); }
Example 7
Source File: TriggerPassiveAction.java From StSLib with MIT License | 5 votes |
public TriggerPassiveAction(AbstractOrb targetOrb, int amount) { duration = Settings.ACTION_DUR_FAST; this.targetOrb = targetOrb; this.amount = amount; if (AbstractDungeon.player.hasRelic(GoldPlatedCables.ID) && AbstractDungeon.player.orbs.get(0) == targetOrb) { amount++; } }
Example 8
Source File: EvokeSpecificOrbAction.java From StSLib with MIT License | 5 votes |
@Override public void update() { if (duration == Settings.ACTION_DUR_FAST) { if (orb != null) { AbstractDungeon.player.orbs.remove(orb); AbstractDungeon.player.orbs.add(0, orb); AbstractDungeon.player.evokeOrb(); } } this.tickDuration(); }
Example 9
Source File: StunMonsterAction.java From StSLib with MIT License | 5 votes |
@Override public void update() { if (duration == Settings.ACTION_DUR_FAST) { AbstractDungeon.actionManager.addToTop(new ApplyPowerAction(target, source, new StunMonsterPower((AbstractMonster) target, amount), amount)); } tickDuration(); }
Example 10
Source File: StunMonsterAction.java From StSLib with MIT License | 5 votes |
public StunMonsterAction(AbstractMonster target, AbstractCreature source, int amount) { this.target = target; this.source = source; this.amount = amount; actionType = AbstractGameAction.ActionType.DEBUFF; duration = Settings.ACTION_DUR_FAST; }
Example 11
Source File: ExposeAction.java From jorbs-spire-mod with MIT License | 5 votes |
public ExposeAction(AbstractCreature target, DamageInfo info, int hpLoss) { this.info = info; this.setValues(target, info); this.actionType = ActionType.DAMAGE; this.duration = baseDuration = Settings.ACTION_DUR_FAST; this.hpLoss = hpLoss; }
Example 12
Source File: DamageSomeEnemiesAction.java From FruityMod-StS with MIT License | 5 votes |
public DamageSomeEnemiesAction(AbstractCreature source, boolean[] targets, int[] amount, DamageInfo.DamageType type, AbstractGameAction.AttackEffect effect, boolean isFast) { this.setValues(null, source, amount[0]); this.damage = amount; this.targets = targets; this.actionType = AbstractGameAction.ActionType.DAMAGE; this.damageType = type; this.attackEffect = effect; this.duration = isFast ? Settings.ACTION_DUR_XFAST : Settings.ACTION_DUR_FAST; int targetCount = 0; for (boolean target : targets) { if (target) ++targetCount; } this.targetsAll = targetCount == targets.length; }
Example 13
Source File: DamageAllEnemiesWithOnKillEffectAction.java From jorbs-spire-mod with MIT License | 5 votes |
public DamageAllEnemiesWithOnKillEffectAction(AbstractCreature source, int[] amount, DamageType type, AttackEffect effect, Runnable onKillCallback, boolean worksOnMinions) { this.firstFrame = true; this.utilizeBaseDamage = false; this.source = source; this.damage = amount; this.actionType = ActionType.DAMAGE; this.damageType = type; this.attackEffect = effect; this.onKillCallback = onKillCallback; this.worksOnMinions = worksOnMinions; this.duration = Settings.ACTION_DUR_FAST; }
Example 14
Source File: SummoningAction.java From jorbs-spire-mod with MIT License | 4 votes |
public SummoningAction(int numberOfCards) { this.actionType = ActionType.CARD_MANIPULATION; this.duration = this.startDuration = Settings.ACTION_DUR_FAST; this.player = AbstractDungeon.player; this.numberOfCards = numberOfCards; }
Example 15
Source File: PileToHandAction.java From jorbs-spire-mod with MIT License | 4 votes |
public PileToHandAction(CardGroup originalPile, AbstractCard card) { this.originalPile = originalPile; this.actionType = ActionType.CARD_MANIPULATION; this.card = card; this.duration = Settings.ACTION_DUR_FAST; }
Example 16
Source File: ConvergenceAction.java From FruityMod-StS with MIT License | 4 votes |
public ConvergenceAction(boolean upgraded) { this.actionType = AbstractGameAction.ActionType.CARD_MANIPULATION; this.p = AbstractDungeon.player; this.duration = Settings.ACTION_DUR_FAST; this.upgraded = upgraded; }
Example 17
Source File: ReplayThisAction.java From FruityMod-StS with MIT License | 4 votes |
public ReplayThisAction(AbstractCard card) { this.duration = Settings.ACTION_DUR_FAST;// 17 this.actionType = ActionType.WAIT;// 18 this.source = AbstractDungeon.player;// 19 this.funCard = card; }
Example 18
Source File: ExhumeCardsAction.java From jorbs-spire-mod with MIT License | 4 votes |
public ExhumeCardsAction(Predicate<AbstractCard> shouldApplyToCardPredicate) { this.actionType = AbstractGameAction.ActionType.CARD_MANIPULATION; this.duration = Settings.ACTION_DUR_FAST; this.shouldApplyToCardPredicate = shouldApplyToCardPredicate; }
Example 19
Source File: DiscoveryAtCostAction.java From jorbs-spire-mod with MIT License | 4 votes |
public DiscoveryAtCostAction(ArrayList<AbstractCard> cardChoices, boolean isSkippable) { this.cardChoices = cardChoices; this.isSkippable = isSkippable; actionType = ActionType.CARD_MANIPULATION; duration = Settings.ACTION_DUR_FAST; }
Example 20
Source File: CoronaAction.java From FruityMod-StS with MIT License | 4 votes |
public CoronaAction() { this.actionType = AbstractGameAction.ActionType.CARD_MANIPULATION; this.p = AbstractDungeon.player; this.duration = Settings.ACTION_DUR_FAST; }