Esempio n. 1
0
        private static void LoseExperience(PlayerInstance ch)
        {
            var lostXp = (int)((ch.GetExperienceLevel(ch.Level + 1) - ch.GetExperienceLevel(ch.Level)) * 0.1f);

            comm.act(ATTypes.AT_FLEE, $"Curse the gods, you've lost {lostXp} experience!", ch, null,
                     null, ToTypes.Character);
            ch.GainXP(0 - lostXp);
        }