Exemplo n.º 1
0
        ////////////////

        public override void Hurt(bool pvp, bool quiet, double damage, int hitDirection, bool crit)
        {
            if (Main.netMode != NetmodeID.MultiplayerClient)
            {
                GreenHellPlayerLogic.ApplyInfectionIf(
                    myplayer: this,
                    damage: damage,                    //crit ? damage * 2d : damage,
                    syncIfServer: Main.netMode == NetmodeID.Server
                    );
            }
        }
Exemplo n.º 2
0
        ////////////////

        public override void PreUpdate()
        {
            GreenHellPlayerLogic.UpdateInfectionStateIf(this);
            GreenHellPlayerLogic.UpdateBrambleStateIf(this);
            GreenHellPlayerLogic.UpdateParasiteStateIf(this.player);

            if (this.player.whoAmI == Main.myPlayer)
            {
                if (this.player.ZoneJungle)
                {
                    if (ModLoader.GetMod("Messages") != null)
                    {
                        GreenHellPlayer.GiveMessageAboutJungle_WeakRef();
                    }
                }
            }
        }
Exemplo n.º 3
0
 public override void UpdateLifeRegen()
 {
     GreenHellPlayerLogic.UpdateLifeEffectsIfInfection(this.player);
     GreenHellPlayerLogic.UpdateLifeEffectsIfParasites(this.player);
 }