Add NPC inline edit support and adjust ability launch mechanics

This commit is contained in:
Kam committed 2026-02-13 15:01:28 -05:00
1 parent ac223cbb53
commit 910f3b3744
7 files changed
+76 -3

No files matched your search

@@ -130,6 +130,12 @@ public abstract class Ability implements IAbility {
protected transient boolean previewMode = false;
protected transient PreviewEntityHandler previewEntityHandler;
// ═══════════════════════════════════════════════════════════════════
// GUI CONTEXT (client-side only, not saved)
// ═══════════════════════════════════════════════════════════════════
protected transient boolean npcInlineEdit = false;
// ═══════════════════════════════════════════════════════════════════
// ABSTRACT METHODS
// ═══════════════════════════════════════════════════════════════════
@@ -1282,6 +1288,14 @@ public abstract class Ability implements IAbility {
return false;
}
public boolean isNpcInlineEdit() {
return npcInlineEdit;
}
public void setNpcInlineEdit(boolean npcInlineEdit) {
this.npcInlineEdit = npcInlineEdit;
}
public int getWeight() {
return weight;
}