Proper naming for various data holding classes.
This commit is contained in:
@@ -26,7 +26,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.data.CharNameTable;
|
||||
import org.l2jmobius.gameserver.data.CharStatsTable;
|
||||
import org.l2jmobius.gameserver.data.CharStatTable;
|
||||
import org.l2jmobius.gameserver.data.CharTemplateTable;
|
||||
import org.l2jmobius.gameserver.data.ClanTable;
|
||||
import org.l2jmobius.gameserver.data.ExperienceTable;
|
||||
@@ -74,7 +74,7 @@ public class GameServer extends Thread
|
||||
protected final ExperienceTable _expTable;
|
||||
protected final TeleportLocationTable _teleTable;
|
||||
protected final LevelUpData _levelUpData;
|
||||
protected final CharStatsTable _modifiers;
|
||||
protected final CharStatTable _modifiers;
|
||||
protected final World _world;
|
||||
protected final CharTemplateTable _charTemplates;
|
||||
protected final IdFactory _idFactory;
|
||||
@@ -172,7 +172,7 @@ public class GameServer extends Thread
|
||||
_expTable = ExperienceTable.getInstance();
|
||||
_teleTable = TeleportLocationTable.getInstance();
|
||||
_levelUpData = LevelUpData.getInstance();
|
||||
_modifiers = CharStatsTable.getInstance();
|
||||
_modifiers = CharStatTable.getInstance();
|
||||
_world = World.getInstance();
|
||||
_spawnTable = SpawnTable.getInstance();
|
||||
_gameTimeController = GameTimeController.getInstance();
|
||||
|
@@ -28,22 +28,22 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatModifiers;
|
||||
|
||||
public class CharStatsTable
|
||||
public class CharStatTable
|
||||
{
|
||||
private static Logger _log = Logger.getLogger(CharStatsTable.class.getName());
|
||||
private static CharStatsTable _instance;
|
||||
private static Logger _log = Logger.getLogger(CharStatTable.class.getName());
|
||||
private static CharStatTable _instance;
|
||||
private final Map<Integer, StatModifiers> _modifiers = new HashMap<>();
|
||||
|
||||
public static CharStatsTable getInstance()
|
||||
public static CharStatTable getInstance()
|
||||
{
|
||||
if (_instance == null)
|
||||
{
|
||||
_instance = new CharStatsTable();
|
||||
_instance = new CharStatTable();
|
||||
}
|
||||
return _instance;
|
||||
}
|
||||
|
||||
private CharStatsTable()
|
||||
private CharStatTable()
|
||||
{
|
||||
try
|
||||
{
|
@@ -27,7 +27,7 @@ import java.util.concurrent.ScheduledFuture;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.data.CharStatsTable;
|
||||
import org.l2jmobius.gameserver.data.CharStatTable;
|
||||
import org.l2jmobius.gameserver.data.CharTemplateTable;
|
||||
import org.l2jmobius.gameserver.data.ExperienceTable;
|
||||
import org.l2jmobius.gameserver.data.ItemTable;
|
||||
@@ -1243,7 +1243,7 @@ public class PlayerInstance extends Creature
|
||||
public void updatePAtk()
|
||||
{
|
||||
final double lvlmod = (89.0 + getLevel()) / 100.0;
|
||||
final StatModifiers modifier = CharStatsTable.getInstance().getTemplate(getClassId());
|
||||
final StatModifiers modifier = CharStatTable.getInstance().getTemplate(getClassId());
|
||||
double strmod = 1.0;
|
||||
if (modifier != null)
|
||||
{
|
||||
@@ -1330,7 +1330,7 @@ public class PlayerInstance extends Creature
|
||||
{
|
||||
final double lmod = (89.0 + getLevel()) / 100.0;
|
||||
final double lvlmod = Math.sqrt(lmod);
|
||||
final StatModifiers modifier = CharStatsTable.getInstance().getTemplate(getClassId());
|
||||
final StatModifiers modifier = CharStatTable.getInstance().getTemplate(getClassId());
|
||||
double imod = 1.0;
|
||||
if (modifier != null)
|
||||
{
|
||||
@@ -1364,7 +1364,7 @@ public class PlayerInstance extends Creature
|
||||
{
|
||||
Armor armorPiece;
|
||||
final double lvlBonus = (89.0 + getLevel()) / 100.0;
|
||||
final StatModifiers modifier = CharStatsTable.getInstance().getTemplate(getClassId());
|
||||
final StatModifiers modifier = CharStatTable.getInstance().getTemplate(getClassId());
|
||||
double menBonus = 1.0;
|
||||
if (modifier != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user