Fix prompt tutorial example
This commit is contained in:
parent
6f255c9ff8
commit
eaff50beb0
2 changed files with 2 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ defined explicitly to be restarted/recrated in settings.py (Griatch)
|
||||||
- Fix: Passing an already instantiated Script to `obj.scripts.add` (`ScriptHandler.add`)
|
- Fix: Passing an already instantiated Script to `obj.scripts.add` (`ScriptHandler.add`)
|
||||||
did not add it to the handler's object (Griatch)
|
did not add it to the handler's object (Griatch)
|
||||||
[Docs][issue3591]: Fix of NPC reaction tutorial code (Griatch)
|
[Docs][issue3591]: Fix of NPC reaction tutorial code (Griatch)
|
||||||
|
- Docs: Tutorial fixes (Griatch)
|
||||||
|
|
||||||
[issue3591]: https://github.com/evennia/evennia/issues/3591
|
[issue3591]: https://github.com/evennia/evennia/issues/3591
|
||||||
[issue3590]: https://github.com/evennia/evennia/issues/3590
|
[issue3590]: https://github.com/evennia/evennia/issues/3590
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ Here is a simple example of the prompt sent/updated from a command class:
|
||||||
if not self.args:
|
if not self.args:
|
||||||
target = self.caller
|
target = self.caller
|
||||||
else:
|
else:
|
||||||
target = self.search(self.args)
|
target = self.caller.search(self.args)
|
||||||
if not target:
|
if not target:
|
||||||
return
|
return
|
||||||
# try to get health, mana and stamina
|
# try to get health, mana and stamina
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue