Fixed default class configs

This commit is contained in:
Indyuce 2022-01-30 10:08:57 +01:00
parent 7e8a074669
commit 584619070b
8 changed files with 17 additions and 24 deletions

View File

@ -59,7 +59,6 @@ public class ExperienceManager implements MMOCoreManager {
return Objects.requireNonNull(expTables.get(id), "Could not find exp table with ID '" + id + "'");
}
@Deprecated
public ExperienceTable loadExperienceTable(Object obj) {
if (obj instanceof ConfigurationSection)

View File

@ -35,13 +35,11 @@ exp-curve: levels
max-level: 100
# This class must not display in /class
# becasue it is a subclass of mage
# because it is a subclass of mage
options:
display: false
triggers:
level-up:
- 'command{format="mmocore admin skill-points give %player% 1"}'
exp-table: class_exp_table
attributes:
max-health:

View File

@ -32,9 +32,7 @@ exp-curve: levels
# The maximum level players can reach
max-level: 100
triggers:
level-up:
- 'command{format="mmocore admin skill-points give %player% 1"}'
exp-table: class_exp_table
# This is the default mana display options, however it is not mandatory
# to have it in your class config file. Other classes do not have this

View File

@ -31,9 +31,7 @@ exp-curve: levels
# The maximum level players can reach
max-level: 100
triggers:
level-up:
- 'command{format="mmocore admin skill-points give %player% 1"}'
exp-table: class_exp_table
# Particles displayed around the player
# when he enters the casting mode.

View File

@ -33,13 +33,7 @@ exp-curve: levels
# The maximum level players can reach
max-level: 100
triggers:
level-up:
- 'command{format="mmocore admin skill-points give %player% 1"}'
# Get some mana back when dealing magic damage.
magic-damage:
- 'mana{operation=GIVE;amount=1}'
exp-table: class_exp_table
cast-particle:
particle: VILLAGER_HAPPY

View File

@ -31,11 +31,10 @@ exp-curve: levels
# The maximum level players can reach
max-level: 100
triggers:
level-up:
- 'command{format="mmocore admin skill-points give %player% 1"}'
exp-table: class_exp_table
options:
# Mana and health regen only applies when out of combat
off-combat-mana-regen: true
off-combat-health-regen: true

View File

@ -53,6 +53,8 @@ mana:
empty: WHITE
name: 'Rage'
exp-table: class_exp_table
# Rage charges when dealing weapon and physical damage.
triggers:
weapon-damage:
@ -60,9 +62,6 @@ triggers:
physical-damage:
- 'mana{operation=GIVE;amount=2-3}'
level-up:
- 'command{format="mmocore admin skill-points give %player% 1"}'
cast-particle:
particle: REDSTONE
color:

View File

@ -31,6 +31,14 @@ example_exp_table:
- 'exp{amount=80}'
- 'command{format="broadcast Boy, %player_name% level up twice in one of his(her) professions!"}'
# Exp table used by class to provide
# one skill point every level up
class_exp_table:
skill_point:
period: 1
triggers:
- 'command{format="mmocore admin skill-points give %player% 1"}'
second_exp_table:
# Base exp every level up, sweet.