Пример #1
0
        public CombatSenderHitEvent(Combatant sender, MoveEditor.HitEventInfo hit_event, CombatSkillEvent skill_event)
        {
            Sender     = sender;
            HitEvent   = hit_event;
            SkillEvent = skill_event;

            MoveEditor.PlayHitReactionProperties reaction_info = hit_event._hitRxnProps;
            Weight = reaction_info.totalWeight <= 0 ? 1.0f : (float)reaction_info.weight / (float)reaction_info.totalWeight;
        }
Пример #2
0
        public ReactionEffectEvent FindComboTriggerReaction(CombatSkillEvent combo_skill)
        {
            bool res = (bool)GlobalUtils.CallStaticHotfixEx("Hotfix_LT.Data.SkillTemplateManager", "Instance", "IsComBo", combo_skill.SkillId);

            if (!res)
            {
                return(null);
            }

            CombatantIndex trigger = combo_skill.Trigger;

            if (trigger == null)
            {
                return(null);
            }

            int len = m_children.Count;

            for (int i = 0; i < len; i++)
            {
                CombatEffectEvent effect = m_children[i] as CombatEffectEvent;
                if (effect.EffectType != eCombatEffectType.REACTION)
                {
                    continue;
                }

                if (!effect.Target.Equals(trigger))
                {
                    continue;
                }

                return(effect as ReactionEffectEvent);
            }

            return(null);
        }
Пример #3
0
 public CombatHitEndEvent(GameObject target, CombatSkillEvent skillEvent)
 {
     Target     = target;
     SkillEvent = skillEvent;
 }