generated from runelite/example-plugin
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathPredictedHit.java
More file actions
65 lines (53 loc) · 1.28 KB
/
PredictedHit.java
File metadata and controls
65 lines (53 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.xpdrops.predictedhit;
import lombok.Data;
import net.runelite.api.Prayer;
@Data
public class PredictedHit
{
public enum AttackStyle
{
NONE,
ACCURATE,
AGGRESSIVE,
DEFENSIVE,
CONTROLLED,
RANGING,
LONGRANGE,
CASTING,
DEFENSIVE_CASTING,
OTHER,
}
public enum Raid
{
NONE,
COX,
COX_CM,
TOB,
TOA,
}
// Calculated with (int) Math.round((hpXpAwarded * (3.0d / 4.0d)) / xpModifier / userXpModifier)
private int hit = -1;
private int hpXpAwarded = -1;
private boolean opponentIsPlayer = false;
// If opponentIsPlayer is true this is -1
private int npcId = -1;
private int targetIndex = -1;
private int serverTick = -1;
// If opponentIsPlayer is false this is -1
private int playerCombatLevel = -1;
private int equippedWeaponId = -1;
private AttackStyle attackStyle = AttackStyle.NONE;
private Prayer[] activePrayer = new Prayer[0];
private boolean specialAttack = false;
// user defined xp modifier in the Customizable-xp-drops plugin
private double userXpModifier = -1;
// Final xp modifier used to calculate hit
private double xpModifier = -1;
private Raid raid = Raid.NONE;
// -1 if Raid is NONE
private int partySize = -1;
// -1 if Raid is not TOA
private int raidLevel = -1;
// -1 if Raid is not TOA
private int raidRoomLevel = -1;
}