mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:28 -05:00
Create Section for home server drops
This commit is contained in:
@@ -2070,6 +2070,15 @@ function drop_something(player, monster, share) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// Home-server monster-specific drops
|
||||||
|
if (player.p.home && player.p.home === region + server_name && D.drops.monsters_home_server[monster.type] && player.tskin != "konami") {
|
||||||
|
D.drops.monsters_home_server[monster.type].forEach(function (item) {
|
||||||
|
let itemShouldDrop = shouldItemDrop(item);
|
||||||
|
if (itemShouldDrop || mode.drop_all) {
|
||||||
|
drop_item_logic(drop, item, is_in_pvp(player, 1));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
if (player.tskin == "konami") {
|
if (player.tskin == "konami") {
|
||||||
D.drops.konami.forEach(function (item) {
|
D.drops.konami.forEach(function (item) {
|
||||||
if (Math.random() / share / player.luckm / monster.level < item[0] || mode.drop_all) {
|
if (Math.random() / share / player.luckm / monster.level < item[0] || mode.drop_all) {
|
||||||
|
|||||||
Reference in New Issue
Block a user