Add lore archive system and rebalance pirate HP scaling

Boss defeats at zones 10/20/30 now pause the game and reveal a
one-time Data Archive story entry. Also lower per-zone pirate HP
growth from 1.4x to 1.2x.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D5SuZW1XGCkahPX7cHMoRP
This commit is contained in:
azykov@mail.ru
2026-09-05 12:13:17 +03:00
co-authored by Claude Sonnet 5
parent cbd547944e
commit 0788f42699
7 changed files with 172 additions and 11 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { LoreEntry } from '../game/types';
export function LoreModal({ entry, onDismiss }: { entry: LoreEntry; onDismiss: () => void }) {
return (
<div className="lore-overlay" onClick={onDismiss}>
<div className="lore-panel" onClick={(e) => e.stopPropagation()}>
<div className="lore-kicker">Архив Данных</div>
<div className="lore-title">{entry.title}</div>
<p className="lore-text">{entry.text}</p>
<button type="button" className="lore-btn" onClick={onDismiss}>
Продолжить
</button>
</div>
</div>
);
}