public static string GetExplanationText(SkillItemTable.SkillItemData table_data, int level) { GrowSkillItemTable.GrowSkillItemData grow_data = Singleton <GrowSkillItemTable> .I.GetGrowSkillItemData(table_data.growID, level); string text = GetExplanationText(table_data.text, (EXPLANATION_COMMAND cmd) => GetStatusText(cmd, table_data, grow_data, level)); int num = grow_data.exceedCnt; if (level >= table_data.GetMaxLv(0) && (Singleton <ExceedSkillItemTable> .I.IsExistExceed(num + 1) || num > 0)) { text = text + "\n" + GetExceedExplanationText(num); } return(text); }
private void SkillTableParam(SkillItemTable.SkillItemData table_data) { SetActive(detailBase, UI.OBJ_SUB_STATUS, true); SetLabelText(detailBase, UI.LBL_NAME, table_data.name); SetLabelText(detailBase, UI.LBL_LV_NOW, "1"); SetLabelText(detailBase, UI.LBL_LV_MAX, table_data.GetMaxLv(0).ToString()); SetLabelText(detailBase, UI.LBL_ATK, table_data.baseAtk.ToString()); SetLabelText(detailBase, UI.LBL_DEF, table_data.baseDef.ToString()); SetLabelText(detailBase, UI.LBL_HP, table_data.baseHp.ToString()); SetLabelText(detailBase, UI.LBL_SELL, table_data.baseSell.ToString()); SetLabelText(detailBase, UI.LBL_DESCRIPTION, table_data.GetExplanationText(1)); SetActive(detailBase, UI.OBJ_FAVORITE_ROOT, false); SetRenderSkillItemModel((Enum)UI.TEX_MODEL, table_data.id, true, false); SetRenderSkillItemSymbolModel((Enum)UI.TEX_INNER_MODEL, table_data.id, true); SetProgressInt(detailBase, UI.PRG_EXP_BAR, 0, -1, -1, null); SetSkillSlotTypeIcon(detailBase, UI.SPR_SKILL_TYPE_ICON, UI.SPR_SKILL_TYPE_ICON_BG, UI.SPR_SKILL_TYPE_ICON_RARITY, table_data); }
public bool IsLevelMax() { return(level >= tableData.GetMaxLv(0)); }