예제 #1
0
        public void OnHitCombatantListener(Hotfix_LT.Combat.CombatHitDamageEvent e)
        {
            Hotfix_LT.Combat.Combatant combatant = e.TargetCombatant.GetComponent <Hotfix_LT.Combat.Combatant>();
            Vector3 offset = combatant.damageTextOffset;

            CombatDamagesHUD.eDamageTextType text_type = CombatDamagesHUD.eDamageTextType.Attack;
            if (e.ShowDamage < 0)
            {
                text_type = CombatDamagesHUD.eDamageTextType.Heal;
                offset    = combatant.healTextOffset;
            }
            else if (e.IsCrit)
            {
                text_type = CombatDamagesHUD.eDamageTextType.Crit;
            }
            ShowDamages(combatant.Data.Index.GetHashCode(), combatant.DamageTextTarget, offset, e.Shield > 0 ? e.Damage : e.ShowDamage, text_type);
        }
예제 #2
0
        static StackObject *Invoke_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            Hotfix_LT.Combat.CombatHitDamageEvent @obj = (Hotfix_LT.Combat.CombatHitDamageEvent) typeof(Hotfix_LT.Combat.CombatHitDamageEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Action <Hotfix_LT.Combat.CombatHitDamageEvent> instance_of_this_method = (System.Action <Hotfix_LT.Combat.CombatHitDamageEvent>) typeof(System.Action <Hotfix_LT.Combat.CombatHitDamageEvent>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Invoke(@obj);

            return(__ret);
        }
예제 #3
0
 void OnHitCombatantListener(Hotfix_LT.Combat.CombatHitDamageEvent e)
 {
     UpdateHP(e.TargetCombatant);
 }