forked from Upstream/mmocore
Can no longer bind passive permanent skills
This commit is contained in:
parent
2d08d4403b
commit
952b543b45
@ -481,6 +481,12 @@ public class SkillList extends EditableInventory {
|
||||
return;
|
||||
}
|
||||
|
||||
if (selected.isPermanent()) {
|
||||
ConfigMessage.fromKey("skill-cannot-be-bound").send(player);
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_NO, 1, 2);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!playerData.hasUnlockedLevel(selected)) {
|
||||
ConfigMessage.fromKey("skill-level-not-met").send(player);
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_NO, 1, 2);
|
||||
|
@ -43,9 +43,9 @@ skill-slots:
|
||||
name: "&aSkill Slot I"
|
||||
unlocked-by-default: true
|
||||
lore:
|
||||
- ''
|
||||
- '&a-50% Cooldown &7for Active Skills'
|
||||
- '&a+30% Damage &7for Active Skills'
|
||||
- ''
|
||||
formula: "<ACTIVE>"
|
||||
skill-buffs:
|
||||
- 'skill_buff{modifier="cooldown";amount=-50;type="RELATIVE"}'
|
||||
|
@ -39,7 +39,7 @@ example_exp_table:
|
||||
period: 2
|
||||
triggers:
|
||||
- 'exp{amount=80}'
|
||||
- 'command{format="broadcast Boy, %player_name% level up twice in one of his(her) professions!"}'
|
||||
- 'command{format="broadcast Boy, %player_name% level up twice one of their professions!"}'
|
||||
|
||||
# Exp table used by class to provide
|
||||
# one skill point every level up
|
||||
|
@ -62,7 +62,6 @@ items:
|
||||
- '&7Current Skill: &6{skill}'
|
||||
- ''
|
||||
- '{slot-lore}'
|
||||
- ''
|
||||
- '&7&oCast this spell by pressing [F] followed'
|
||||
- '&7&oby the keybind displayed on the action bar.'
|
||||
- ''
|
||||
|
@ -216,6 +216,7 @@ not-enough-skill-points-shift: '&cYou need {shift_points} skill points.'
|
||||
upgrade-skill: '&eYour &6{skill} &eis now Level &6{level}&e!'
|
||||
skill-level-not-met: '&cYou cannot use this skill yet.'
|
||||
no-skill-bound: '&cYou don''t have any skill bound to this slot.'
|
||||
skill-cannot-be-bound: '&cThis skill is always active and cannot be bound.'
|
||||
not-compatible-skill: '&cThe selected skill is not compatible with this slot.'
|
||||
cant-manually-bind: "&cYou can't manually bind/unbind a skill to this slot."
|
||||
skill-max-level-hit: '&cYou already hit the max level for that skill.'
|
||||
|
Loading…
Reference in New Issue
Block a user