- Implemented `validatePlayer` and `normalizeTabInfo` functions in `database/validate.js` for player data validation and normalization. - Added error handling for required fields and enforced data types and constraints. - Introduced standardization for characteristics and skills. feat: Create script for extracting rules from PDF files - Developed `extract-rules.js` to extract text from PDF rulebooks and categorize rules. - Integrated `pdftotext` for PDF processing and created a searchable rules database. - Implemented rule categorization and indexing for efficient searching. feat: Implement RulesTab component for rule searching - Created `RulesTab.jsx` for searching and displaying rules with filtering options. - Added recent searches and quick reference buttons for user convenience. - Integrated API calls for fetching rules and displaying results dynamically. feat: Add test script for Rules API - Created `test-rules.js` to test the functionality of the Rules API endpoints. - Included tests for search and stats endpoints to ensure proper response handling.
20 lines
1.3 KiB
HTML
20 lines
1.3 KiB
HTML
<!doctype html>
|
|
<html><head><meta charset="utf-8"><title>christoffer - snapshot</title>
|
|
<style>body{font-family:Arial,Helvetica,sans-serif;color:#111;background:#fff;padding:20px}h1{font-size:20px}table{border-collapse:collapse;margin-bottom:12px}td,th{border:1px solid #ccc;padding:6px}</style>
|
|
</head><body>
|
|
<h1>Brother Gregor (christoffer)</h1>
|
|
<h2>Characteristics</h2>
|
|
<table><tr><th>ws</th><th>bs</th><th>s</th><th>t</th><th>ag</th><th>int</th><th>per</th><th>wp</th><th>fel</th></tr>
|
|
<tr><td>42</td><td>42</td><td>42</td><td>41</td><td>40</td><td>41</td><td>46</td><td>42</td><td>43</td></tr></table>
|
|
<h2>Weapons</h2>
|
|
<div><strong>Astartes Bolter-Godwyn</strong> — Range 100m; S/3/-; 1d10+9 X; Pen 4; Clip 28; Reload 1 Full; Two handed; Tearing</div><div><strong>Astartes Bolt Pistol</strong> — Range 30m; S/2/-; 1d10+9 X; Pen 4; Clip 14; Reload 1 Full; Tearing</div>
|
|
<h2>Gear</h2>
|
|
<ul><li>Test Knife x1</li><li>Astartes Frag Grenade x6</li><li>Astartes Krak Grenade x6</li><li>Sacris Claymore x2</li><li>Astartes Power Armour x2</li></ul>
|
|
<h2>Inventory</h2>
|
|
<ul><li>Astartes Frag Grenade x3</li><li>Astartes Krak Grenade x3</li></ul>
|
|
<h2>Fate / Wounds</h2>
|
|
<div>Fate: 2 (current 2)</div>
|
|
<div>Wounds: 24 (current 24)</div>
|
|
<h2>Talents</h2>
|
|
<div>Bolter Mastery, Deathwatch Training</div>
|
|
</body></html> |