mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 12:07:17 +02:00
Add MUX-style @chzone.
This commit is contained in:
parent
1a3942edac
commit
8ebea8c22e
3 changed files with 60 additions and 0 deletions
|
|
@ -752,6 +752,13 @@ class Object(models.Model):
|
|||
return self.zone
|
||||
except:
|
||||
return None
|
||||
|
||||
def set_zone(self, new_zone):
|
||||
"""
|
||||
Sets an object's zone.
|
||||
"""
|
||||
self.zone = new_zone
|
||||
self.save()
|
||||
|
||||
def move_to(self, target, quiet=False, force_look=True):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue