Skip to content

Commit

Permalink
Fix light intesnity on spells
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolpango committed Jan 10, 2024
1 parent 218ae03 commit ec8bf48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lone-wanderer-game/Spells/Spell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public virtual void LoadContent(ContentManager content)
SoundEffect = content.Load<SoundEffect>($"Sounds/{Sound}");
if (LightSize is not null && LightColor is not null)
{
lightIndex = Game1.Game.LightHandler.AddLight(CenterPosition, LightSize ?? Vector2.Zero, LightColor ?? Color.White, 0.5f);
lightIndex = Game1.Game.LightHandler.AddLight(CenterPosition, LightSize ?? Vector2.Zero, LightColor ?? Color.White, LightIntensity ?? 0);
}
}
public RectangleF CollisionRectangle
Expand Down

0 comments on commit ec8bf48

Please sign in to comment.