From 6d412048c85d050751f89dc91eaacf65b21a4916 Mon Sep 17 00:00:00 2001 From: DebbySaurus Date: Sun, 4 Sep 2022 11:51:08 +0000 Subject: [PATCH] Fixed rats dropping bones when killed outside of the stronghold of security --- Server/data/configs/drop_tables.json | 30 ++++++++++++++++++- .../game/node/entity/npc/other/RatNPC.java | 3 -- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/Server/data/configs/drop_tables.json b/Server/data/configs/drop_tables.json index 7fe384380..a6c91b52c 100644 --- a/Server/data/configs/drop_tables.json +++ b/Server/data/configs/drop_tables.json @@ -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" + } + ] } -] +] \ No newline at end of file diff --git a/Server/src/main/java/core/game/node/entity/npc/other/RatNPC.java b/Server/src/main/java/core/game/node/entity/npc/other/RatNPC.java index faa01560c..7a20ff67f 100644 --- a/Server/src/main/java/core/game/node/entity/npc/other/RatNPC.java +++ b/Server/src/main/java/core/game/node/entity/npc/other/RatNPC.java @@ -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); - } } }