Class Modifiers
java.lang.Object
fr.robie.machineengine.api.upgrade.Modifiers
Applies modifiers with the D16 stacking rule:
base → +ΣADD → ×(1+ΣADD_MULTIPLIED_BASE) → ×Π(1+MULTIPLY_TOTAL) → clamp. Integer math,
rounded down at each multiplication, so results are deterministic.-
Method Summary
Modifier and TypeMethodDescriptionstatic longapply(@NotNull ModifierType type, long base, @NotNull Iterable<Modifier> modifiers) Applies the modifiers oftypeamongmodifiers; others are ignored.
-
Method Details
-
apply
public static long apply(@NotNull @NotNull ModifierType type, long base, @NotNull @NotNull Iterable<Modifier> modifiers) Applies the modifiers oftypeamongmodifiers; others are ignored.
-