Renamed ClanLevelTable to ClanLevelData.

This commit is contained in:
MobiusDevelopment 2019-03-17 11:03:10 +00:00
parent edda542042
commit 104e56cab8
9 changed files with 18 additions and 18 deletions

View File

@ -19,13 +19,13 @@ package com.l2jmobius.gameserver.data.xml.impl;
/**
* @author Mobius
*/
public class ClanLevelTable
public class ClanLevelData
{
// TODO: Move to XML.
private final static int[] CLAN_LEVEL_REQUIREMENTS =
{
35000,
80000, // Level 2 requirement.
80000,
140000,
315000,
560000,

View File

@ -40,7 +40,7 @@ import com.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager;
import com.l2jmobius.gameserver.data.sql.impl.CharNameTable;
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
import com.l2jmobius.gameserver.data.sql.impl.CrestTable;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelTable;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelData;
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
import com.l2jmobius.gameserver.data.xml.impl.SkillTreesData;
import com.l2jmobius.gameserver.enums.ClanRewardType;
@ -2502,7 +2502,7 @@ public class L2Clan implements IIdentifiable, INamable
boolean increasedLevel = false;
if (_level < 15)
{
final int requiredReputation = ClanLevelTable.getLevelRequirement(_level);
final int requiredReputation = ClanLevelData.getLevelRequirement(_level);
if (requiredReputation <= _reputationScore)
{
setReputationScore(_reputationScore - requiredReputation, true);

View File

@ -17,7 +17,7 @@
package com.l2jmobius.gameserver.network.serverpackets.pledgeV2;
import com.l2jmobius.commons.network.PacketWriter;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelTable;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelData;
import com.l2jmobius.gameserver.model.L2Clan;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.network.OutgoingPackets;
@ -46,7 +46,7 @@ public class ExPledgeShowInfoUpdate extends AbstractItemPacket
OutgoingPackets.EX_PLEDGE_SHOW_INFO_UPDATE.writeId(packet);
packet.writeD(clan.getId()); // Pledge ID
packet.writeD(ClanLevelTable.getLevelRequirement(clan.getLevel())); // Next level cost
packet.writeD(ClanLevelData.getLevelRequirement(clan.getLevel())); // Next level cost
packet.writeD(0); // Max pledge members
packet.writeD(0); // Max elite members
return true;

View File

@ -19,13 +19,13 @@ package com.l2jmobius.gameserver.data.xml.impl;
/**
* @author Mobius
*/
public class ClanLevelTable
public class ClanLevelData
{
// TODO: Move to XML.
private final static int[] CLAN_LEVEL_REQUIREMENTS =
{
35000,
80000, // Level 2 requirement.
80000,
140000,
315000,
560000,

View File

@ -40,7 +40,7 @@ import com.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager;
import com.l2jmobius.gameserver.data.sql.impl.CharNameTable;
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
import com.l2jmobius.gameserver.data.sql.impl.CrestTable;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelTable;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelData;
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
import com.l2jmobius.gameserver.data.xml.impl.SkillTreesData;
import com.l2jmobius.gameserver.enums.ClanRewardType;
@ -2502,7 +2502,7 @@ public class L2Clan implements IIdentifiable, INamable
boolean increasedLevel = false;
if (_level < 15)
{
final int requiredReputation = ClanLevelTable.getLevelRequirement(_level);
final int requiredReputation = ClanLevelData.getLevelRequirement(_level);
if (requiredReputation <= _reputationScore)
{
setReputationScore(_reputationScore - requiredReputation, true);

View File

@ -17,7 +17,7 @@
package com.l2jmobius.gameserver.network.serverpackets.pledgeV2;
import com.l2jmobius.commons.network.PacketWriter;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelTable;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelData;
import com.l2jmobius.gameserver.model.L2Clan;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.network.OutgoingPackets;
@ -46,7 +46,7 @@ public class ExPledgeShowInfoUpdate extends AbstractItemPacket
OutgoingPackets.EX_PLEDGE_SHOW_INFO_UPDATE.writeId(packet);
packet.writeD(clan.getId()); // Pledge ID
packet.writeD(ClanLevelTable.getLevelRequirement(clan.getLevel())); // Next level cost
packet.writeD(ClanLevelData.getLevelRequirement(clan.getLevel())); // Next level cost
packet.writeD(0); // Max pledge members
packet.writeD(0); // Max elite members
return true;

View File

@ -19,13 +19,13 @@ package com.l2jmobius.gameserver.data.xml.impl;
/**
* @author Mobius
*/
public class ClanLevelTable
public class ClanLevelData
{
// TODO: Move to XML.
private final static int[] CLAN_LEVEL_REQUIREMENTS =
{
35000,
80000, // Level 2 requirement.
80000,
140000,
315000,
560000,

View File

@ -40,7 +40,7 @@ import com.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager;
import com.l2jmobius.gameserver.data.sql.impl.CharNameTable;
import com.l2jmobius.gameserver.data.sql.impl.ClanTable;
import com.l2jmobius.gameserver.data.sql.impl.CrestTable;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelTable;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelData;
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
import com.l2jmobius.gameserver.data.xml.impl.SkillTreesData;
import com.l2jmobius.gameserver.enums.ClanRewardType;
@ -2502,7 +2502,7 @@ public class L2Clan implements IIdentifiable, INamable
boolean increasedLevel = false;
if (_level < 15)
{
final int requiredReputation = ClanLevelTable.getLevelRequirement(_level);
final int requiredReputation = ClanLevelData.getLevelRequirement(_level);
if (requiredReputation <= _reputationScore)
{
setReputationScore(_reputationScore - requiredReputation, true);

View File

@ -17,7 +17,7 @@
package com.l2jmobius.gameserver.network.serverpackets.pledgeV2;
import com.l2jmobius.commons.network.PacketWriter;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelTable;
import com.l2jmobius.gameserver.data.xml.impl.ClanLevelData;
import com.l2jmobius.gameserver.model.L2Clan;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.network.OutgoingPackets;
@ -46,7 +46,7 @@ public class ExPledgeShowInfoUpdate extends AbstractItemPacket
OutgoingPackets.EX_PLEDGE_SHOW_INFO_UPDATE.writeId(packet);
packet.writeD(clan.getId()); // Pledge ID
packet.writeD(ClanLevelTable.getLevelRequirement(clan.getLevel())); // Next level cost
packet.writeD(ClanLevelData.getLevelRequirement(clan.getLevel())); // Next level cost
packet.writeD(0); // Max pledge members
packet.writeD(0); // Max elite members
return true;