//////////////// 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 ); } }
//////////////// 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(); } } } }
public override void UpdateLifeRegen() { GreenHellPlayerLogic.UpdateLifeEffectsIfInfection(this.player); GreenHellPlayerLogic.UpdateLifeEffectsIfParasites(this.player); }