Exemple #1
0
 public virtual CharacterFluentAttributes GetModifiedFluentAttributes()
 {
     var combinedFluentAttributesEffect = new CharacterFluentAttributes();
     foreach(var item in Eqipped)
     {
         combinedFluentAttributesEffect += item.FluentAttributesEffekts; 
     }
     return combinedFluentAttributesEffect + BaseFluentAttributes;
 }
        public void AddAttributesWithMaximum(CharacterFluentAttributes addableAttirbutes, CharacterFluentAttributes maximumAttributes)
        {
            this.LifePoints += addableAttirbutes.LifePoints;

            if (this.LifePoints > maximumAttributes.LifePoints)
            {
                this.LifePoints = maximumAttributes.LifePoints;
            }
        }
        public void AddAttributesWithMaximum(CharacterFluentAttributes addableAttirbutes, CharacterFluentAttributes maximumAttributes)
        {
            this.LifePoints += addableAttirbutes.LifePoints;

            if(this.LifePoints > maximumAttributes.LifePoints)
            {
                this.LifePoints = maximumAttributes.LifePoints;
            }
        }
Exemple #4
0
        public virtual CharacterFluentAttributes GetModifiedFluentAttributes()
        {
            var combinedFluentAttributesEffect = new CharacterFluentAttributes();

            foreach (var item in Eqipped)
            {
                combinedFluentAttributesEffect += item.FluentAttributesEffekts;
            }
            return(combinedFluentAttributesEffect + BaseFluentAttributes);
        }