RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
Battlestaff.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
38
39public enum Battlestaff implements Fletchable {
40 FIRE_BATTLESTAFF(new Item(1391, 1), new Item(569, 1), new FletchableItem(new Item(1393, 1), 62, 125.0)),
41 WATER_BATTLESTAFF(new Item(1391, 1), new Item(571, 1), new FletchableItem(new Item(1395, 1), 54, 100.0)),
42 AIR_BATTLESTAFF(new Item(1391, 1), new Item(573, 1), new FletchableItem(new Item(1397, 1), 66, 137.5)),
43 EARTH_BATTLESTAFF(new Item(1391, 1), new Item(575, 1), new FletchableItem(new Item(1399, 1), 58, 112.5));
44
45 private final Item use;
46 private final Item with;
47 private final FletchableItem[] items;
48
49 Battlestaff(Item use, Item with, FletchableItem... items) {
50 this.use = use;
51 this.with = with;
52 this.items = items;
53 }
54
55 public static void load() {
56 for (Battlestaff battlestaff : values()) {
57 Fletching.addFletchable(battlestaff);
58 }
59 }
60
61 @Override
62 public int getAnimation() {
63 return 7531;
64 }
65
66 @Override
67 public int getGraphics() {
68 switch (this) {
69 case WATER_BATTLESTAFF:
70 return 1370;
71 case EARTH_BATTLESTAFF:
72 return 1371;
73 case FIRE_BATTLESTAFF:
74 return 1372;
75 case AIR_BATTLESTAFF:
76 default:
77 return 306;
78 }
79 }
80
81 @Override
82 public Item getUse() {
83 return use;
84 }
85
86 @Override
87 public Item getWith() {
88 return with;
89 }
90
91 @Override
92 public FletchableItem[] getFletchableItems() {
93 return items;
94 }
95
96 @Override
97 public String getProductionMessage() {
98 return null;
99 }
100
101 @Override
102 public Item[] getIngredients() {
103 return new Item[] { use, with };
104 }
105}