Refactoring contribs
This commit is contained in:
parent
f5f75bd04d
commit
0ab1c30716
103 changed files with 3203 additions and 604 deletions
|
|
@ -44,7 +44,7 @@ in there:
|
|||
|
||||
```python
|
||||
|
||||
from evennia.contrib.crafting.crafting import CraftingRecipe, CraftingValidationError
|
||||
from evennia.contrib.game_systems.crafting import CraftingRecipe, CraftingValidationError
|
||||
|
||||
|
||||
class RecipeBread(CraftingRecipe):
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
"""
|
||||
Crafting - Griatch 2020
|
||||
|
||||
"""
|
||||
|
||||
from .crafting import CraftingRecipe # noqa
|
||||
from .crafting import CraftingValidationError # noqa
|
||||
|
|
@ -73,9 +73,10 @@ from random import random, randint
|
|||
from evennia.commands.command import Command, InterruptCommand
|
||||
from .crafting import craft, CraftingRecipe, CraftingValidationError
|
||||
|
||||
#------------------------------------------------------------
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Sword recipe
|
||||
#------------------------------------------------------------
|
||||
# ------------------------------------------------------------
|
||||
|
||||
class PigIronRecipe(CraftingRecipe):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -4,11 +4,10 @@ Unit tests for the crafting system contrib.
|
|||
"""
|
||||
|
||||
from unittest import mock
|
||||
from anything import Something
|
||||
from django.test import override_settings
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
from evennia.commands.default.tests import CommandTest
|
||||
from evennia.utils.test_resources import TestCase, EvenniaTest
|
||||
from evennia.utils.test_resources import TestCase
|
||||
from evennia.utils.create import create_object
|
||||
from . import crafting, example_recipes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue