Add structured talent mechanics

This commit is contained in:
JB
2026-07-25 17:54:37 -04:00
parent 1465a8c9b3
commit 9f295e4321
9 changed files with 112 additions and 26 deletions
+3
View File
@@ -271,6 +271,9 @@ CREATE TABLE IF NOT EXISTS talents (
id TEXT PRIMARY KEY,
name TEXT NOT NULL,
category TEXT NOT NULL CHECK(category IN ('Weapon', 'Backpack', 'Body Armor', 'Vest')),
cooldown_seconds REAL CHECK(cooldown_seconds IS NULL OR cooldown_seconds > 0),
duration_seconds REAL CHECK(duration_seconds IS NULL OR duration_seconds > 0),
max_stacks INTEGER CHECK(max_stacks IS NULL OR max_stacks > 0),
active INTEGER NOT NULL DEFAULT 1,
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL