private void SetupBasicStates() { // health point AffectAttribute hpVitAffect = new AffectAttribute() { attr = this.GetCharAttribute(AttributeName.Vit), affectFactor = 10 }; BasicCharacterState hp = this.GetCharBasicCharacterState(BasicCharacterStateName.MaxHealthPoint); hp.AddAffectAttribute(hpVitAffect); // throw power AffectAttribute tpStrAffect = new AffectAttribute() { attr = this.GetCharAttribute(AttributeName.Str), affectFactor = 1 }; BasicCharacterState tp = this.GetCharBasicCharacterState(BasicCharacterStateName.ThrowPower); tp.AddAffectAttribute(tpStrAffect); // speed AffectAttribute spdStrAffect = new AffectAttribute() { attr = this.GetCharAttribute(AttributeName.Str), affectFactor = 2 }; AffectAttribute spdVitAffect = new AffectAttribute() { attr = this.GetCharAttribute(AttributeName.Vit), affectFactor = -1 }; BasicCharacterState spd = this.GetCharBasicCharacterState(BasicCharacterStateName.Speed); spd.AddAffectAttribute(spdStrAffect); spd.AddAffectAttribute(spdVitAffect); // stamina AffectAttribute stmVitAffect = new AffectAttribute() { attr = this.GetCharAttribute(AttributeName.Vit), affectFactor = 1 }; BasicCharacterState stm = this.GetCharBasicCharacterState(BasicCharacterStateName.Stamina); stm.AddAffectAttribute(stmVitAffect); }
public void AddAffectAttribute(AffectAttribute attr) { this.AffectAttributes.Add(attr); }