コード例 #1
0
 /*
  * Often called as SetSkillHitStatus(BattleNPC.TakeDamage(),BattleNPC.IsAlive())
  * will determine how this Skill affected the target
  * @param: dmg     -- amount of damage skill did
  * @param: isAlive -- whether or not effected target is alive
  */
 protected override void SetSkillHitStatus(int damage, bool aliveStatus)
 {
     if (!aliveStatus && (damage > 0))
     {
         ParentSkill.UpdateHitState(Skill.HitState.Kill);
         return;
     }
     if (damage != 0)
     {
         ParentSkill.UpdateHitState(Skill.HitState.Hit);
         return;
     }
     ParentSkill.UpdateHitState(Skill.HitState.Miss);
 }
コード例 #2
0
 /*
  * Used to report HitStatus to Skill which is reported to VotingManager
  * Default is HitStatus doesn't apply (for non-damaging skills)
  */
 protected virtual void SetSkillHitStatus(int damage, bool aliveStatus)
 {
     ParentSkill.UpdateHitState(Skill.HitState.NotApplicable);
 }