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; }
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; } }
static public ShipGear GetShipJadeEff(EnhanceType type, int effectID) { return(_jadeEffectsSG.Where(effect => (int)effect.EnhType == (int)type).Where(effect => effect.EnhanceID == effectID).ToArray()[0]); }