feat: Sprint 2 — moteur de combat PvE TetaRdPG
Moteur combat stateless (POST /api/combat/start résout le combat complet). Formules GDD : Mêlée/Distance/Magie × 1.5, critique (5% + Chance×0.2%), esquive (5% + Chance×0.1%). 5 monstres seedés (Têtard Vase → Golem de Boue, level 1–9). Level up : XP → seuil atteint → level++, +5 statPoints. Persiste combat_logs (jsonb rounds). Validé : victoire, défaite, 401, 400, 404.
This commit is contained in:
@@ -4,6 +4,8 @@ import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { ThrottlerModule } from '@nestjs/throttler';
|
||||
import { AuthModule } from './auth/auth.module';
|
||||
import { CharacterModule } from './character/character.module';
|
||||
import { MonsterModule } from './monster/monster.module';
|
||||
import { CombatModule } from './combat/combat.module';
|
||||
import { HealthController } from './common/health.controller';
|
||||
|
||||
@Module({
|
||||
@@ -31,6 +33,8 @@ import { HealthController } from './common/health.controller';
|
||||
|
||||
AuthModule,
|
||||
CharacterModule,
|
||||
MonsterModule,
|
||||
CombatModule,
|
||||
],
|
||||
controllers: [HealthController],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user