Пример #1
0
        ////////////////

        public override void Update(Player player, ref int buffIndex)
        {
            if (!player.dead)
            {
                NecrotisBehavior.ApplyBehaviors(player, 1f, out this.LastMaxHpLost, out this.LastMovePercent);
            }
        }
        ////////////////

        public override void Update(Player player, ref int buffIndex)
        {
            if (player.dead)
            {
                return;
            }

            var   myplayer        = player.GetModPlayer <NecrotisPlayer>();
            float necrotisPercent = myplayer.NecrotisPercent;

            NecrotisBehavior.ApplyBehaviors(player, necrotisPercent, out this.LastMaxHpLost, out this.LastMovePercent);
        }