public void setTargetParam(gameChar target, int field, int effectVal) { switch (field) { case 0: target.setCurrentHP(target.getCurrentHP() + effectVal); break; case 1: target.setCurrentMP(target.getCurrentMP() + effectVal); break; case 2: target.setAttMod(target.getAttMod() + effectVal); break; case 3: target.setDefMod(target.getDefMod() + effectVal); break; case 4: target.setIntMod(target.getIntMod() + effectVal); break; } }