예제 #1
0
        public void HurtForTarget(Player player, int buff_idx)
        {
            var mymod     = (DowsingMod)this.mod;
            var modplayer = player.GetModPlayer <DowsingPlayer>();

            int damage = mymod.Config.Data.PsychokineticBacklashTargetDamageBase;

            Main.PlaySound(SoundID.Item70, player.Center);

            player.Hurt(PsychokineticChargeDebuff.GetDeathMessage(player), damage, 0);
        }
예제 #2
0
        ////////////////

        public void HurtForTiles(Player player, int buff_idx, IDictionary <int, ISet <int> > from_tiles)
        {
            var mymod     = (DowsingMod)this.mod;
            var modplayer = player.GetModPlayer <DowsingPlayer>();
            int count     = modplayer.TileData.CountDowsings();

            PsiBoltProjectile.Fire(mymod, player, from_tiles, true);

            int damage = mymod.Config.Data.PsychokineticBacklashTileDamageBase;

            damage += (count - 1) * mymod.Config.Data.PsychokineticBacklashDamageStack;

            player.Hurt(PsychokineticChargeDebuff.GetDeathMessage(player), damage, 0);
        }