Always use static modifier when adding values to static lists and maps.
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jmobius.gameserver.model.holders;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class ScoreDataHolder
|
||||
{
|
||||
private final int _crystalId;
|
||||
private final String _okMsg;
|
||||
private final String _noAdenaMsg;
|
||||
private final String _noScoreMsg;
|
||||
|
||||
public ScoreDataHolder(int crystalId, String okMsg, String noAdenaMsg, String noScoreMsg)
|
||||
{
|
||||
_crystalId = crystalId;
|
||||
_okMsg = okMsg;
|
||||
_noAdenaMsg = noAdenaMsg;
|
||||
_noScoreMsg = noScoreMsg;
|
||||
}
|
||||
|
||||
public int getCrystalId()
|
||||
{
|
||||
return _crystalId;
|
||||
}
|
||||
|
||||
public String getOkMsg()
|
||||
{
|
||||
return _okMsg;
|
||||
}
|
||||
|
||||
public String getNoAdenaMsg()
|
||||
{
|
||||
return _noAdenaMsg;
|
||||
}
|
||||
|
||||
public String getNoScoreMsg()
|
||||
{
|
||||
return _noScoreMsg;
|
||||
}
|
||||
}
|
@@ -81,7 +81,8 @@ public class Quest extends ManagedScript
|
||||
public int[] questItemIds = null;
|
||||
|
||||
// Dimensional Diamond Rewards by Class for 2nd class transfer quest (35)
|
||||
protected static final Map<Integer, Integer> DF_REWARD_35 = new HashMap<>();
|
||||
protected static final Map<Integer, Integer> DF_REWARD_35 = new HashMap<>();
|
||||
static
|
||||
{
|
||||
DF_REWARD_35.put(1, 61);
|
||||
DF_REWARD_35.put(4, 45);
|
||||
@@ -104,7 +105,8 @@ public class Quest extends ManagedScript
|
||||
}
|
||||
|
||||
// Dimensional Diamond Rewards by Race for 2nd class transfer quest (37)
|
||||
protected static final Map<Integer, Integer> DF_REWARD_37 = new HashMap<>();
|
||||
protected static final Map<Integer, Integer> DF_REWARD_37 = new HashMap<>();
|
||||
static
|
||||
{
|
||||
DF_REWARD_37.put(0, 96);
|
||||
DF_REWARD_37.put(1, 102);
|
||||
@@ -114,7 +116,8 @@ public class Quest extends ManagedScript
|
||||
}
|
||||
|
||||
// Dimensional Diamond Rewards by Class for 2nd class transfer quest (39)
|
||||
protected static final Map<Integer, Integer> DF_REWARD_39 = new HashMap<>();
|
||||
protected static final Map<Integer, Integer> DF_REWARD_39 = new HashMap<>();
|
||||
static
|
||||
{
|
||||
DF_REWARD_39.put(1, 72);
|
||||
DF_REWARD_39.put(4, 104);
|
||||
|
Reference in New Issue
Block a user