Skip to content

Commit 21cc333

Browse files
authored
Merge pull request #3 from Glasislundr/abilitybuilder
Removed some unneeded error logging
2 parents d65cba5 + bb20f40 commit 21cc333

5 files changed

Lines changed: 0 additions & 7 deletions

File tree

core/src/com/etheller/warsmash/viewer5/handlers/w3x/simulation/abilitybuilder/ability/CAbilityAbilityBuilderPassive.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public CAbilityAbilityBuilderPassive(int handleId, War3ID alias,
3535
@Override
3636
public void setLevel(int level) {
3737
super.setLevel(level);
38-
System.err.println("Set passive level to " + level);
3938
localStore.put(ABLocalStoreKeys.CURRENTLEVEL, level);
4039
if (config.getOnLevelChange() != null) {
4140
CSimulation game = (CSimulation) localStore.get(ABLocalStoreKeys.GAME);

core/src/com/etheller/warsmash/viewer5/handlers/w3x/simulation/abilitybuilder/ability/CAbilityAbilityBuilderTickingPassive.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public CAbilityAbilityBuilderTickingPassive(int handleId, War3ID alias,
3535
@Override
3636
public void setLevel(int level) {
3737
super.setLevel(level);
38-
System.err.println("Set passive level to " + level);
3938
localStore.put(ABLocalStoreKeys.CURRENTLEVEL, level);
4039
if (config.getOnLevelChange() != null) {
4140
CSimulation game = (CSimulation) localStore.get(ABLocalStoreKeys.GAME);
@@ -50,7 +49,6 @@ public void setLevel(int level) {
5049
public void onAdd(CSimulation game, CUnit unit) {
5150
localStore.put(ABLocalStoreKeys.GAME, game);
5251
localStore.put(ABLocalStoreKeys.THISUNIT, unit);
53-
System.err.println("Added ability");
5452
if (config.getOnAddAbility() != null) {
5553
for (ABAction action : config.getOnAddAbility()) {
5654
action.runAction(game, unit, localStore, 0);

core/src/com/etheller/warsmash/viewer5/handlers/w3x/simulation/abilitybuilder/behavior/action/buff/ABActionAddNonStackingDisplayBuff.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ public class ABActionAddNonStackingDisplayBuff implements ABAction {
1919

2020
public void runAction(final CSimulation game, final CUnit caster, final Map<String, Object> localStore, final int castId) {
2121
CBuff ability = buff.callback(game, caster, localStore, castId);
22-
System.err.println(game.getGameTurnTick() + " Trying to add " + ability.getHandleId());
2322
target.callback(game, caster, localStore, castId).addNonStackingDisplayBuff(game,
2423
key.callback(game, caster, localStore, castId), ability);
25-
System.err.println(game.getGameTurnTick() + " Tried to add " + ability.getHandleId());
2624
localStore.put(ABLocalStoreKeys.LASTADDEDBUFF, ability);
2725
}
2826
}

core/src/com/etheller/warsmash/viewer5/handlers/w3x/simulation/abilitybuilder/behavior/action/stats/ABActionUpdateNonStackingStatBuff.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public class ABActionUpdateNonStackingStatBuff implements ABAction {
1717

1818
public void runAction(final CSimulation game, final CUnit caster, final Map<String, Object> localStore, final int castId) {
1919
NonStackingStatBuff buffObj = buff.callback(game, caster, localStore, castId);
20-
System.err.println("Updating Stat buff to: " + value.callback(game, caster, localStore, castId));
2120
buffObj.setValue(value.callback(game, caster, localStore, castId));
2221
}
2322
}

core/src/com/etheller/warsmash/viewer5/handlers/w3x/simulation/abilitybuilder/behavior/condition/numeric/ABConditionFloatNe0.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public class ABConditionFloatNe0 implements ABCondition {
1515
public boolean evaluate(CSimulation game, CUnit caster, Map<String, Object> localStore, final int castId) {
1616
Float v = value.callback(game, caster, localStore, castId);
1717

18-
System.err.println("Checking value for non-zero: " + v + " and got " + (v!=0));
1918
return v!=0;
2019
}
2120

0 commit comments

Comments
 (0)