public Item(string name, int strength, int magic, int speed, int intelligence, int reaction, int initiative, int awareness, int wisdom, int range, int cost, int handReq, int defense, Effect[] effect, bool addEffect = false) { initializeObject(); this.name = name; this.strength.currentLevel = this.strength.normalLevel = strength; this.magic.currentLevel = this.magic.normalLevel = magic; this.speed.currentLevel = this.speed.normalLevel = speed; this.intelligence.currentLevel = this.intelligence.normalLevel = intelligence; this.reaction.currentLevel = this.reaction.normalLevel = reaction; this.initiative.currentLevel = this.initiative.normalLevel = initiative; this.awareness.currentLevel = this.awareness.normalLevel = awareness; this.wisdom.currentLevel = this.wisdom.normalLevel = wisdom; this.range = range; this.cost = cost; this.handReq = handReq; if (addEffect == false) { effect = new Effect[] { EffectList.effectSkill(health) } } ; else { effects = effect; } }
private static void initializeTestSpell() { Effect[] e = new Effect[] { EffectList.effectSkill(obj.health) }; testSpell = new Ability("Test", 1, 5, 5, 5, 1, e, 1, 5, false); }