✨Feature: add level 1 content including room templates, encounter tables, and room generation logic
- Introduced contentHelpers for table and room template lookups. - Created level1Rooms.ts with various room templates for level 1. - Added level1Tables.ts containing encounter tables for animals, martial, dogs, people, fungal, guards, workers, and room types. - Implemented room generation functions in rooms.ts to create rooms based on templates and tables. - Added tests for room generation logic in rooms.test.ts to ensure correct functionality.
This commit is contained in:
@@ -165,11 +165,15 @@ export type RoomClass = "normal" | "small" | "large" | "special" | "start" | "st
|
||||
export type RoomTemplate = {
|
||||
id: string;
|
||||
level: number;
|
||||
sourcePage?: number;
|
||||
roomClass: RoomClass;
|
||||
tableCode: string;
|
||||
tableEntryKey: string;
|
||||
title: string;
|
||||
text?: string;
|
||||
encounterText?: string;
|
||||
exitHint?: string;
|
||||
unique?: boolean;
|
||||
dimensions?: {
|
||||
width: number;
|
||||
height: number;
|
||||
|
||||
Reference in New Issue
Block a user