Skip to content

[BDOEmu - v491] 공헌도 상승량 바꾸기

by CroitzK posted Sep 07, 2018 Views 725 Likes 0 Replies 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

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이 될 것이다.

TAG •