浏览代码

BETA: If we have a Config and use it to decrease rep, why not check for it..

nBd 12 年之前
父节点
当前提交
c4534bc89c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/L2Clan.java

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/L2Clan.java

@@ -1971,7 +1971,7 @@ public class L2Clan
 		
 		
 		// Royal Guard 5000 points per each
 		// Royal Guard 5000 points per each
 		// Order of Knights 10000 points per each
 		// Order of Knights 10000 points per each
-		if ((pledgeType != -1) && (((getReputationScore() < 5000) && (pledgeType < L2Clan.SUBUNIT_KNIGHT1)) || ((getReputationScore() < 10000) && (pledgeType > L2Clan.SUBUNIT_ROYAL2))))
+		if ((pledgeType != -1) && (((getReputationScore() < Config.ROYAL_GUARD_COST) && (pledgeType < L2Clan.SUBUNIT_KNIGHT1)) || ((getReputationScore() < Config.KNIGHT_UNIT_COST) && (pledgeType > L2Clan.SUBUNIT_ROYAL2))))
 		{
 		{
 			player.sendPacket(SystemMessageId.THE_CLAN_REPUTATION_SCORE_IS_TOO_LOW);
 			player.sendPacket(SystemMessageId.THE_CLAN_REPUTATION_SCORE_IS_TOO_LOW);
 			return null;
 			return null;