Use isort, run format on code
This commit is contained in:
parent
617bff3c82
commit
eafe390db4
38 changed files with 214 additions and 43 deletions
|
|
@ -10,7 +10,10 @@ See the docs for more information.
|
|||
|
||||
from evennia.contrib.base_systems.components.component import Component
|
||||
from evennia.contrib.base_systems.components.dbfield import DBField, NDBField, TagField
|
||||
from evennia.contrib.base_systems.components.holder import ComponentHolderMixin, ComponentProperty
|
||||
from evennia.contrib.base_systems.components.holder import (
|
||||
ComponentHolderMixin,
|
||||
ComponentProperty,
|
||||
)
|
||||
|
||||
|
||||
def get_component_class(component_name):
|
||||
|
|
|
|||
|
|
@ -1,5 +1,13 @@
|
|||
from evennia.contrib.base_systems.components import Component, DBField, TagField, signals
|
||||
from evennia.contrib.base_systems.components.holder import ComponentHolderMixin, ComponentProperty
|
||||
from evennia.contrib.base_systems.components import (
|
||||
Component,
|
||||
DBField,
|
||||
TagField,
|
||||
signals,
|
||||
)
|
||||
from evennia.contrib.base_systems.components.holder import (
|
||||
ComponentHolderMixin,
|
||||
ComponentProperty,
|
||||
)
|
||||
from evennia.contrib.base_systems.components.signals import as_listener
|
||||
from evennia.objects.objects import DefaultCharacter
|
||||
from evennia.utils import create
|
||||
|
|
|
|||
|
|
@ -12,7 +12,11 @@ from django.conf import settings
|
|||
|
||||
from evennia import ChannelDB, DefaultObject, DefaultScript, ScriptDB, logger
|
||||
from evennia.contrib.base_systems.ingame_python.callbackhandler import CallbackHandler
|
||||
from evennia.contrib.base_systems.ingame_python.utils import EVENTS, InterruptEvent, get_next_wait
|
||||
from evennia.contrib.base_systems.ingame_python.utils import (
|
||||
EVENTS,
|
||||
InterruptEvent,
|
||||
get_next_wait,
|
||||
)
|
||||
from evennia.utils.ansi import raw
|
||||
from evennia.utils.create import create_channel
|
||||
from evennia.utils.dbserialize import dbserialize
|
||||
|
|
|
|||
|
|
@ -9,7 +9,9 @@ from django.conf import settings
|
|||
|
||||
from evennia import ScriptDB, logger
|
||||
from evennia.contrib.base_systems.custom_gametime import UNITS, gametime_to_realtime
|
||||
from evennia.contrib.base_systems.custom_gametime import real_seconds_until as custom_rsu
|
||||
from evennia.contrib.base_systems.custom_gametime import (
|
||||
real_seconds_until as custom_rsu,
|
||||
)
|
||||
from evennia.utils.create import create_script
|
||||
from evennia.utils.gametime import real_seconds_until as standard_rsu
|
||||
from evennia.utils.utils import class_from_module
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ of the screen is done by the unlogged-in "look" command.
|
|||
"""
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from evennia import utils
|
||||
|
||||
CONNECTION_SCREEN = """
|
||||
|
|
|
|||
|
|
@ -21,9 +21,14 @@ called automatically when a new user connects.
|
|||
"""
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from evennia import CmdSet, Command, syscmdkeys
|
||||
from evennia.utils.evmenu import EvMenu
|
||||
from evennia.utils.utils import callables_from_module, class_from_module, random_string_from_module
|
||||
from evennia.utils.utils import (
|
||||
callables_from_module,
|
||||
class_from_module,
|
||||
random_string_from_module,
|
||||
)
|
||||
|
||||
_CONNECTION_SCREEN_MODULE = settings.CONNECTION_SCREEN_MODULE
|
||||
_GUEST_ENABLED = settings.GUEST_ENABLED
|
||||
|
|
|
|||
|
|
@ -31,7 +31,14 @@ import re
|
|||
|
||||
from django.conf import settings
|
||||
|
||||
from evennia import SESSION_HANDLER, CmdSet, Command, InterruptCommand, default_cmds, syscmdkeys
|
||||
from evennia import (
|
||||
SESSION_HANDLER,
|
||||
CmdSet,
|
||||
Command,
|
||||
InterruptCommand,
|
||||
default_cmds,
|
||||
syscmdkeys,
|
||||
)
|
||||
from evennia.utils import variable_from_module
|
||||
|
||||
from .utils import create_evscaperoom_object
|
||||
|
|
|
|||
|
|
@ -126,7 +126,12 @@ from evennia.commands.cmdset import CmdSet
|
|||
from evennia.commands.command import Command
|
||||
from evennia.prototypes.spawner import spawn
|
||||
from evennia.utils.create import create_object
|
||||
from evennia.utils.utils import callables_from_module, inherits_from, iter_to_str, make_iter
|
||||
from evennia.utils.utils import (
|
||||
callables_from_module,
|
||||
inherits_from,
|
||||
iter_to_str,
|
||||
make_iter,
|
||||
)
|
||||
|
||||
_RECIPE_CLASSES = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,14 @@ are spawened on their corresponding location.
|
|||
import itertools
|
||||
from random import choice
|
||||
|
||||
from evennia import CmdSet, DefaultCharacter, DefaultExit, DefaultRoom, DefaultScript, create_script
|
||||
from evennia import (
|
||||
CmdSet,
|
||||
DefaultCharacter,
|
||||
DefaultExit,
|
||||
DefaultRoom,
|
||||
DefaultScript,
|
||||
create_script,
|
||||
)
|
||||
from evennia.commands.default.muxcommand import MuxCommand
|
||||
from evennia.prototypes.spawner import spawn
|
||||
from evennia.utils import logger, search, utils
|
||||
|
|
|
|||
|
|
@ -113,7 +113,13 @@ create a new wilderness (with the name "default") but using our new map provider
|
|||
|
||||
"""
|
||||
|
||||
from evennia import DefaultExit, DefaultRoom, DefaultScript, create_object, create_script
|
||||
from evennia import (
|
||||
DefaultExit,
|
||||
DefaultRoom,
|
||||
DefaultScript,
|
||||
create_object,
|
||||
create_script,
|
||||
)
|
||||
from evennia.utils import inherits_from
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -460,7 +460,12 @@ from django.conf import settings
|
|||
|
||||
from evennia.utils import logger
|
||||
from evennia.utils.dbserialize import _SaverDict
|
||||
from evennia.utils.utils import class_from_module, inherits_from, list_to_string, percent
|
||||
from evennia.utils.utils import (
|
||||
class_from_module,
|
||||
inherits_from,
|
||||
list_to_string,
|
||||
percent,
|
||||
)
|
||||
|
||||
# Available Trait classes.
|
||||
# This way the user can easily supply their own. Each
|
||||
|
|
|
|||
|
|
@ -26,7 +26,10 @@ from evennia.contrib.tutorials.evadventure.dungeon import (
|
|||
EvAdventureDungeonStartRoomExit,
|
||||
)
|
||||
from evennia.contrib.tutorials.evadventure.objects import EvAdventureWeapon
|
||||
from evennia.contrib.tutorials.evadventure.rooms import EvAdventurePvPRoom, EvAdventureRoom
|
||||
from evennia.contrib.tutorials.evadventure.rooms import (
|
||||
EvAdventurePvPRoom,
|
||||
EvAdventureRoom,
|
||||
)
|
||||
|
||||
# CODE
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue