Use fixed point arithmetic for progress/quality

This commit is contained in:
Asriel Camora
2023-11-04 11:43:34 -07:00
parent 9ca83bfe23
commit d08fedb247
23 changed files with 44 additions and 42 deletions
+2 -2
View File
@@ -10,10 +10,10 @@ internal sealed class Groundwork : BaseAction
public override int DurabilityCost => 20;
public override int CPCost(Simulator s) => 18;
public override float Efficiency(Simulator s)
public override int Efficiency(Simulator s)
{
// Groundwork Mastery Trait
var ret = s.Input.Stats.Level >= 86 ? 3.60f : 3.00f;
var ret = s.Input.Stats.Level >= 86 ? 360 : 300;
return s.Durability < s.CalculateDurabilityCost(DurabilityCost) ? ret / 2 : ret;
}
}