Closed ProfHugo closed 7 years ago
getAffinityDepth returns a float (?) between 0 and 1 for how deep the player affinity is, not 0-100, so this
if (pAffinity.getAffinityDepth(Affinity.ARCANE) > 50) { float reduction = (float) (1 - (0.5 * pAffinity.getAffinityDepth(Affinity.ARCANE))); cost *= reduction; }
Will never run since getAffinityDepth cannot be more than 1, so I guess it should be 0.5 instead of 50
Note: This is getAffinityDepth:
public double getAffinityDepth(Affinity aff) { return DataSyncExtension.For(player).get(DataDefinitions.AFFINITY_DATA).get(aff) / MAX_DEPTH; }
Where MAX_DEPTH is 100f
good catch, im fixing like 3 things at once here so excuse any derps like this
don't rush it mate, keep up the good work!
getAffinityDepth returns a float (?) between 0 and 1 for how deep the player affinity is, not 0-100, so this
Will never run since getAffinityDepth cannot be more than 1, so I guess it should be 0.5 instead of 50
Note: This is getAffinityDepth:
Where MAX_DEPTH is 100f