Reimplement !drain command
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user