Exemplo n.º 1
0
 /// <summary>
 /// This method handles assigning your stats when you either load your stats or equip an item as all stats need to be recalculated when something like this happens.
 /// </summary>
 public void LoadStatsFromEverything()
 {
     // We set our current damage based on our default values and our equipment we are wearing.
     playerStats.SetCurrentDamageFromEquipment(playerEquipment.GetEquipmentDamage());
     // We set our max health based on our default values and our equipment we are wearing.
     playerStats.SetMaxHealthFromEquipment(playerEquipment.GetEquipmentHealth());
     // We set our max mana based on our default values and our equipment we are wearing.
     playerStats.SetMaxManaFromEquipment(playerEquipment.GetEquipmentMana());
     // We set our current movement speed based on our default values and our equipment we are wearing.
     playerStats.SetCurrentMovementSpeedFromEquipment(playerEquipment.GetEquipmentMovementSpeed());
 }