mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
* Fixed bug in @reload that had modules reload in random order (causing custom user modules to not overwrite default ones properly).
* Added more info to multiple match search results, to show which matches are in inventory or not. /Griatch
This commit is contained in:
parent
f99614346d
commit
82fe65f31f
2 changed files with 12 additions and 4 deletions
|
|
@ -185,9 +185,12 @@ class Object(models.Model):
|
|||
attribute_name=attribute_name)
|
||||
|
||||
if len(results) > 1:
|
||||
s = "More than one match for '%s' (please narrow target):" % ostring
|
||||
s = "More than one match for '%s' (please narrow target):" % ostring
|
||||
for num, result in enumerate(results):
|
||||
s += "\n %i-%s" % (num+1, result.get_name(show_dbref=False))
|
||||
invtext = ""
|
||||
if result.get_location() == self:
|
||||
invtext = " (carried)"
|
||||
s += "\n %i-%s%s" % (num+1, result.get_name(show_dbref=False),invtext)
|
||||
emit_to_obj.emit_to(s)
|
||||
return False
|
||||
elif len(results) == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue