public Boolean setPrimaryProperty(RuneStat.Property primaryStat)
 {
     if (validPrimaryStat(primaryStat))
     {
         _primary = primaryStat;
         return(true);
     }
     else
     {
         return(false);
     }
 }
        private int getPrimaryStatAmount(RuneStat.Property property, int level, int star)
        {
            int result = 0;

            if (level > 14)
            {
                result = (int)((_initialStatTable[(int)property, star - 1] + _statIncrementTable[(int)property, star - 1] * 14) * 1.2);
            }
            else
            {
                result = _initialStatTable[(int)property, star - 1] + _statIncrementTable[(int)property, star - 1] * level;
            }

            return(result);
        }
        private Boolean updatePrimary()
        {
            if (PrimaryPropertyCombo.SelectedItem != null)
            {
                RuneStat.Property runeProperty = RuneStat.toProperty((string)PrimaryPropertyCombo.SelectedItem);
                _rune.setPrimaryProperty(runeProperty);
                RuneStat stat = _rune.getPrimary();
                PrimaryPropertyOverall.Text = stat.property.ToString();
                PrimaryAmountOverall.Text   = _rune.getPrimary().amount.ToString();

                return(true);
            }
            else
            {
                return(false);
            }
        }
        private Boolean updateInherent()
        {
            if (InnatePropertyCombo.SelectedItem != null && InnateAmountCombo.SelectedItem != null)
            {
                RuneStat.Property runeProperty = RuneStat.toProperty((string)InnatePropertyCombo.SelectedItem);
                int runeAmount = (int)InnateAmountCombo.SelectedItem;
                _rune.setInherent(new RuneStat(runeProperty, runeAmount));
                RuneStat stat = _rune.getInherent();
                InnatePropertyOverall.Text = stat.property.ToString();
                InnateAmountOverall.Text   = stat.amount.ToString();

                return(true);
            }
            else
            {
                return(false);
            }
        }
 private Boolean validPrimaryStat(RuneStat.Property primaryStat)
 {
     return(true);
 }
 public static int[] getSecondaryIncrementRange(RuneStat.Property property, int star)
 {
     return(new int[2] {
         _upgradeAmountRange[(int)property, star - 1, 0], _upgradeAmountRange[(int)property, star - 1, 1]
     });
 }
 public static int[] getSecondaryBaseRange(RuneStat.Property property, int star)
 {
     return(new int[2] {
         _secondaryStatRange[(int)property, star - 1, 0], _secondaryStatRange[(int)property, star - 1, 1]
     });
 }