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); }
public ExceedSkillItemData GetExceedSkillItemData(int exceedCnt) { if (exceedCnt == 0) { return(null); } return(exceedSkillItemTable.Find((ExceedSkillItemData x) => x.startAt <= TimeManager.GetNow() && x.exceedCnt == exceedCnt)); }
public EvolveEquipItemData GetEvolveEquipItemDataFromEvolveEquipId(uint evolve_equip_id) { if (tableData == null) { return(null); } return(tableData.Find((EvolveEquipItemData table) => table.equipEvolveItemID == evolve_equip_id)); }
public AchievementIdData GetByTask(int taskId) { if (achievementIdDataTable == null) { return(null); } return(achievementIdDataTable.Find((AchievementIdData x) => x.taskId == taskId)); }
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); }
public CreateEquipItemData GetCreateItemDataByEquipItem(uint equipId) { return(tableData.Find((CreateEquipItemData x) => x.equipItemID == equipId)); }