mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fixed docstring. Resolves #694.
This commit is contained in:
parent
6401e6182b
commit
950922d699
6 changed files with 11 additions and 9 deletions
|
|
@ -6,6 +6,8 @@ useful but are deemed too game-specific to go into the core library.
|
|||
See README.md for more info.
|
||||
"""
|
||||
# imports for apidoc
|
||||
import evennia
|
||||
evennia._init()
|
||||
import barter, dice, extended_room, menu_login, talking_npc
|
||||
import chargen, email-login, genderub, lineeditor, menusystem, slow_exit
|
||||
import chargen, email_login, gendersub, lineeditor, menusystem, slow_exit
|
||||
import tutorial_world, tutorial_examples
|
||||
|
|
|
|||
|
|
@ -94,12 +94,12 @@ in-game.
|
|||
|
||||
"""
|
||||
|
||||
from evennia import Command, Script, CmdSet
|
||||
from evennia import Command, DefaultScript, CmdSet
|
||||
|
||||
TRADE_TIMEOUT = 60 # timeout for B to accept trade
|
||||
|
||||
|
||||
class TradeTimeout(Script):
|
||||
class TradeTimeout(DefaultScript):
|
||||
"""
|
||||
This times out the trade request, in case player B did not reply in time.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ class CmdOOCCharacterCreate(Command):
|
|||
self.caller.msg("{gThe Character {c%s{g was successfully created!" % charname)
|
||||
|
||||
|
||||
class OOCCmdSetCharGen(default_cmds.OOCCmdSet):
|
||||
class OOCCmdSetCharGen(default_cmds.PlayerCmdSet):
|
||||
"""
|
||||
Extends the default OOC cmdset.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ Installation/testing:
|
|||
|
||||
import re
|
||||
from django.conf import settings
|
||||
from evennia import Room
|
||||
from evennia import DefaultRoom
|
||||
from evennia import gametime
|
||||
from evennia import default_cmds
|
||||
from evennia import utils
|
||||
|
|
@ -100,7 +100,7 @@ DAY_BOUNDARIES = (0, 6 / 24.0, 12 / 24.0, 18 / 24.0)
|
|||
|
||||
# implements the Extended Room
|
||||
|
||||
class ExtendedRoom(Room):
|
||||
class ExtendedRoom(DefaultRoom):
|
||||
"""
|
||||
This room implements a more advanced look functionality depending on
|
||||
time. It also allows for "details", together with a slightly modified
|
||||
|
|
|
|||
|
|
@ -36,14 +36,14 @@ TickerHandler might be better.
|
|||
|
||||
"""
|
||||
|
||||
from evennia import Exit, utils, Command
|
||||
from evennia import DefaultExit, utils, Command
|
||||
|
||||
MOVE_DELAY = {"stroll": 6,
|
||||
"walk": 4,
|
||||
"run": 2,
|
||||
"sprint": 1}
|
||||
|
||||
class SlowExit(Exit):
|
||||
class SlowExit(DefaultExit):
|
||||
"""
|
||||
This overloads the way moving happens.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ fill = wrap
|
|||
def pad(text, width=78, align="c", fillchar=" "):
|
||||
"""
|
||||
Pads to a given width, align is one of c,l,r
|
||||
and fillchar defaults to the empty string
|
||||
and fillchar defaults to the space character.
|
||||
"""
|
||||
align = align if align in ('c', 'l', 'r') else 'c'
|
||||
fillchar = fillchar[0] if fillchar else " "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue