Use Action Bow

This commit is contained in:
Kam committed 2025-04-08 20:07:29 -04:00
1 parent 23eaca3f86
commit a1ec244581
3 files changed
+10 -2

No files matched your search

@@ -428,7 +428,8 @@ public class GuiNPCManageLinked extends GuiNPCInterface2 implements IScrollData,
StatCollector.translateToLocal("use_action.none"),
StatCollector.translateToLocal("use_action.block"),
StatCollector.translateToLocal("use_action.eat"),
StatCollector.translateToLocal("use_action.drink")
StatCollector.translateToLocal("use_action.drink"),
StatCollector.translateToLocal("use_action.bow")
};
int useActionIndex;
switch (linkedItem.itemUseAction) {
@@ -438,6 +439,9 @@ public class GuiNPCManageLinked extends GuiNPCInterface2 implements IScrollData,
case 1:
useActionIndex = 1;
break;
case 2:
useActionIndex = 4;
break;
case 3:
useActionIndex = 2;
break;
@@ -121,7 +121,7 @@ public class SubGuiLinkedItem extends SubGuiInterface implements ITextfieldListe
// Item Use Action: BiDirectional button (None, Block, Eat, Drink)
addLabel(new GuiNpcLabel(5, "display.useAction", x, y + 5, CustomNpcResourceListener.DefaultTextColor));
String[] useActions = {"use_action.none", "use_action.block", "use_action.eat", "use_action.drink"};
String[] useActions = {"use_action.none", "use_action.block", "use_action.eat", "use_action.drink", "use_action.bow"};
int useActionIndex = 0;
switch (linkedItem.itemUseAction) {
case 0:
@@ -130,6 +130,9 @@ public class SubGuiLinkedItem extends SubGuiInterface implements ITextfieldListe
case 1:
useActionIndex = 1;
break;
case 2:
useActionIndex = 4;
break;
case 3:
useActionIndex = 2;
break;