Blaze tonics and hoarshrooms should check temperature before assigning new temperature from overdose

Issue #641 resolved
syntaxaire created an issue

The overdose effects for blaze tonic and hoarshroom assign new temperatures directly without checking to see if the player is already on fire or frozen. This means you can cool down by overdosing on blaze tonic or warm up by overdosing on hoarshroom.

XRL.World.Effects.Blaze_Tonic.cs

XRL.World.Effects.Hoarshroom_Tonic.cs

Suggestion example for blaze tonic: Instead of this.Object.pPhysics.Temperature = this.Object.pPhysics.FlameTemperature + 200;, check to see if the player temp is already >= this.Object.pPhysics.FlameTemperature+200, and if it is, add to it instead of resetting it.

Comments (3)

  1. Log in to comment