Files
Dimension-47/server/.env.example
Alexander Zielonka 618de7b21d feat: Implement PF2e Alchemy and Rest system
Alchemy System:
- Versatile Vials tracking with refill functionality
- Research Field display (Bomber, Chirurgeon, Mutagenist, Toxicologist)
- Formula Book with search and level filtering
- Advanced Alchemy (daily preparation) for infused items
- Quick Alchemy using versatile vials
- Normal Alchemy for permanent crafted items
- Auto-upgrade system for formula variants (Lesser → Greater)
- Effect parsing with damage badges (damage type colors, splash, healing, bonus)
- German translations for all UI elements and item effects
- WebSocket sync for all alchemy state changes

Rest System:
- HP healing based on CON modifier × Level
- Condition management (Fatigued removed, Doomed/Drained reduced)
- Resource reset (spell slots, focus points, daily abilities)
- Alchemy reset (infused items expire, vials refilled)
- Rest modal with preview of changes

Database:
- CharacterAlchemyState model for vials and batch tracking
- CharacterFormula model for formula book
- CharacterPreparedItem model with isInfused flag
- Equipment effect field for variant-specific effects
- Translation germanEffect field for effect translations
- Scraped effect data from Archives of Nethys (205 items)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 15:24:40 +01:00

23 lines
572 B
Plaintext

# Dimension47 Server Environment Variables
# Database (PostgreSQL)
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/dimension47?schema=public"
# JWT Authentication
JWT_SECRET="change-this-to-a-secure-random-string"
JWT_EXPIRES_IN="7d"
# Server Configuration
PORT=5000
NODE_ENV=development
# CORS Origins (comma separated, must include frontend dev server port)
CORS_ORIGINS="http://localhost:3000,http://localhost:5173,http://localhost:5175"
# Claude API (for translations)
ANTHROPIC_API_KEY=""
# File Upload
UPLOAD_DIR="./uploads"
MAX_FILE_SIZE=10485760