Skip to content

Commit

Permalink
Added Pack Tactics : Ever 3 Stacks of Zomnbie now result in a 9 damag…
Browse files Browse the repository at this point in the history
…e hit instead of 3 3 damage hits to reduce the waiting time on Summon builds.
  • Loading branch information
shiki committed Mar 9, 2018
1 parent 1d88e28 commit dae8ab8
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 15 deletions.
Binary file modified bin/necromod/actions/common/CheckIfDeadAction.class
Binary file not shown.
Binary file modified bin/necromod/cards/Detonate_Bones.class
Binary file not shown.
Binary file modified bin/necromod/powers/DeathKnightPower.class
Binary file not shown.
Binary file modified bin/necromod/powers/VampireLadyPower.class
Binary file not shown.
Binary file modified bin/necromod/powers/VampirePrincessPower.class
Binary file not shown.
Binary file modified bin/necromod/powers/ZombiePower.class
Binary file not shown.
30 changes: 24 additions & 6 deletions src/main/java/necromod/actions/common/CheckIfDeadAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,30 @@ public void update() {
if (this.firstActivation) {
if(this.owner.hasPower("ZombiePower")) {
int ZP= this.owner.getPower("ZombiePower").amount;
this.ID = "ZombiePower";
int ZPPack = 0;

while(ZP >= 3) {
ZP = ZP - 3;
ZPPack++;
}

this.ID = "ZombiePower";
final AbstractMonster randomMonster = AbstractDungeon.getMonsters().getRandomMonster(true);
AbstractDungeon.actionManager.addToBottom(new CheckIfDeadAction(randomMonster, this.owner, this.DAMAGE_AMT, ZP, this.ID, false));
this.DAMAGE_AMT = 3;

if(ZPPack > 0) {
AbstractDungeon.actionManager.addToBottom(new CheckIfDeadAction(randomMonster, this.owner, 3*this.DAMAGE_AMT, ZPPack, this.ID, false));
}
if(ZP > 0) {
AbstractDungeon.actionManager.addToBottom(new CheckIfDeadAction(randomMonster, this.owner, this.DAMAGE_AMT, ZP, this.ID, false));
}

}

if(this.owner.hasPower("VampireLadyPower")) {
int VLP = this.owner.getPower("VampireLadyPower").amount;
this.ID = "VampireLadyPower";
this.DAMAGE_AMT = 4;
final AbstractMonster randomMonster = AbstractDungeon.getMonsters().getRandomMonster(true);
AbstractDungeon.actionManager.addToBottom(new CheckIfDeadAction(randomMonster, this.owner, this.DAMAGE_AMT, VLP, this.ID, false));

Expand All @@ -48,6 +64,7 @@ public void update() {
if(this.owner.hasPower("VampirePrincessPower")) {
int VPP = this.owner.getPower("VampirePrincessPower").amount;
this.ID = "VampirePrincessPower";
this.DAMAGE_AMT = 4;
final AbstractMonster randomMonster = AbstractDungeon.getMonsters().getRandomMonster(true);
AbstractDungeon.actionManager.addToBottom(new CheckIfDeadAction(randomMonster, this.owner, this.DAMAGE_AMT, VPP, this.ID, false));

Expand All @@ -56,6 +73,7 @@ public void update() {
if(this.owner.hasPower("DeathKnightPower")) {
int DKP = this.owner.getPower("DeathKnightPower").amount;
this.ID = "DeathKnightPower";
this.DAMAGE_AMT = 5;
final AbstractMonster randomMonster = AbstractDungeon.getMonsters().getRandomMonster(true);
AbstractDungeon.actionManager.addToBottom(new CheckIfDeadAction(randomMonster, this.owner, this.DAMAGE_AMT, DKP, this.ID, false));

Expand All @@ -75,19 +93,19 @@ public void update() {
}
if (this.target.currentHealth > 0) {
if(this.ID.equals("DeathKnightPower")) {
AbstractDungeon.actionManager.addToBottom(new DamageAction(this.target, new DamageInfo(this.owner, 5, DamageInfo.DamageType.THORNS), 0));
AbstractDungeon.actionManager.addToBottom(new DamageAction(this.target, new DamageInfo(this.owner, this.DAMAGE_AMT, DamageInfo.DamageType.THORNS), 0));
}

if(this.ID.equals("ZombiePower")) {
AbstractDungeon.actionManager.addToBottom(new DamageAction(this.target, new DamageInfo(this.owner, 3, DamageInfo.DamageType.THORNS), 0));
AbstractDungeon.actionManager.addToBottom(new DamageAction(this.target, new DamageInfo(this.owner, this.DAMAGE_AMT, DamageInfo.DamageType.THORNS), 0));
}

if(this.ID.equals("VampireLadyPower")){
AbstractDungeon.actionManager.addToBottom(new VampireDamageAction(this.target, new DamageInfo(this.owner, 3, DamageInfo.DamageType.THORNS), AbstractGameAction.AttackEffect.SLASH_VERTICAL));
AbstractDungeon.actionManager.addToBottom(new VampireDamageAction(this.target, new DamageInfo(this.owner, this.DAMAGE_AMT, DamageInfo.DamageType.THORNS), AbstractGameAction.AttackEffect.SLASH_VERTICAL));
}

if(this.ID.equals("VampirePrincessPower")){
AbstractDungeon.actionManager.addToBottom(new VampireDamageAction(this.target, new DamageInfo(this.owner, 3, DamageInfo.DamageType.THORNS), AbstractGameAction.AttackEffect.SLASH_VERTICAL));
AbstractDungeon.actionManager.addToBottom(new VampireDamageAction(this.target, new DamageInfo(this.owner, this.DAMAGE_AMT, DamageInfo.DamageType.THORNS), AbstractGameAction.AttackEffect.SLASH_VERTICAL));
}
AbstractDungeon.actionManager.addToTop(new WaitAction(0.05f));
/**test : for(int i =0; i <= numTime; i++{
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/necromod/cards/Detonate_Bones.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
import com.megacrit.cardcrawl.localization.*;
import com.megacrit.cardcrawl.characters.*;
import com.megacrit.cardcrawl.monsters.*;
import com.megacrit.cardcrawl.powers.StrengthPower;
import com.megacrit.cardcrawl.dungeons.*;
import com.megacrit.cardcrawl.vfx.*;
import com.megacrit.cardcrawl.cards.*;
import com.megacrit.cardcrawl.actions.*;
import com.megacrit.cardcrawl.actions.common.*;
import com.megacrit.cardcrawl.core.*;

Expand Down
1 change: 0 additions & 1 deletion src/main/java/necromod/powers/DeathKnightPower.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.megacrit.cardcrawl.monsters.*;

import necromod.NecroMod;
import necromod.actions.common.CheckIfDeadAction;

public class DeathKnightPower extends AbstractPower {
public static final String POWER_ID = "DeathKnightPower";
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/necromod/powers/VampireLadyPower.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package necromod.powers;

import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.powers.AbstractPower;
import com.megacrit.cardcrawl.monsters.*;

import necromod.NecroMod;
import necromod.actions.common.CheckIfDeadAction;


public class VampireLadyPower extends AbstractPower {
public static final String POWER_ID = "VampireLadyPower";
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/necromod/powers/VampirePrincessPower.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package necromod.powers;

import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.powers.AbstractPower;
import com.megacrit.cardcrawl.monsters.*;

import necromod.NecroMod;
import necromod.actions.common.CheckIfDeadAction;

public class VampirePrincessPower extends AbstractPower {
public static final String POWER_ID = "VampirePrincessPower";
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/necromod/powers/ZombiePower.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

//import com.megacrit.cardcrawl.actions.utility.WaitAction;
import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.powers.AbstractPower;
import com.megacrit.cardcrawl.monsters.*;

import necromod.NecroMod;
import necromod.actions.common.CheckIfDeadAction;

public class ZombiePower extends AbstractPower {
public static final String POWER_ID = "ZombiePower";
Expand Down

0 comments on commit dae8ab8

Please sign in to comment.