Skip to content

Commit

Permalink
Increase the power factor for 255 and 9999
Browse files Browse the repository at this point in the history
  • Loading branch information
Soof4 committed Jun 7, 2024
1 parent 21fa6a9 commit 37965d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TheObserver/TheObserver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class TheObserver : TerrariaPlugin
public override string Name => "The Observer";
public override string Description => "Detects unusual item activities";
public override string Author => "Soofa";
public override Version Version => new Version(0, 1, 6);
public override Version Version => new Version(0, 1, 7);
public TheObserver(Main game) : base(game) { }
public override void Initialize()
{
Expand Down Expand Up @@ -139,7 +139,7 @@ private static bool IsSus(int type, int stack)

private static int CalculateSlotValue(int type, int stack)
{
int dupePowFactor = stack == 255 || stack == 9999 ? 2 : 1;
int dupePowFactor = stack == 255 || stack == 9999 ? 3 : 1;
double value = Math.Pow(ContentSamples.ItemsByType[type].rare, dupePowFactor);
value = Math.Abs(value * stack);

Expand Down

0 comments on commit 37965d6

Please sign in to comment.