adding abilities, created skill tree template and unlock mechanics
This commit is contained in:
@@ -82,7 +82,7 @@ Displays character stats, resource bars, and action buttons
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# Quick Actions (Inventory, Equipment, NPC, Travel) #}
|
||||
{# Quick Actions (Inventory, Equipment, Skills, NPC, Travel) #}
|
||||
<div class="quick-actions">
|
||||
{# Inventory - Opens modal #}
|
||||
<button class="action-btn action-btn--special"
|
||||
@@ -103,6 +103,16 @@ Displays character stats, resource bars, and action buttons
|
||||
⚔️ Equipment & Gear
|
||||
</button>
|
||||
|
||||
{# Skill Trees - Direct link to skills page #}
|
||||
<a class="action-btn action-btn--special"
|
||||
href="{{ url_for('character_views.view_skills', character_id=character.character_id) }}">
|
||||
🌱 Skill Trees
|
||||
{% set skill_pts = character.available_skill_points|default(character.level - (character.unlocked_skills|default([])|length), true) %}
|
||||
{% if skill_pts > 0 %}
|
||||
<span class="action-count action-count--highlight">({{ skill_pts }} pts)</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
|
||||
{# Talk to NPC - Opens NPC accordion #}
|
||||
<button class="action-btn action-btn--special"
|
||||
hx-get="{{ url_for('game.npcs_accordion', session_id=session_id) }}"
|
||||
|
||||
Reference in New Issue
Block a user