diff --git a/blueprints/gamedata.py b/blueprints/gamedata.py index 014d221..316078c 100644 --- a/blueprints/gamedata.py +++ b/blueprints/gamedata.py @@ -36,6 +36,14 @@ def get_limited_use(): return success(compendium.raw_limiteduse) +@gamedata.route("spells", methods=["GET"]) +def get_spells(): + """Returns a list of valid entities for use in building a Cast Spell node in the automation builder.""" + return success( + {f"{t['name']} ({t['source']})": t["id"] for t in compendium.raw_spells} + ) + + @gamedata.route("describable", methods=["GET"]) def get_describables(): """Returns a list of valid entities that are describable (for the purpose of building a Text AbilityReference).""" diff --git a/docker-compose.yml b/docker-compose.yml index fb3d8e0..debd3fc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,6 @@ services: dockerfile: Dockerfile-dev container_name: avrae_service ports: - - "8000:8080" + - "58000:8000" environment: - NODE_ENV=development \ No newline at end of file