You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

4.4 KiB

HikeMap RPG System - Todo List

Phase 1: Login on Load - COMPLETED

  • Remove icon chooser from initial page load
  • Show auth modal if no accessToken in localStorage
  • Add "Continue as Guest" button to auth modal

Phase 2: Character Creator - COMPLETED

  • Add character creator modal HTML/CSS
  • Implement race selection with stat preview
    • Human, Elf, Dwarf, Halfling
  • Implement class selection (Trail Runner available, others grayed "Coming Soon")
    • Trail Runner (available)
    • Gym Bro (coming soon)
    • Yoga Master (coming soon)
    • CrossFit Crusader (coming soon)
  • Add character name input
  • Update database schema (character_name, race columns in rpg_stats)
  • Create /api/user/character endpoint
  • Wire up creation flow after login

Phase 3: Character Sheet - COMPLETED

  • Create character sheet modal UI
  • Display all stats (HP, MP, ATK, DEF, etc.)
  • Show XP progress bar with level milestones
  • Show unlocked skills with descriptions (locked skills shown as grayed out)
  • Display equipped items (pending equipment system - Phase 5)
  • Add combat statistics (future enhancement)

Phase 4: Skill Selection System - COMPLETED

  • Create skill pools per class (SKILL_POOLS object with 2 options at levels 2, 3, 5)
  • Add 3 new alternative skills (quick_step, second_wind, finish_line_sprint)
  • Add level-up skill choice modal (2 options per milestone level)
  • Update database to store unlocked_skills (JSON array column)
  • Wire into level-up flow (checkLevelUp shows modal at milestone levels)
  • Update combat UI to show only unlocked skills
  • Update character sheet to show only unlocked skills

Phase 5: Equipment System

  • Create items table in database
  • Create player_inventory table
  • Define equipment slots: Weapon, Armor, Accessory
  • Add class-specific accessories
  • Implement monster loot tables
  • Add equipment UI to character sheet
  • Calculate effective stats with equipment bonuses

Phase 6: Admin Editor - MOSTLY COMPLETE

  • Create admin.html (separate page)
  • Add admin authentication middleware
  • User management (list, edit stats, grant admin)
  • Monster types stored in database (monster_types table created)
  • Monster management UI (CRUD for monster_types)
  • Monster cloning
  • Monster enable/disable toggle
  • Auto-copy default images for new monsters
  • Spawn control (manual monster spawning)
  • Game balance settings

Phase 8: Home Base / Death System - COMPLETE

  • Add home_base_lat, home_base_lng, last_home_set, is_dead columns to rpg_stats
  • Add "Set Home Base" mode - tap on map to select location
  • Limit home base setting to once per day (check last_home_set timestamp)
  • Show home base marker on map (uses default50.png)
  • On death:
    • Set player state to "dead" (can't initiate combat)
    • All monsters despawn (clear entourage)
    • Lose 10% of XP (but cannot drop below current level threshold)
  • Show "You are dead! Return to home base to respawn" message
  • Visual indicator when dead (grayed HUD with skull icon)
  • Detect when dead player reaches home base (~20m radius)
  • Respawn player with full HP and MP when they reach home
  • If no home base set, old behavior (restore 50% HP on defeat)

Phase 7: Skill Database System - COMPLETE

  • Skills table in database
  • Skills admin page (CRUD)
  • Hit/miss mechanics (accuracy vs dodge)
  • Monster skills with weighted random selection
  • Custom skill names per monster
  • Status effects (poison) with turn-based damage
  • Buff skills (defend) working properly
  • Status effect visual overlays (100x100px)
  • Monster min/max level spawning
  • Class-specific skill names (getSkillForClass)
  • Class skill names admin editor

Completed

  • RPG combat system with turn-based battles
  • Trail Runner class with skills
  • Discarded GU monster with variants
  • Multi-monster combat encounters
  • XP bar in HUD
  • Stat persistence fix (authToken → accessToken)
  • Phase 1: Login on Load
  • Phase 2: Character Creator
  • Monster persistence (monsters saved to database, persist across login/logout)
  • Phase 3: Character Sheet (click class name in HUD to view)
  • Phase 4: Skill Selection System (choose 1 of 2 skills at levels 2, 3, 5)
  • Monster types moved to database (future-proofing for admin editor)