Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tale/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,8 +1013,8 @@ def __init__(self) -> None:
self.weapon_skills = WeaponSkills()
self.magic_skills = MagicSkills()
self.skills = Skills()
self.action_points = 0 # combat points
self.max_action_points = 5 # max combat points
self.action_points = 10 # combat points
self.max_action_points = 10 # max combat points
self.max_magic_points = 5 # max magic points
self.magic_points = 0 # magic points

Expand Down
2 changes: 1 addition & 1 deletion tale/llm/prompt_templates/IDLE_ACTION_PROMPT.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
You are going to generate an action on behalf of {character_name}.
<context>Sentiments towards characters: {sentiments}; History: {history}; Location: {location}; Acting character: {character}</context>
Choose an item from: {items}, or a character from:{characters}, to interact with, or perform a solo action. Do not make up new characters.
The action could build on past events, but should not repeat a past event. If set, act according to the 'roleplay_prompt'.
The action could build on past events, but should not repeat a past event. The action should be ephemeral, immersion building, and not affect states of items or characters. If set, act according to the 'roleplay_prompt'.
Write what {character_name} does, in present tense third person point of view. Don't write what {character_name} thinks, or what the player (You) or anyone else does. Use less than 40 words.
3 changes: 1 addition & 2 deletions tale/llm/world_building.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ def get_neighbor_or_generate_zone(self, current_zone: Zone, current_location: Lo
direction.multiply(json_result.get('size', current_zone.size_z if direction.z != 0 else current_zone.size))))
if zone and story.add_zone(zone):
zone.level = (zone.level + 1) if random.random() < 0.5 else zone.level
# Generate dungeon config at 10% chance
if random.random() < 0.1:
if random.random() < 0.25:
dungeon_config = self._generate_dungeon_config(zone, world_generation_context)
if dungeon_config:
zone.dungeon_config = dungeon_config
Expand Down