mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-16 11:30:17 -07:00
Defender drop rate now correctly 1/50
This commit is contained in:
parent
2045143378
commit
2e80fbc669
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ public final class CyclopesRoom extends MapZone implements Plugin<Object> {
|
||||||
public boolean death(Entity e, Entity killer) {
|
public boolean death(Entity e, Entity killer) {
|
||||||
if (killer instanceof Player && e instanceof NPC && (e.getId() == 4292 || e.getId() == 4291)) {
|
if (killer instanceof Player && e instanceof NPC && (e.getId() == 4292 || e.getId() == 4291)) {
|
||||||
int defenderId = getDefenderIndex((Player) killer);
|
int defenderId = getDefenderIndex((Player) killer);
|
||||||
if (RandomFunction.randomize(32) == 10) {
|
if (RandomFunction.randomize(50) == 10) {
|
||||||
if (++defenderId == DEFENDERS.length) {
|
if (++defenderId == DEFENDERS.length) {
|
||||||
defenderId--;
|
defenderId--;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue