Skip to content

Commit 6920894

Browse files
committed
Make rare drop tables have a chance to roll on them
1 parent 4a0ef93 commit 6920894

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/kotlin/engine/engine/combat/drops/npcDropLoader.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package engine.combat.drops
33
import api.drops.DropTableHandler
44
import api.drops.GenericDropTables
55
import api.predef.*
6+
import api.predef.ext.*
67
import com.google.common.collect.ArrayListMultimap
78
import com.google.common.collect.ListMultimap
89
import io.luna.game.event.impl.ServerStateChangedEvent.ServerLaunchEvent
910
import io.luna.util.GsonUtils
10-
import io.luna.util.Rational
1111
import java.nio.file.Paths
1212
import java.util.concurrent.CompletableFuture
1313

@@ -44,9 +44,8 @@ fun loadTable(table: StaticNpcDropTable, subTables: ListMultimap<Int, StaticNpcD
4444
DropTableHandler.createNpc(table.id) {
4545
// Load generic Ring of Wealth-based drop tables.
4646
when (table.rare) {
47-
"GEM" -> tables += GenericDropTables.gemDropTable()
48-
"MEGA_RARE" -> tables += GenericDropTables.megaRareDropTable()
49-
"RARE" -> tables += GenericDropTables.rareDropTable()
47+
"GEM" -> tables += GenericDropTables.gemDropTable(chance = 2 of 128)
48+
"RARE" -> tables += GenericDropTables.rareDropTable(chance = 5 of 128)
5049
}
5150

5251
for (entry in subTables.asMap().entries) {

0 commit comments

Comments
 (0)