feat: add hunt API client and models for Playable Slice 0.2
Add to game-api.models.ts: - DangerRating type for hunt encounter danger levels - MonsterSummary interface with key, name, level, artworkPath - HuntEncounter interface for individual hunt encounters - HuntResult interface for hunt completion results, reusing LocationSummary Extend CurrentLocationResponse with possibleMonsters: string[] field. Add to game-api.service.ts: - startHunt(): Observable<HuntResult> method posting to /api/hunts Update test fixtures to include possibleMonsters field in mock locations. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,7 @@ const southGate: CurrentLocationResponse = {
|
||||
huntingEnabled: false,
|
||||
artworkPath: '/images/backgrounds/Suedtor.png',
|
||||
connections: [burnedRoadConnection],
|
||||
possibleMonsters: [],
|
||||
};
|
||||
|
||||
const burnedRoad: CurrentLocationResponse = {
|
||||
@@ -43,6 +44,7 @@ const burnedRoad: CurrentLocationResponse = {
|
||||
isSafe: false,
|
||||
huntingEnabled: true,
|
||||
artworkPath: '/images/backgrounds/Aschestrasse.png',
|
||||
possibleMonsters: ['goblin', 'skeleton'],
|
||||
connections: [
|
||||
{
|
||||
targetLocation: { id: 'south-gate-id', key: 'south-gate', name: 'Südtor von Graufurt' },
|
||||
|
||||
@@ -33,6 +33,7 @@ const currentLocation: CurrentLocationResponse = {
|
||||
isSafe: true,
|
||||
huntingEnabled: false,
|
||||
artworkPath: '/images/backgrounds/Suedtor.png',
|
||||
possibleMonsters: [],
|
||||
connections: [
|
||||
{
|
||||
targetLocation: {
|
||||
|
||||
Reference in New Issue
Block a user