RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
Stringable.java
1package com.osroyale.content.skill.impl.fletching.impl;
2
3import com.osroyale.content.skill.impl.fletching.Fletchable;
4import com.osroyale.content.skill.impl.fletching.FletchableItem;
5import com.osroyale.content.skill.impl.fletching.Fletching;
6import com.osroyale.game.world.items.Item;
7
55
56public enum Stringable implements Fletchable {
57 SHORTBOWS(new Item(1777), new Item(50), new FletchableItem(new Item(841), 5, 5.0)),
58 LONGBOWS(new Item(1777), new Item(48), new FletchableItem(new Item(839), 10, 5.0)),
59 OAK_SHORTBOWS(new Item(1777), new Item(54), new FletchableItem(new Item(843), 20, 16.5)),
60 OAK_LONGBOWBOWS(new Item(1777), new Item(56), new FletchableItem(new Item(845), 25, 25.0)),
61 WILLOW_SHORTBOWS(new Item(1777), new Item(60), new FletchableItem(new Item(849), 35, 32.25)),
62 WILLOW_LONGBOWBOWS(new Item(1777), new Item(58), new FletchableItem(new Item(847), 40, 41.5)),
63 MAPLE_SHORTBOWS(new Item(1777), new Item(64), new FletchableItem(new Item(853), 50, 50.0)),
64 MAPLE_LONGBOWBOWS(new Item(1777), new Item(62), new FletchableItem(new Item(851), 55, 58.2)),
65 YEW_SHORTBOWS(new Item(1777), new Item(68), new FletchableItem(new Item(857), 65, 67.5)),
66 YEW_LONGBOWBOWS(new Item(1777), new Item(66), new FletchableItem(new Item(855), 70, 75.0)),
67 MAGIC_SHORTBOWS(new Item(1777), new Item(72), new FletchableItem(new Item(861), 80, 83.2)),
68 MAGIC_LONGBOWBOWS(new Item(1777), new Item(70), new FletchableItem(new Item(859), 85, 91.5)),
69 BRONZE_CROSSBOWS(new Item(9438), new Item(9454), new FletchableItem(new Item(9174), 9, 6.0)),
70 IRON_CROSSBOWS(new Item(9438), new Item(9457), new FletchableItem(new Item(9177), 39, 22.0)),
71 STEEL_CROSSBOWS(new Item(9438), new Item(9459), new FletchableItem(new Item(9179), 46, 27.0)),
72 MITHRIL_CROSSBOWS(new Item(9438), new Item(9461), new FletchableItem(new Item(9181), 54, 32.0)),
73 ADAMANT_CROSSBOWS(new Item(9438), new Item(9463), new FletchableItem(new Item(9183), 61, 41.0)),
74 RUNITE_CROSSBOWS(new Item(9438), new Item(9465), new FletchableItem(new Item(9185), 61, 41.0));
75
76 private final Item use;
77 private final Item with;
78 private final FletchableItem[] items;
79
80 Stringable(Item use, Item with, FletchableItem... items) {
81 this.use = use;
82 this.with = with;
83 this.items = items;
84 }
85
86 public static void load() {
87 for (Stringable featherable : values()) {
88 Fletching.addFletchable(featherable);
89 }
90 }
91
92 @Override
93 public int getAnimation() {
94 switch (this) {
95 case SHORTBOWS:
96 return 6678;
97 case LONGBOWS:
98 return 6684;
99 case OAK_SHORTBOWS:
100 return 6679;
101 case OAK_LONGBOWBOWS:
102 return 6685;
103 case WILLOW_SHORTBOWS:
104 return 6680;
105 case WILLOW_LONGBOWBOWS:
106 return 6686;
107 case MAPLE_SHORTBOWS:
108 return 6681;
109 case MAPLE_LONGBOWBOWS:
110 return 6687;
111 case YEW_SHORTBOWS:
112 return 6682;
113 case YEW_LONGBOWBOWS:
114 return 6688;
115 case MAGIC_SHORTBOWS:
116 return 6683;
117 case MAGIC_LONGBOWBOWS:
118 return 6689;
119 case BRONZE_CROSSBOWS:
120 return 9454;
121 case STEEL_CROSSBOWS:
122 return 9457;
123 case IRON_CROSSBOWS:
124 return 9459;
125 case MITHRIL_CROSSBOWS:
126 return 9461;
127 case ADAMANT_CROSSBOWS:
128 return 9463;
129 case RUNITE_CROSSBOWS:
130 return 9465;
131 default:
132 return 6678;
133 }
134 }
135
136 @Override
137 public int getGraphics() {
138 return -1;
139 }
140
141 @Override
142 public Item getUse() {
143 return use;
144 }
145
146 @Override
147 public Item getWith() {
148 return with;
149 }
150
151 @Override
152 public FletchableItem[] getFletchableItems() {
153 return items;
154 }
155
156 @Override
157 public String getProductionMessage() {
158 return null;
159 }
160
161 @Override
162 public Item[] getIngredients() {
163 return new Item[] { use, with };
164 }
165}