BDO Project
BDO 연구소
[BDOEmu - v491] Java Build Script (개별 빌드)
[BDOEmu - v491] 공헌도 상승량 바꾸기
source: src\main\java\com\bdoemu\gameserver\model\creature\player\contribution\ExplorePoint.java
[원본 소스 내용 중]
public synchronized void addExp(final Player player, final int exp) {
if (exp < 0) {
return;
}
final int ratedExp = (int) (exp * RateConfig.RATE_EXPLORE_EXP / 100.0f);
this.exp += ratedExp;
if (this.exp >= this.template.getRequireEXP()) {
final ContributionEXPT newTemplate = ContributionEXPData.getInstance().getTemplate(this.territoryKey, this.maxExplorePoints + 1);
if (newTemplate == null) {
this.exp = this.template.getRequireEXP();
return;
}
this.exp -= this.template.getRequireEXP();
this.template = newTemplate;
if (this.exp > newTemplate.getRequireEXP()) {
this.exp = newTemplate.getRequireEXP();
}
++this.currentExplorePoints;
++this.maxExplorePoints;
player.getObserveController().notifyObserver(EObserveType.acquirePoint, EGamePointType.CONTRIBUTION.ordinal(), this.maxExplorePoints);
}
player.sendPacket(new SMUpdateExplorePoint(this));
}
[수정할 내용]
public synchronized void addExp(final Player player, final int exp) {
if (exp < 0) {
return;
}
final int ratedExp = (int) (exp * RateConfig.RATE_EXPLORE_EXP / 100.0f);
this.exp += ratedExp;
if (this.exp >= this.template.getRequireEXP()) {
final ContributionEXPT newTemplate = ContributionEXPData.getInstance().getTemplate(this.territoryKey, this.maxExplorePoints + 1);
if (newTemplate == null) {
this.exp = this.template.getRequireEXP();
return;
}
this.exp -= this.template.getRequireEXP();
this.template = newTemplate;
if (this.exp > newTemplate.getRequireEXP()) {
this.exp = newTemplate.getRequireEXP();
}
this.currentExplorePoints += 50; //원하는 값 입력
this.maxExplorePoints += 50; //원하는 값 입력
player.getObserveController().notifyObserver(EObserveType.acquirePoint, EGamePointType.CONTRIBUTION.ordinal(), this.maxExplorePoints);
}
player.sendPacket(new SMUpdateExplorePoint(this));
}
이제 공헌도 경험치가 가득 차면 공헌도의 상승량은 +1이 아닌 +50이 될 것이다.