コード例 #1
0
ファイル: Character.cs プロジェクト: kales5/rpg_googolplex
 public virtual CharacterFluentAttributes GetModifiedFluentAttributes()
 {
     var combinedFluentAttributesEffect = new CharacterFluentAttributes();
     foreach(var item in Eqipped)
     {
         combinedFluentAttributesEffect += item.FluentAttributesEffekts; 
     }
     return combinedFluentAttributesEffect + BaseFluentAttributes;
 }
コード例 #2
0
        public void AddAttributesWithMaximum(CharacterFluentAttributes addableAttirbutes, CharacterFluentAttributes maximumAttributes)
        {
            this.LifePoints += addableAttirbutes.LifePoints;

            if (this.LifePoints > maximumAttributes.LifePoints)
            {
                this.LifePoints = maximumAttributes.LifePoints;
            }
        }
コード例 #3
0
        public void AddAttributesWithMaximum(CharacterFluentAttributes addableAttirbutes, CharacterFluentAttributes maximumAttributes)
        {
            this.LifePoints += addableAttirbutes.LifePoints;

            if(this.LifePoints > maximumAttributes.LifePoints)
            {
                this.LifePoints = maximumAttributes.LifePoints;
            }
        }
コード例 #4
0
ファイル: Character.cs プロジェクト: kales5/rpg_googolplex
        public virtual CharacterFluentAttributes GetModifiedFluentAttributes()
        {
            var combinedFluentAttributesEffect = new CharacterFluentAttributes();

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