# Action Prompts Configuration
#
# Defines the predefined actions available to players during story progression.
# Actions are filtered by user tier and location type.
#
# Tier hierarchy: FREE < BASIC < PREMIUM < ELITE
# Location types: town, tavern, wilderness, dungeon, safe_area, library, any

action_prompts:
  # =============================================================================
  # FREE TIER ACTIONS (4)
  # Available to all players
  # =============================================================================

  - prompt_id: ask_locals
    category: ask_question
    display_text: Ask locals for information
    description: Talk to NPCs to learn about quests, rumors, and local lore
    tier_required: free
    context_filter: [town, tavern]
    icon: chat
    cooldown_turns: 0
    dm_prompt_template: |
      The player approaches locals in {{ game_state.current_location }} and asks for information.

      Character: {{ character.name }}, Level {{ character.level }} {{ character.player_class }}

      Generate realistic NPC dialogue where locals share:
      - Local rumors or gossip
      - Information about nearby points of interest
      - Hints about potential quests or dangers
      - Useful tips for adventurers

      The NPCs should have distinct personalities and speak naturally. Include 1-2 NPCs in the response.
      End with a hook that encourages further exploration or action.

  - prompt_id: explore_area
    category: explore
    display_text: Explore the area
    description: Search your surroundings for points of interest, hidden paths, or useful items
    tier_required: free
    context_filter: [wilderness, dungeon]
    icon: compass
    cooldown_turns: 0
    dm_prompt_template: |
      The player explores the area around {{ game_state.current_location }}.

      Character: {{ character.name }}, Level {{ character.level }} {{ character.player_class }}
      Perception modifier: {{ character.stats.wisdom | default(10) }}

      Describe what the player discovers:
      - Environmental details and atmosphere
      - Points of interest (paths, structures, natural features)
      - Any items, tracks, or clues found
      - Potential dangers or opportunities

      Based on their Wisdom score, they may notice hidden details.

      IMPORTANT: Do NOT automatically move the player to a new location.
      Present 2-3 options of what they can investigate or where they can go.
      Ask: "What would you like to investigate?" or "Which path do you take?"

  - prompt_id: search_supplies
    category: gather_info
    display_text: Search for supplies
    description: Look for useful items, herbs, or materials in the environment
    tier_required: free
    context_filter: [any]
    icon: search
    cooldown_turns: 2
    requires_check:
      check_type: search
      difficulty: medium
    dm_prompt_template: |
      The player searches for supplies in {{ game_state.current_location }}.

      Character: {{ character.name }}, Level {{ character.level }} {{ character.player_class }}

      {% if check_outcome %}
      DICE CHECK RESULT: {{ check_outcome.check_result.success | string | upper }}
      - Roll: {{ check_outcome.check_result.roll }} + {{ check_outcome.check_result.modifier }} = {{ check_outcome.check_result.total }} vs DC {{ check_outcome.check_result.dc }}
      {% if check_outcome.check_result.success %}
      - Items found: {% for item in check_outcome.items_found %}{{ item.name }}{% if not loop.last %}, {% endif %}{% endfor %}
      - Gold found: {{ check_outcome.gold_found }}

      The player SUCCEEDED in their search. Narrate how they found these specific items.
      The items will be automatically added to their inventory - describe the discovery.
      {% else %}
      The player FAILED their search. Narrate the unsuccessful search attempt.
      They find nothing of value this time. Describe what they checked but came up empty.
      {% endif %}
      {% else %}
      Describe what supply sources or items they find based on location.
      {% endif %}

      Keep the narration immersive and match the location type.

  - prompt_id: rest_recover
    category: rest
    display_text: Rest and recover
    description: Take a short rest to recover health and stamina in a safe location
    tier_required: free
    context_filter: [town, tavern, safe_area]
    icon: bed
    cooldown_turns: 3
    dm_prompt_template: |
      The player wants to rest in {{ game_state.current_location }}.

      Character: {{ character.name }}, Level {{ character.level }} {{ character.player_class }}
      Current HP: {{ character.current_hp }}/{{ character.max_hp }}

      For PAID rest (taverns/inns):
      - Describe the establishment and available rooms WITH PRICES
      - Ask which option they want before resting
      - DO NOT automatically spend their gold

      For FREE rest (safe areas, campsites):
      - Describe finding a suitable spot
      - Describe the rest atmosphere and any ambient details
      - Dreams, thoughts, or reflections the character has

      After they choose to rest:
      - The player recovers some health and feels refreshed
      - End with them ready to continue their adventure

  # =============================================================================
  # PREMIUM TIER ACTIONS (+3)
  # Available to Premium and Elite subscribers
  # =============================================================================

  - prompt_id: investigate_suspicious
    category: gather_info
    display_text: Investigate suspicious activity
    description: Look deeper into something that seems out of place or dangerous
    tier_required: premium
    context_filter: [any]
    icon: magnifying_glass
    cooldown_turns: 0
    dm_prompt_template: |
      The player investigates suspicious activity in {{ game_state.current_location }}.

      Character: {{ character.name }}, Level {{ character.level }} {{ character.player_class }}
      Intelligence: {{ character.stats.intelligence | default(10) }}

      Based on the location and recent events, describe:
      - What draws their attention
      - Clues or evidence they discover
      - Connections to larger mysteries or threats
      - Potential leads to follow

      Higher Intelligence reveals more detailed observations.
      This should advance the story or reveal hidden plot elements.
      End with a clear lead or decision point.

  - prompt_id: follow_lead
    category: travel
    display_text: Follow a lead
    description: Pursue information or tracks that could lead to your goal
    tier_required: premium
    context_filter: [any]
    icon: footprints
    cooldown_turns: 0
    dm_prompt_template: |
      The player follows a lead from {{ game_state.current_location }}.

      Character: {{ character.name }}, Level {{ character.level }} {{ character.player_class }}

      Based on recent discoveries or conversations, describe:
      - What lead they're following (information, tracks, rumors)
      - The journey or investigation process
      - What they find at the end of the trail
      - New information or locations discovered

      This should move the story forward significantly.
      May lead to new areas, NPCs, or quest opportunities.
      End with a meaningful discovery or encounter.

  - prompt_id: make_camp
    category: rest
    display_text: Make camp
    description: Set up a campsite in the wilderness for rest and preparation
    tier_required: premium
    context_filter: [wilderness]
    icon: campfire
    cooldown_turns: 5
    dm_prompt_template: |
      The player sets up camp in {{ game_state.current_location }}.

      Character: {{ character.name }}, Level {{ character.level }} {{ character.player_class }}
      Survival skill: {{ character.stats.wisdom | default(10) }}

      Describe the camping experience:
      - Finding a suitable spot and setting up
      - Building a fire, preparing food
      - The night watch and any nocturnal events
      - Dreams or visions during sleep

      Higher Wisdom means better campsite selection and awareness.
      May include random encounters (friendly travelers, animals, or threats).
      Player recovers health and is ready for the next day.

  # =============================================================================
  # ELITE TIER ACTIONS (+3)
  # Available only to Elite subscribers
  # =============================================================================

  - prompt_id: consult_texts
    category: special
    display_text: Consult ancient texts
    description: Study rare manuscripts and tomes for hidden knowledge and lore
    tier_required: elite
    context_filter: [library, town]
    icon: book
    cooldown_turns: 3
    dm_prompt_template: |
      The player consults ancient texts in {{ game_state.current_location }}.

      Character: {{ character.name }}, Level {{ character.level }} {{ character.player_class }}
      Intelligence: {{ character.stats.intelligence | default(10) }}

      Describe the research session:
      - The library or collection they access
      - Specific tomes or scrolls they study
      - Ancient knowledge they uncover
      - Connections to current quests or mysteries

      Higher Intelligence allows deeper understanding.
      May reveal:
      - Monster weaknesses or strategies
      - Hidden location details
      - Historical context for current events
      - Magical item properties or crafting recipes

      End with actionable knowledge that helps their quest.

  - prompt_id: commune_nature
    category: special
    display_text: Commune with nature
    description: Attune to the natural world to gain insights and guidance
    tier_required: elite
    context_filter: [wilderness]
    icon: leaf
    cooldown_turns: 4
    dm_prompt_template: |
      The player communes with nature in {{ game_state.current_location }}.

      Character: {{ character.name }}, Level {{ character.level }} {{ character.player_class }}
      Wisdom: {{ character.stats.wisdom | default(10) }}

      Describe the mystical experience:
      - The ritual or meditation performed
      - Visions, sounds, or sensations received
      - Messages from the natural world
      - Animal messengers or nature spirits encountered

      Higher Wisdom provides clearer visions.
      May reveal:
      - Danger ahead or safe paths
      - Weather changes or natural disasters
      - Animal behavior patterns
      - Locations of rare herbs or resources
      - Environmental quest hints

      End with prophetic or practical guidance.

  - prompt_id: seek_audience
    category: special
    display_text: Seek audience with authorities
    description: Request a meeting with local leaders, nobles, or officials
    tier_required: elite
    context_filter: [town]
    icon: crown
    cooldown_turns: 5
    dm_prompt_template: |
      The player seeks an audience with authorities in {{ game_state.current_location }}.

      Character: {{ character.name }}, Level {{ character.level }} {{ character.player_class }}
      Charisma: {{ character.stats.charisma | default(10) }}
      Reputation: {{ character.reputation | default('unknown') }}

      Describe the audience:
      - The authority figure (mayor, lord, guild master, etc.)
      - The setting and formality of the meeting
      - The conversation and requests made
      - The authority's response and any tasks given

      Higher Charisma and reputation improve reception.
      May result in:
      - Official quests with better rewards
      - Access to restricted areas
      - Political information or alliances
      - Resources or equipment grants
      - Letters of introduction

      End with a clear outcome and next steps.
