RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
NpcDropChance.java
1package com.osroyale.game.world.entity.mob.npc.drop;
2
3import com.osroyale.util.Utility;
4
36
37public enum NpcDropChance {
38 ALWAYS(1, 0),
39 COMMON(2, 10),
40 UNCOMMON(3, 50),
41 RARE(4, 250),
42 VERY_RARE(5, 500);
43
45 public final int tier;
46
48 public final int weight;
49
52 this.weight = weight;
53 this.tier = tier;
54 }
55
56 @Override
57 public String toString() {
58 return Utility.formatEnum(name());
59 }
60}
static String formatEnum(final String string)
Definition Utility.java:126