public static int GetUpgradeCostDianQuanByLevel(int guildLevel) { ResGuildLevel dataByKey = GameDataMgr.guildLevelDatabin.GetDataByKey((uint)((byte)guildLevel)); if (dataByKey != null) { return(dataByKey.iUpgradeCostCoupons); } DebugHelper.Assert(false, "CGuildHelper.GetUpgradeCostDianQuanByLevel(): resGuildLevel is null, guildLevel={0}", new object[] { guildLevel }); return(-1); }
public static int GetMaxGuildMemberCountByLevel(int guildLevel) { ResGuildLevel dataByKey = GameDataMgr.guildLevelDatabin.GetDataByKey((uint)((byte)guildLevel)); if (dataByKey != null) { return((int)dataByKey.bMaxMemberCnt); } DebugHelper.Assert(false, "CGuildHelper.GetMaxGuildMemberCountByLevel(): resGuildLevel is null, guildLevel={0}", new object[] { guildLevel }); return(-1); }