Beispiel #1
0
 private void getStats(CharacterClassLibrary.Player player)
 {
     foreach (var item in player.Items)
     {
         player.Health     += item.Health;
         player.MaxHealth   = player.Health;
         player.Strength   += item.Strength;
         player.SpellPower += item.Spellpower;
         player.Armor      += item.Armor;
         player.Crit       += item.Crit;
     }
 }
Beispiel #2
0
 private CharacterClassLibrary.Player getStats(CharacterClassLibrary.Player character, DAO.Player player)
 {
     character.Armor      = player.Armor;
     character.ClassName  = (ClassName)player.Class;
     character.Crit       = player.Crit;
     character.Health     = player.Health;
     character.Level      = player.Level;
     character.SpellPower = player.SpellPower;
     character.Name       = player.Id;
     character.Strength   = player.Strength;
     character.Xp         = player.Xp;
     return(character);
 }