Пример #1
0
 private void levelUp(int lastlevel)
 {
     if (lastlevel != player.Level)
     {
         player.MaxHP      = player.HPUp(player.Level);
         player.CurrentHP  = player.MaxHP;
         player.XP        -= lastlevel * 100;
         rtbMessages.Text += "Dosáhl si nového levelu." + Environment.NewLine;
     }
 }