コード例 #1
0
    public EquipItemExceedData GetEquipItemExceedData(RARITY_TYPE rarity, GET_TYPE getType, int eventId = 0)
    {
        if (tableData == null)
        {
            return(null);
        }
        if (getType != GET_TYPE.EVENT)
        {
            eventId = 0;
        }
        UIntKeyTable <EquipItemExceedData> uIntKeyTable = tableData.Get((uint)rarity);

        if (uIntKeyTable == null)
        {
            Log.Error("EquipItemExceedTable is NULL :: rarity = {0}( {1} )", rarity, (uint)rarity);
            return(null);
        }
        EquipItemExceedData equipItemExceedData = uIntKeyTable.Find((EquipItemExceedData data) => data.getType == getType && data.eventId == eventId);

        if (equipItemExceedData == null)
        {
            if (getType == GET_TYPE.EVENT)
            {
                equipItemExceedData = uIntKeyTable.Find((EquipItemExceedData data) => data.getType == GET_TYPE.FREE && data.eventId == 0);
            }
            else
            {
                Log.Warning("EquipItemExceedTable is NULL :: getType = {0}, eventId = {1}", getType, eventId);
            }
        }
        return(equipItemExceedData);
    }
コード例 #2
0
 public ExceedSkillItemData GetExceedSkillItemData(int exceedCnt)
 {
     if (exceedCnt == 0)
     {
         return(null);
     }
     return(exceedSkillItemTable.Find((ExceedSkillItemData x) => x.startAt <= TimeManager.GetNow() && x.exceedCnt == exceedCnt));
 }
コード例 #3
0
 public EvolveEquipItemData GetEvolveEquipItemDataFromEvolveEquipId(uint evolve_equip_id)
 {
     if (tableData == null)
     {
         return(null);
     }
     return(tableData.Find((EvolveEquipItemData table) => table.equipEvolveItemID == evolve_equip_id));
 }
コード例 #4
0
 public AchievementIdData GetByTask(int taskId)
 {
     if (achievementIdDataTable == null)
     {
         return(null);
     }
     return(achievementIdDataTable.Find((AchievementIdData x) => x.taskId == taskId));
 }
コード例 #5
0
    public bool IsFreeLapis(RARITY_TYPE rarity, uint lapis_item_id, int eventId = 0)
    {
        if (tableData == null)
        {
            return(true);
        }
        UIntKeyTable <EquipItemExceedData> uIntKeyTable = tableData.Get((uint)rarity);

        if (uIntKeyTable == null)
        {
            return(true);
        }
        EquipItemExceedData equipItemExceedData = uIntKeyTable.Find((EquipItemExceedData data) => data.exchangeItemId == lapis_item_id && data.eventId == eventId);

        if (equipItemExceedData == null)
        {
            return(true);
        }
        return(equipItemExceedData.getType != GET_TYPE.PAY);
    }
コード例 #6
0
 public CreateEquipItemData GetCreateItemDataByEquipItem(uint equipId)
 {
     return(tableData.Find((CreateEquipItemData x) => x.equipItemID == equipId));
 }