Exemplo n.º 1
0
        private void AfterCombatAction(bool isImport, CombatActionEventArgs actionInfo)
        {
            if (CombatActionChecker.IsMySkill(actionInfo))
            {
                if (actorId == null)
                {
                    actorId = CombatActionChecker.GetActorId(actionInfo);
                }

                if (!CombatActionChecker.JudgeFlankOrRearSkill(actionInfo))
                {
                    AttackMissView.CountUp(actionInfo.theAttackType);

                    if (soundPlayer != null && ACTTabControl.IsSoundEnable())
                    {
                        soundPlayer.Play();
                    }
                }
            }
        }
Exemplo n.º 2
0
        private void OnLogLineRead(bool isImport, LogLineEventArgs logInfo)
        {
            String logLine = logInfo.logLine;

            // "[07:23:04.000] 15:FFFFFF"
            if (logLine.Length < 18)
            {
                return;
            }

            // 15: から始まるなら 戦闘スキル発動っぽい
            if (!logLine.Substring(15, 3).Equals("15:"))
            {
                return;
            }


            string[] lineDatas = logLine.Split(':');


            if (lineDatas.Length < 16)
            {
                return;
            }

            if (!lineDatas[3].Equals(actorId))
            {
                return;
            }

            if (!CombatActionChecker.JudgeFlankOrRearSkillForLog(lineDatas, actorId))
            {
                AttackMissView.CountUp(lineDatas[6]);

                if (soundPlayer != null && ACTTabControl.IsSoundEnable())
                {
                    soundPlayer.Play();
                }
            }
        }