예제 #1
0
 public AttributeHandler(EnhanceType type, string name, string description, int maxValue, int incrementValue, bool armor, bool weapon, bool jewelry, bool spellbook, bool shield)
 {
     Type           = type;
     Name           = name;
     Description    = description;
     MaxValue       = maxValue;
     IncrementValue = incrementValue;
     AllowArmor     = armor;
     AllowWeapon    = weapon;
     AllowJewelry   = jewelry;
     AllowSpellbook = spellbook;
     AllowShield    = shield;
 }
예제 #2
0
        protected void SetBuffText(EnhanceType enhanceType, int factor)
        {
            switch (enhanceType)
            {
            case EnhanceType.AttackBuff:
                buffText = string.Format("攻{0}", factor);
                break;

            case EnhanceType.DefenseBuff:
                buffText = string.Format("防{0}", factor);
                break;

            case EnhanceType.HpBuff:
                buffText = string.Format("体{0}", factor);
                break;

            case EnhanceType.Invalid:
            default:
                break;
            }
        }
예제 #3
0
 static public ShipGear GetShipJadeEff(EnhanceType type, int effectID)
 {
     return(_jadeEffectsSG.Where(effect => (int)effect.EnhType == (int)type).Where(effect => effect.EnhanceID == effectID).ToArray()[0]);
 }