Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Fixed rounding issue causing the wrong crown to show up.
Browse files Browse the repository at this point in the history
resolves #26
  • Loading branch information
sir-wilhelm committed Apr 5, 2020
1 parent 5e967e7 commit 19263c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SmartHunter/Game/Data/Monster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public float ScaleModifier
}
}

public float ModifiedSizeScale => SizeScale / ScaleModifier;
public float ModifiedSizeScale => (float)Math.Round((decimal)(SizeScale / ScaleModifier), 2);

public float Size => ConfigHelper.MonsterData.Values.Monsters.TryGetValue(Id, out var config) ? config.BaseSize * ModifiedSizeScale : 0;

Expand Down

0 comments on commit 19263c7

Please sign in to comment.