Fixed default movement speed for latest MMOLib

This commit is contained in:
Indyuce 2020-07-12 16:26:21 +02:00
parent 90199ef98f
commit 5d9f25c5bd
6 changed files with 9 additions and 11 deletions

View File

@ -61,13 +61,11 @@ public class PlayerStats {
map.getInstances().forEach(ins -> ins.removeIf(key -> key.equals("mmocoreClass")));
for (StatType stat : StatType.values()) {
double base = getBase(stat);
if (base == 0)
continue;
StatInstance instance = map.getInstance(stat.name());
if ((base -= instance.getVanilla()) != 0)
instance.addModifier("mmocoreClass", new StatModifier(base));
double total = getBase(stat) - instance.getVanilla();
if (total != 0)
instance.addModifier("mmocoreClass", new StatModifier(total));
}
map.updateAll();

View File

@ -84,7 +84,7 @@ attributes:
base: 18
per-level: 0
movement-speed:
base: .21
base: .105
per-level: 0
# Experience sources for main class experience.

View File

@ -78,7 +78,7 @@ attributes:
base: 3.7
per-level: 0
movement-speed:
base: .19
base: .095
per-level: 0
# Experience sources for main class experience.

View File

@ -76,7 +76,7 @@ attributes:
base: 18
per-level: 0
movement-speed:
base: .21
base: .105
per-level: 0
# Experience sources for main class experience.

View File

@ -107,7 +107,7 @@ attributes:
base: 24
per-level: 0.5
movement-speed:
base: .19
base: .905
per-level: 0
attack-damage:
base: 2

View File

@ -9,7 +9,7 @@ default:
base: 20
per-level: 0
MOVEMENT_SPEED:
base: .2
base: .1
per-level: 0
ARMOR:
base: 0