Fixed ClassDamageManager inconsistency.
This commit is contained in:
parent
c268d09d2d
commit
232a3bb69b
@ -68,7 +68,7 @@ public class ClassDamageManager
|
||||
}
|
||||
|
||||
final String type = classAndType[1];
|
||||
final Integer classId = PlayerTemplateData.getInstance().getClassIdByName(className) - 1;
|
||||
final Integer classId = PlayerTemplateData.getInstance().getClassIdByName(className);
|
||||
|
||||
ID_TO_NAME.put(classId, className);
|
||||
NAME_TO_ID.put(className, classId);
|
||||
@ -116,7 +116,6 @@ public class ClassDamageManager
|
||||
public static double getClassDamageToMage(int id)
|
||||
{
|
||||
final Double multiplier = DAMAGE_TO_MAGE.get(id);
|
||||
|
||||
if (multiplier != null)
|
||||
{
|
||||
return multiplier;
|
||||
|
Loading…
Reference in New Issue
Block a user