Exemplo n.º 1
0
 public void ServerOnShot(PlayerCharacterSkills skills)
 {
     if (this.ExperienceAddedPerShot > 0)
     {
         skills.ServerAddSkillExperience(this, this.ExperienceAddedPerShot);
     }
 }
Exemplo n.º 2
0
        public void ServerOnKill(PlayerCharacterSkills skills, ICharacter killedCharacter)
        {
            var maxHealth = killedCharacter.SharedGetFinalStatValue(StatName.HealthMax);

            skills.ServerAddSkillExperience(
                this,
                experience: maxHealth * this.ExperienceAddedOnKillPerMaxEnemyHealthMultiplier);
        }
Exemplo n.º 3
0
 public void ServerOnDamageApplied(
     PlayerCharacterSkills skills,
     IWorldObject damagedObject,
     double damageApplied)
 {
     if (damagedObject is ICharacter)
     {
         // apply experience only when the damage is applied to a character
         skills.ServerAddSkillExperience(this, damageApplied * this.ExperienceAddedPerDamageDoneMultiplier);
     }
 }