Exemple #1
0
 public CCultivator.CStats PutOn(CCultivator.CStats in_)
 {
     CCultivator.CStats out_ = in_;
     out_.MainStats.Agility      += Bonus.MainStats.Agility;
     out_.MainStats.Endurance    += Bonus.MainStats.Endurance;
     out_.MainStats.Intelligence += Bonus.MainStats.Intelligence;
     out_.MainStats.Strength     += Bonus.MainStats.Strength;
     out_.SubStats.Charisma      += Bonus.SubStats.Charisma;
     out_.SubStats.Luck          += Bonus.SubStats.Luck;
     out_.SubStats.Perception    += Bonus.SubStats.Perception;
     out_.Scales.Agility         *= Bonus.Scales.Agility;
     out_.Scales.Endurance       *= Bonus.Scales.Endurance;
     out_.Scales.Intelligence    *= Bonus.Scales.Intelligence;
     out_.Scales.Strength        *= Bonus.Scales.Strength;
     return(out_);
 }
Exemple #2
0
 public CEquipmentInventory(int id, CCultivator.CStats bonus)
 {
     Id    = id;
     Bonus = bonus.Copy();
 }
Exemple #3
0
 public CEquipmentDescription Use(CCultivator.CStats in_)
 {
     Bonus = in_.Copy();
     return(this);
 }