Generate dungeon entrances when building locations #123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "copilot/generate-dungeon-with-location"
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?
Implements automatic dungeon entrance generation during location building. When a zone has a
dungeon_configbut no existing dungeon, there's a 10% chance that one randomly-selected exit will be replaced with a dungeon entrance.Changes
Zone tracking
dungeonattribute toZoneclass to prevent duplicate dungeon generationDungeon entrance generation
generate_dungeon_entrance()inWorldBuildingclass - prompts LLM to create entrance fitting location and dungeon themesCREATE_DUNGEON_ENTRANCE_PROMPT.txtandDUNGEON_ENTRANCE_TEMPLATE.txtLocation building integration
build_location()to accept optionalzoneparameterlocation_result.exitsDungeonEntrancevia LLMzone.dungeonExample usage
Tests
test_generate_dungeon_entrance()- entrance generationtest_build_location_with_dungeon_generation()- full integration with mocked randomtest_build_location_no_dungeon_without_config()- no generation without configtest_build_location_no_dungeon_if_already_exists()- prevents duplicate dungeonsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.