RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
CombatConstants.java
1package com.osroyale.game.world.entity.combat;
2
28
29public class CombatConstants {
31 public static final long DAMAGE_CACHE_TIMEOUT = 60;
32
34 public static final int COMBAT_TIMER_COOLDOWN = 4_200;
35
37 public static final int COMBAT_LOGOUT_COOLDOWN = 10_000;
38
39 public static final String[] SKILL_REQUIREMENT_CONFIG_FIELD_NAMES = {
40 "req-attack",
41 "req-defence",
42 "req-strength",
43 "req-hitpoints",
44 "req-ranged",
45 "req-prayer",
46 "req-magic",
47 "req-cooking",
48 "req-woodcutting",
49 "req-fletching",
50 "req-fishing",
51 "req-firemaking",
52 "req-crafting",
53 "req-smithing",
54 "req-mining",
55 "req-herblore",
56 "req-agility",
57 "req-thieving",
58 "req-slayer",
59 "req-farming",
60 "req-runecrafting",
61 "req-construction",
62 "req-hunter"
63 };
64
65 public static final String[] BONUS_CONFIG_FIELD_NAMES = {
66 // Accuracy bonuses
67 "attack-stab",
68 "attack-slash",
69 "attack-crush",
70 "attack-magic",
71 "attack-ranged",
72
73 // Defensive bonuses
74 "defence-stab",
75 "defence-slash",
76 "defence-crush",
77 "defence-magic",
78 "defence-ranged",
79
80 // Other bonuses
81 "bonus-strength",
82 "ranged-strength",
83 "magic-damage",
84 "bonus-prayer"
85 };
86
87 public static final String[] SKILL_FIELD_NAMES = {
88 "attack-level",
89 "defence-level",
90 "strength-level",
91 "hitpoints-level",
92 "ranged-level",
93 "prayer-level",
94 "magic-level"
95 };
96
97 public static final int[] EMPTY_REQUIREMENTS = new int[SKILL_REQUIREMENT_CONFIG_FIELD_NAMES.length];
98 public static final int[] EMPTY_BONUSES = new int[BONUS_CONFIG_FIELD_NAMES.length];
99 public static final int[] EMPTY_SKILLS = new int[SKILL_FIELD_NAMES.length];
100
101
102
107 private CombatConstants() {
108 throw new UnsupportedOperationException("This class cannot be instantiated!");
109 }
110}