::rolldrops admin/testing command now clears container between invocations
This commit is contained in:
@@ -122,6 +122,8 @@ class DevelopmentCommandSet : CommandSet(Privilege.ADMIN) {
|
|||||||
val npcId = args[1].toInt()
|
val npcId = args[1].toInt()
|
||||||
val amount = args[2].toInt()
|
val amount = args[2].toInt()
|
||||||
|
|
||||||
|
container.clear()
|
||||||
|
|
||||||
for(i in 0..amount)
|
for(i in 0..amount)
|
||||||
{
|
{
|
||||||
val drops = NPCDefinition.forId(npcId).dropTables.table.roll()
|
val drops = NPCDefinition.forId(npcId).dropTables.table.roll()
|
||||||
|
|||||||
Reference in New Issue
Block a user