Skip to content

Commit

Permalink
Merge pull request #7 from Tiogaplanet/more-organization
Browse files Browse the repository at this point in the history
Organized directories and added unit tests.
  • Loading branch information
Tiogaplanet authored May 15, 2022
2 parents a02a04e + 1a6a6c1 commit 53fb787
Show file tree
Hide file tree
Showing 36 changed files with 1,170 additions and 3,480 deletions.
20 changes: 0 additions & 20 deletions commands/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,23 +186,3 @@ class Command(BaseCommand):
# self.character = self.caller.get_puppet(self.session)
# else:
# self.character = None


from evennia import default_cmds
class CmdWhistle(default_cmds.MuxCommand):
"""
Whistle a little tune.
Usage:
whistle
The character whistles a cheerful little tune.
"""

aliases = ["wh", "whi", "whis", "whist", "whistl"]

key = "whistle"

def func(self):
"This actually does things"
self.caller.msg("You whistle a cheerful tune.")
3 changes: 1 addition & 2 deletions commands/default_cmdsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"""


from evennia import default_cmds

from commands.command import CmdWhistle

class CharacterCmdSet(default_cmds.CharacterCmdSet):
"""
Expand All @@ -35,7 +35,6 @@ def at_cmdset_creation(self):
#
# any commands you add below will overload the default ones.
#
self.add(CmdWhistle())


class AccountCmdSet(default_cmds.AccountCmdSet):
Expand Down
15 changes: 15 additions & 0 deletions server/conf/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@
# This is the name of your game. Make it catchy!
SERVERNAME = "Druidia"

# Typeclass for account objects (linked to a character) (fallback)
BASE_ACCOUNT_TYPECLASS = "typeclasses.base.Account"
# Typeclass for Channel (fallback).
BASE_CHANNEL_TYPECLASS = "typeclasses.base.Channel"
# Typeclass for Exit objects (fallback).
BASE_EXIT_TYPECLASS = "typeclasses.base.Exit"
# Typeclass for character objects linked to an account (fallback)
BASE_CHARACTER_TYPECLASS = "typeclasses.base.Character"
# Typeclass and base for all objects (fallback)
BASE_OBJECT_TYPECLASS = "typeclasses.base.Object"
# Typeclass for rooms (fallback)
BASE_ROOM_TYPECLASS = "typeclasses.base.Room"
# Typeclass for Scripts (fallback). You usually don't need to change this
# but create custom variations of scripts on a per-case basis instead.
BASE_SCRIPT_TYPECLASS = "typeclasses.base.Script"

######################################################################
# Settings given in secret_settings.py override those in this file.
Expand Down
104 changes: 0 additions & 104 deletions typeclasses/accounts.py

This file was deleted.

Loading

0 comments on commit 53fb787

Please sign in to comment.