Possibility to select a bound skill and thus upgrade it even if it is not unlocked.

This commit is contained in:
Ka0rX 2023-04-04 21:10:44 +01:00
parent 943553632b
commit 520516ded8
2 changed files with 7 additions and 0 deletions

View File

@ -396,6 +396,12 @@ public class SkillList extends EditableInventory {
if (item.getFunction().equals("slot")) {
int index = slotSlots.indexOf(context.getSlot()) + 1;
SkillSlot skillSlot = playerData.getProfess().getSkillSlot(index);
//Select if the player is doing Shift Left Click
if(context.getClickType() ==ClickType.SHIFT_LEFT){
if(playerData.hasSkillBound(index))
selected=playerData.getBoundSkill(index);
return;
}
// unbind if there is a current spell.
if (context.getClickType() == ClickType.RIGHT) {
if (!playerData.hasSkillBound(index)) {

View File

@ -64,6 +64,7 @@ items:
- ''
- '&e► Left click to bind {selected}.'
- '&e► Right click to unbind.'
- '&e► Shift left click to select.'
skill-level:
slots: [ 6,15,24,33,42,51 ]
function: level