Class RangeStatChange


  • public class RangeStatChange
    extends StatChange
    A stat change which can result in different magnitudes of change to the stat
    • Constructor Detail

      • RangeStatChange

        public RangeStatChange()
    • Method Detail

      • getFormattedRelative

        public String getFormattedRelative()
        Returns a human-readable formatted relative boost. Should be the boost range in the format "±N" (for minimum -N and maximum +N values), "+MIN~MAX" (for minimum and maximum values of the same sign), "-MIN~+MAX" (for negative minimum and positive maximum values), or "+MAX" (for equal minimum and maximum values).
        Overrides:
        getFormattedRelative in class StatChange
        Returns:
        The formatted relative boost amount
      • getFormattedTheoretical

        public String getFormattedTheoretical()
        Returns a human-readable formatted theoretical boost. Should be the boost range in the format "±N" (for minimum -N and maximum +N values), "+MIN~MAX" (for minimum and maximum values of the same sign), "-MIN~+MAX" (for negative minimum and positive maximum values), or "+MAX" (for equal minimum and maximum values).
        Overrides:
        getFormattedTheoretical in class StatChange
        Returns:
        The formatted theoretical boost amount
      • getMinRelative

        public int getMinRelative()
        Minimum relative change that will occur if the stat boost is applied now. In this class, relative is representative of the maximum relative change that will occur.
      • getMinTheoretical

        public int getMinTheoretical()
        Minimum theoretical change that can occur before boost cap is enforced. In this class, theoretical is representative of the maximum theoretical change that will occur.
      • getMinAbsolute

        public int getMinAbsolute()
        Minimum absolute total of the stat after applying the boost. In this class, absolute is representative of the maximum absolute change that will occur.
      • setMinRelative

        public void setMinRelative​(int minRelative)
        Minimum relative change that will occur if the stat boost is applied now. In this class, relative is representative of the maximum relative change that will occur.
      • setMinTheoretical

        public void setMinTheoretical​(int minTheoretical)
        Minimum theoretical change that can occur before boost cap is enforced. In this class, theoretical is representative of the maximum theoretical change that will occur.
      • setMinAbsolute

        public void setMinAbsolute​(int minAbsolute)
        Minimum absolute total of the stat after applying the boost. In this class, absolute is representative of the maximum absolute change that will occur.