From 385a04a5b912f0250149f0095e712ac0babb1b18 Mon Sep 17 00:00:00 2001 From: vddcore <573729-vddcore@users.noreply.gitlab.com> Date: Thu, 23 Jun 2022 23:11:10 +0000 Subject: [PATCH] ::rolldrops admin/testing command now clears container between invocations --- .../rs09/game/system/command/sets/DevelopmentCommandSet.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server/src/main/kotlin/rs09/game/system/command/sets/DevelopmentCommandSet.kt b/Server/src/main/kotlin/rs09/game/system/command/sets/DevelopmentCommandSet.kt index 4525c8793..cf759915d 100644 --- a/Server/src/main/kotlin/rs09/game/system/command/sets/DevelopmentCommandSet.kt +++ b/Server/src/main/kotlin/rs09/game/system/command/sets/DevelopmentCommandSet.kt @@ -122,6 +122,8 @@ class DevelopmentCommandSet : CommandSet(Privilege.ADMIN) { val npcId = args[1].toInt() val amount = args[2].toInt() + container.clear() + for(i in 0..amount) { val drops = NPCDefinition.forId(npcId).dropTables.table.roll()