Can no longer bind passive permanent skills

This commit is contained in:
Jules 2024-05-09 17:17:19 -07:00
parent 2d08d4403b
commit 952b543b45
5 changed files with 9 additions and 3 deletions

View File

@ -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);

View File

@ -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"}'

View File

@ -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

View File

@ -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.'
- ''

View File

@ -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.'