Generate dungeon together with location #122

Closed
opened 2025-11-18 13:32:33 -05:00 by neph1 · 0 comments
neph1 commented 2025-11-18 13:32:33 -05:00 (Migrated from github.com)

We have dungeon generation code, and code for generating a dungeon config when a Zone is generated.

The next step is to maybe generate a dungeon when a location has been generated.

I think we'll do it here:
LlmUtil.build_location

After build_location has returned a location_result we will check zone_info. If it has a dungeon_config, and it doesn't have a dungeon (these must be added to the class) and at random chance of 0.1, we will do the following:

  • Randomly pick one of the new exits in the location_result
  • Call a new method that prompts to generate a DungeonEntrance. The prompt template should contain the dungeon_config and encourage the LLM to generate a dungeon entrance that adheres to both the dungeon config and the location.
  • Replace the picked exit with the newly created DungeonEntrance.
  • Make tests that verify everything.
We have dungeon generation code, and code for generating a dungeon config when a Zone is generated. The next step is to _maybe_ generate a dungeon when a location has been generated. I think we'll do it here: LlmUtil.build_location After build_location has returned a location_result we will check zone_info. If it has a dungeon_config, and it doesn't have a dungeon (these must be added to the class) and at random chance of 0.1, we will do the following: * Randomly pick one of the new exits in the location_result * Call a new method that prompts to generate a DungeonEntrance. The prompt template should contain the dungeon_config and encourage the LLM to generate a dungeon entrance that adheres to both the dungeon config and the location. * Replace the picked exit with the newly created DungeonEntrance. * Make tests that verify everything.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
neph1/LlamaTale#122
No description provided.