コード例 #1
0
        /// <summary>
        /// Used to process Yellow soul passives, if available.
        /// </summary>
        public override void PostUpdateEquips()
        {
            if (YellowSoulNet.soulNPC != 0 && !player.HasBuff(BuffType <YellowSoulDebuff>()))
            {
                BaseSoul soulReference = YellowSoul;
                soulReference.SoulUpdate(player, YellowSoulNet.stack);

                if (soulReference.cooldown > 0)
                {
                    player.AddBuff(BuffType <YellowSoulDebuff>(), soulReference.cooldown);
                }
            }

            RedSoul?.PostUpdate(player);
            BlueSoul?.PostUpdate(player);
            YellowSoul?.PostUpdate(player);
        }
コード例 #2
0
 public override void ModifyHitNPCWithProj(Projectile proj, NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
 => YellowSoul?.OnHitNPC(player, target, proj, ref damage, YellowSoulNet.stack);
コード例 #3
0
 public override void ModifyHitNPC(Item item, NPC target, ref int damage, ref float knockback, ref bool crit)
 => YellowSoul?.OnHitNPC(player, target, item, ref damage, YellowSoulNet.stack);