Add dungeon config generation to zone creation with 10% probability #120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "copilot/generate-dungeon-config-in-worldbuilding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Dungeons now generate configuration data automatically during zone creation. When a new zone is generated in
get_neighbor_or_generate_zone, there's a 10% chance a dungeon config is created via LLM.Changes
New LlmRequest class:
GenerateDungeonConfigtale/llm/requests/generate_dungeon_config.pyPrompt templates:
CREATE_DUNGEON_CONFIG_PROMPT.txt- Instructs LLM to generate dungeon fitting zone contextDUNGEON_CONFIG_TEMPLATE.txt- JSON schema for dungeon properties (name, description, races, items, max_depth)WorldBuilding integration:
_generate_dungeon_config()method to handle LLM request and DungeonConfig deserializationget_neighbor_or_generate_zone()to call dungeon generation at 10% probability after successful zone creationExample
The generated dungeon config is serialized with the zone via existing
Zone.get_info()/from_json()mechanisms.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.