示例#1
0
        public static string GetItemPropString(ItemPropType propType, int value)
        {
            switch (propType)
            {
            case ItemPropType.tradeBlock:
                return(GetGearPropString(GearPropType.tradeBlock, value));

            case ItemPropType.tradeAvailable:
                return(GetGearPropString(GearPropType.tradeAvailable, value));

            case ItemPropType.only:
                return(GetGearPropString(GearPropType.only, value));

            case ItemPropType.accountSharable:
                return(GetGearPropString(GearPropType.accountSharable, value));

            case ItemPropType.quest:
                return(value == 0 ? null : "任务道具");

            case ItemPropType.pquest:
                return(value == 0 ? null : "组队任务道具");

            default:
                return(null);
            }
        }
示例#2
0
        public static string GetItemPropString(ItemPropType propType, int value)
        {
            switch (propType)
            {
            case ItemPropType.tradeBlock:
                return(GetGearPropString(GearPropType.tradeBlock, value));

            case ItemPropType.useTradeBlock:
                return(value == 0 ? null : "裝備後無法交換");

            case ItemPropType.tradeAvailable:
                return(GetGearPropString(GearPropType.tradeAvailable, value));

            case ItemPropType.only:
                return(GetGearPropString(GearPropType.only, value));

            case ItemPropType.accountSharable:
                return(GetGearPropString(GearPropType.accountSharable, value));

            case ItemPropType.quest:
                return(value == 0 ? null : "任務道具");

            case ItemPropType.pquest:
                return(value == 0 ? null : "組隊任務道具");

            case ItemPropType.permanent:
                return(value == 0 ? null : "魔法時間不會結束的奇幻寵物。");

            default:
                return(null);
            }
        }
示例#3
0
        public bool GetBooleanValue(ItemPropType type)
        {
            int value;

            return(this.Props.TryGetValue(type, out value) && value != 0);
        }