Reimplement !drain command

This commit is contained in:
Tanner
2026-11-04 17:29:52 +00:00
parent 6dbc61284a
commit 23ecfa4446
5 changed files with 165 additions and 13 deletions
+3 -3
View File
@@ -57,7 +57,7 @@ class Commands:
unsupported = {
'gather', 'loiter', 'trade', 'gapple', 'cache', 'fill',
'drop', 'dump', 'drain', 'break', 'open', 'click', 'use',
'drop', 'dump', 'break', 'open', 'click', 'use',
'interact', 'respawn',
}
if (command in unsupported or
@@ -473,8 +473,8 @@ class Commands:
## 1drain - drops all items in inventory
if command == 'drain':
self.g.draining = True
reply = 'ok'
count = self.g.game.start_drain()
reply = 'ok' if count else 'empty'
if command == 'gapple':
self.g.job.state = self.g.job.find_gapple