remove: key/toolbox/map items, keep only medkit and flashlight
This commit is contained in:
parent
f9847dbb73
commit
3d6204cc83
156 changed files with 583 additions and 517 deletions
|
|
@ -13,14 +13,12 @@ public class ChestLoot {
|
|||
this.random = ThreadLocalRandom.current();
|
||||
}
|
||||
|
||||
/** Roll a random item with weighted probabilities. */
|
||||
/** 55% медкит, 45% фонарик. Заряды чуть рандомные. */
|
||||
public ItemStack rollLoot() {
|
||||
int roll = random.nextInt(100);
|
||||
|
||||
if (roll < 30) return DBDItems.medkit(12 + random.nextInt(5)); // 30%
|
||||
if (roll < 55) return DBDItems.flashlight(6 + random.nextInt(4)); // 25%
|
||||
if (roll < 80) return DBDItems.toolbox(10 + random.nextInt(7)); // 25%
|
||||
if (roll < 92) return DBDItems.key(24 + random.nextInt(9)); // 12%
|
||||
return DBDItems.map(8 + random.nextInt(9)); // 8%
|
||||
if (random.nextInt(100) < 55) {
|
||||
return DBDItems.medkit(12 + random.nextInt(5));
|
||||
} else {
|
||||
return DBDItems.flashlight(6 + random.nextInt(3));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue