Fixed rats dropping bones when killed outside of the stronghold of security

This commit is contained in:
DebbySaurus 2022-09-04 11:51:08 +00:00 committed by Ryan
parent 9cfa635f0a
commit 6d412048c8
2 changed files with 29 additions and 4 deletions

View file

@ -63866,5 +63866,33 @@
"maxAmount": "42"
}
]
},
{
"default": [
{
"minAmount": "1",
"weight": "1.0",
"id": "526",
"maxAmount": "1"
}
],
"charm": [
{
"minAmount": "1",
"weight": "1.0",
"id": "0",
"maxAmount": "1"
}
],
"ids": "4396,4415",
"description": "Rat (Stronghold)",
"main": [
{
"minAmount": "1",
"weight": "1.0",
"id": "0",
"maxAmount": "1"
}
]
}
]
]

View file

@ -54,9 +54,6 @@ public class RatNPC extends AbstractNPC {
if (p.getQuestRepository().getQuest("Witch's Potion").isStarted(p)) {
GroundItemManager.create(RAT_TAIL, getLocation(), p);
}
if (!getName().equals("Giant rat")) {
GroundItemManager.create(new Item(526), getLocation(), (Player) killer);
}
}
}