character_starter.sql 1.1 KB

1234567891011121314151617181920212223
  1. -- Sunrise's own starting state for a created character. Each value is the one the default save
  2. -- gives its characters. The items go ahead of the packages' new-character table, which names no
  3. -- subclass. Classes: 0 Titan, 1 Hunter, 2 Warlock.
  4. CREATE TABLE starter_character (
  5. id INTEGER PRIMARY KEY CHECK (id = 1),
  6. level INTEGER NOT NULL CHECK (level BETWEEN 0 AND 255),
  7. preview_available INTEGER NOT NULL CHECK (preview_available IN (0, 1)),
  8. appearance_value REAL NOT NULL,
  9. last_orbited_destination INTEGER NOT NULL,
  10. content_bypass INTEGER NOT NULL CHECK (content_bypass IN (0, 1))
  11. ) STRICT;
  12. CREATE TABLE starter_items (
  13. class INTEGER NOT NULL CHECK (class BETWEEN 0 AND 2),
  14. position INTEGER NOT NULL CHECK (position >= 0),
  15. definition_hash INTEGER NOT NULL CHECK (definition_hash BETWEEN 1 AND 4294967295),
  16. PRIMARY KEY (class, position)
  17. ) STRICT;
  18. INSERT INTO starter_character VALUES (1, 50, 1, 1.0, 308080871, 1);
  19. INSERT INTO starter_items VALUES (0, 0, 3105935002);
  20. INSERT INTO starter_items VALUES (1, 0, 3635991036);
  21. INSERT INTO starter_items VALUES (2, 0, 3481861797);