Partially complete conversion to SourceEntries

source_entries
Brian Haley 2019-11-12 22:35:44 -05:00
parent c327528523
commit 9f94cbbe71
2 changed files with 312 additions and 5 deletions

View File

@ -5,8 +5,6 @@ PRAGMA foreign_keys = ON; -- database requires foreign key checking to be turned
INSERT INTO feats ( INSERT INTO feats (
feat_id, feat_id,
sources_id,
sources_pages,
short_name, short_name,
descr, descr,
action_id, action_id,
@ -4039,3 +4037,305 @@ INSERT INTO feats_traits (feat_id, trait_id) VALUES (867,99); -- Relentless Stal
INSERT INTO feats_traits (feat_id, trait_id) VALUES (868,31); -- Wilderness Spotter, General INSERT INTO feats_traits (feat_id, trait_id) VALUES (868,31); -- Wilderness Spotter, General
INSERT INTO feats_traits (feat_id, trait_id) VALUES (868,65); -- Wilderness Spotter, Skill INSERT INTO feats_traits (feat_id, trait_id) VALUES (868,65); -- Wilderness Spotter, Skill
COMMIT; COMMIT;
BEGIN TRANSACTION;
INSERT INTO sourceentries (
sourceentry_id
,sources_id
,page_start
,page_stop
)
VALUES
-- 1100 to TODO are reserved for CRB feats --
-- Dwarven Feats --
(1100, 1, 36, 36) -- Dwarven Lore, Dwarven Weapon Familiarity, Rock Runner, Stonecunning, Unburdened Iron, Vengeful Hatred, Boulder Roll --
,(1101, 1, 37, 37) -- Dwarven Weapon Cunning, Mountain's Stoutness, Stonewalker, Dwarven Weapon Expertise --
-- Elven Feats --
,(1102, 1, 40, 40) -- Ancestral Longevity, Elven Lore, Elven Weapon Familiarity, Forlorn, Nimble Elf, Otherworldly Magic, Unwavering Mien, Ageless Patience --
,(1103, 1, 41, 41) -- Elven Weapon Elegance, Elf Step, Expert Longevity, Universal Longevity, Elven Weapon Expertise --
-- Gnomish Feats --
,(1104, 1, 44, 44) -- Animal Acomplice, Burrow Elocutionist, Fey Fellowship, First World Magic, Gnome Obsession, Gnome Weapon Familiarity, Illusion Sense --
,(1105, 1, 45, 45) -- Animal Elocutionist, Energized Font, Gnome Weapon Innovator, First World Adepty, Vivacious Conduit, Gnome Weapon Expertise --
-- Goblin Feats --
,(1106, 1, 48, 48) -- Burn It!, City Scavenger, Goblin Lore, Goblin Scuttle, Goblin Song, Goblin Weapon Familiarity, Junk Tinker, Rough Rider --
,(1107, 1, 49, 49) -- Very Sneaky, Goblin Weapon Frenzy, Cave Climber, Skittering Scuttle, Goblin Weapon Expertise, Very, Very Sneaky --
-- Halfling Feats --
,(1108, 1, 52, 52) -- Distracting Shadows, Halfling Lore, Halfling Luck, Halfling Weapon Familiarity, Sure Feat, Titan Slinger, Unfettered Halfling, Watchful Halfling --
,(1109, 1, 53, 53) -- Cultural Adaptability, Halfling Weapon Trickster, Guiding Luck, Irrepressible, Ceaseless Shadows, Halfling Weapon Expert --
-- Human Feats --
,(1110, 1, 57, 57) -- Adapted Cantrip, Cooperative Nature, General Training, Haughty Obstinacy, Natural Ambition, Natural Skill, Unconventional Weaponry, Adaptive Adept, Clever Improviser, Cooperative Soul, Incredible Improvisation --
-- Half-Elf Feats --
,(1111, 1, 58, 58) -- Multitalented, Unconventional Expertise, Elf Atavism, Inspire Imitation, Supernatural Charm --
-- Half-Orc Feats --
,(1112, 1, 59, 59) -- Monstrous Peacemaker, Orc Ferocity, Orc Sight, Orc Superstition, Orc Weapon Familiarity, Orc Weapon Carnage, Victorious Vigor, Pervasive Superstition, Incredible Ferocity, Orc Weapon Expertise --
-- Alchemist Feats --
,(1113, 1, 76, 76) -- Alchemical Familiar, Alchemical Savant, Far Lobber, Quick Bomber --
,(1114, 1, 77, 77) -- Poison Resistance (Alchemist), Revivifying Mutagen, Smoke Bomb, Calculated Splash, Efficient Alchemy --
,(1115, 1, 78, 78) -- Enduring Alchemy, Combine Elixirs, Debilitating Bomb, Directional Bombs --
,(1116, 1, 79, 79) -- Feral Mutagen, Powerful Alchemy, Sticky Bomb, Elastic Mutagen, Expanded Splash, Greater Debilitating Bomb, Merciful Elixir, Potent Poisoner, Extended Elixir, Invincible Mutagen, Uncanny Bombs --
,(1117, 1, 80, 80) -- Glib Mutagen, Greater Merficul Elixir, True Debilitating Bomb, Eternal Elixir, Exploitative Bomb --
,(1118, 1, 81, 81) -- Genius Mutagen, Persistent Mutagen, Improbable Elixir, Mindblank Mutagen, Miracle Worker, Perfect Debilitation, Craft Philosopher's Stone, Mega Bomb, Perfect Mutagen --
-- Barbarian --
,(1119, 1, 88, 88) -- Acute Vision, Moment of Clarity, Raging Intimidation, Raging Thrower, Sudden Charge, Acute Scent --
,(1120, 1, 89, 89) -- Furious Finish, No Escape, Shake it Off, Fast Movement, Raging Athlete, Swipe --
,(1121, 1, 90, 90) -- Wounded Rage, Animal Skin, Attack of Opportunity, Brutal Bully, Cleave, Dragon's Rage Breath --
,(1122, 1, 91, 91) -- Giant's Stature, Spirit's Interference, Animal Rage, Furious Bully, Renewed Vigor, Sudden Leap, Thrash, Come and Get Me, Great Cleave, Knockback, Terrifying Howl --
,(1123, 1, 92, 92) -- Dragon's Rage Wings, Furious Grab, Predator's Pounce, Spirit's Wrath, Titan's Stature --
,(1124, 1, 93, 93) -- Awesome Blow, Giant's Lunge, Vengeful Strike, Whirlwind Strike, Dragon Transformation, Brutal Critical, Perfect Clarity, Contagious Rage, Quaking Stomp --
-- Bard --
,(1125, 1, 99, 99) -- Bardic Lore, Lingering Composition, Reach Spell --
,(1126, 1, 122, 122) -- Reach Spell --
,(1127, 1, 134, 134) -- Reach Spell --
,(1128, 1, 198, 198) -- Reach Spell --
,(1129, 1, 210, 210) -- Reach Spell --
,(1130, 1, 100, 100) -- Versatile Performance, Cantrip Expansion, Esoteric Polymath, Inspire Competence, Loremaster's Etude, Multifarious Muse, Inspire Defense --
,(1131, 1, 101, 101) -- Melodious Spell, Triple Time, Versatile Signature, Dirge of Doom, Harmonize, Steady Spellcasting, Eclectic Skill --
,(1132, 1, 102, 102) -- Inspire Heroics, Know-It-All, House of Imaginary Walls, Quickened Casting, Unusual Composition, Eclectic Polymath --
,(1133, 1, 103, 103) -- Inspirational Focus, Allegro, Soothing Ballad, True Hypercognition, Effortless Concentration -- Studious Capacity, Deep Lore, Eternal Composition, Fatal Aria, Perfect Encore, Symphony of the Muse --
,(1134, 1, 139, 139) -- Effortless Concentration --
,(1135, 1, 201, 201) -- Effortless Concentration --
,(1136, 1, 213, 213) -- Effortless Concentration --
-- Champion --
,(1137, 1, 109, 109) -- --
;
COMMIT;
BEGIN TRANSACTION
INSERT INTO feat_sourceentries (
id
,feat_id
,sourceentry_id
)
VALUES
-- Dwarven Feats --
(1, 1, 1100) -- Dwarven Lore --
,(2, 2, 1100) -- Dwarven Weapon Familiarity --
,(3, 3, 1100) -- Rock Runner --
,(4, 4, 1100) -- Stonecunning --
,(5, 5, 1100) -- Unburdened Iron --
,(6, 6, 1100) -- Vengeful Hatred --
,(7, 7, 1100) -- Boulder Roll --
,(8, 8, 1101) -- Dwarven Weapon Cunning --
,(9, 9, 1101) -- Mountain's Stoutness --
,(10, 10, 1101) -- Stonewalker --
,(11, 11, 1101) -- Dwarven Weapon Expertise --
-- Elven Feats --
,(12, 12, 1102) -- Ancestral Longevity --
,(13, 13, 1102) -- Elven Lore --
,(14, 14, 1102) -- Elven Weapon Familiarity --
,(15, 15, 1102) -- Forlorn --
,(16, 16, 1102) -- Nimble Elf --
,(17, 17, 1102) -- Otherworldly Magic --
,(18, 18, 1102) -- Unwavering Mien --
,(19, 19, 1102) -- Ageless Patience --
,(20, 20, 1103) -- Elven Weapon Elegance --
,(21, 21, 1103) -- Elf Step --
,(22, 22, 1103) -- Expert Longevity --
,(23, 23, 1103) -- Universal Longevity --
,(24, 24, 1103) -- Elven Weapon Expertise --
-- Gnomish Feats --
,(25, 25, 1104) -- Animal Acomplice --
,(26, 26, 1104) -- Burrow Elocutionist --
,(27, 27, 1104) -- Fey Fellowship --
,(28, 28, 1104) -- First World Magic --
,(29, 29, 1104) -- Gnome Obsession --
,(30, 30, 1104) -- Gnome Weapon Familiarity --
,(31, 31, 1104) -- Illusion Sense --
,(32, 32, 1105) -- Animal Elocutionist --
,(33, 33, 1105) -- Energized Font --
,(34, 34, 1105) -- Gnome Weapon Innovator --
,(35, 35, 1105) -- First World Adepty --
,(36, 36, 1105) -- Vivacious Conduit --
,(37, 37, 1105) -- Gnome Weapon Expertise --
-- Goblin Feats --
,(38, 38, 1106) -- Burn It! --
,(39, 39, 1106) -- City Scavenger --
,(40, 40, 1106) -- Goblin Lore --
,(41, 41, 1106) -- Goblin Scuttle --
,(42, 42, 1106) -- Goblin Song --
,(43, 43, 1106) -- Goblin Weapon Familiarity --
,(44, 44, 1106) -- Junk Tinker --
,(45, 45, 1106) -- Rough Rider --
,(46, 46, 1107) -- Very Sneaky --
,(47, 47, 1107) -- Goblin Weapon Frenzy --
,(48, 48, 1107) -- Cave Climber --
,(49, 49, 1107) -- Skittering Scuttle --
,(50, 50, 1107) -- Goblin Weapon Expertise --
,(51, 51, 1107) -- Very, Very Sneaky --
-- Halfing Feats --
,(52, 52, 1108) -- Distracting Shadows --
,(53, 53, 1108) -- Halfling Lore --
,(54, 54, 1108) -- Halfling Luck --
,(55, 55, 1108) -- Halfling Weapon Familiarity --
,(56, 56, 1108) -- Sure Feat --
,(57, 57, 1108) -- Titan Slinger --
,(58, 58, 1108) -- Unfettered Halfling --
,(59, 59, 1108) -- Watchful Halfling --
,(60, 60, 1109) -- Cultural Adaptability --
,(61, 61, 1109) -- Halfling Weapon Trickster --
,(62, 62, 1109) -- Guiding Luck --
,(63, 63, 1109) -- Irrepressible --
,(64, 64, 1109) -- Ceaseless Shadows --
,(65, 65, 1109) -- Halfling Weapon Expert --
-- Human Feats --
,(66, 66, 1110) -- Adapted Cantrip --
,(67, 67, 1110) -- Cooperative Nature --
,(68, 68, 1110) -- General Training --
,(69, 69, 1110) -- Haughty Obstinacy --
,(70, 70, 1110) -- Natural Ambition --
,(71, 71, 1110) -- Natural Skill --
,(72, 72, 1110) -- Unconventional Weaponry --
,(73, 73, 1110) -- Adaptive Adept --
,(74, 74, 1110) -- Clever Improviser --
,(75, 75, 1110) -- Cooperative Soul --
,(76, 76, 1110) -- Incredible Improvisation --
,(77, 77, 1111) -- Multitalented --
,(78, 78, 1111) -- Unconventional Expertise --
-- Half-Elf Feats --
,(79, 79, 1111) -- Elf Atavism --
,(80, 80, 1111) -- Inspire Imitation --
,(81, 81, 1111) -- Supernatural Charm --
-- Half-Orc Feats --
,(82, 82, 1112) -- Monstrous Peacemaker --
,(83, 83, 1112) -- Orc Ferocity --
,(84, 84, 1112) -- Orc Sight --
,(85, 85, 1112) -- Orc Superstition --
,(86, 86, 1112) -- Orc Weapon Familiarity --
,(87, 87, 1112) -- Orc Weapon Carnage --
,(88, 88, 1112) -- Victorious Vigor --
,(89, 89, 1112) -- Pervasive Superstition --
,(90, 90, 1112) -- Incredible Ferocity --
,(91, 91, 1112) -- Orc Weapon Expertise --
-- Alchemist Feats --
,(92, 92, 1113) -- Alchemical Familiar --
,(93, 93, 1113) -- Alchemical Savant --
,(94, 94, 1113) -- Far Lobber --
,(95, 95, 1113) -- Quick Bomber --
,(96, 96, 1114) -- Poison Resistance (Alchemist) --
,(97, 97, 1114) -- Revivifying Mutagen --
,(98, 98, 1114) -- Smoke Bomb --
,(99, 99, 1114) -- Calculated Splash --
,(100, 100, 1114) -- Efficient Alchemy --
,(101, 101, 1115) -- Enduring Alchemy --
,(102, 102, 1115) -- Combine Elixirs --
,(103, 103, 1115) -- Debilitating Bomb --
,(104, 104, 1115) -- Directional Bombs --
,(105, 105, 1116) -- Feral Mutagen --
,(106, 106, 1116) -- Powerful Alchemy --
,(107, 107, 1116) -- Sticky Bomb --
,(108, 108, 1116) -- Elastic Mutagen --
,(109, 109, 1116) -- Expanded Splash --
,(110, 110, 1116) -- Greater Debilitating Bomb --
,(111, 111, 1116) -- Merciful Elixir --
,(112, 112, 1116) -- Potent Poisoner --
,(113, 113, 1116) -- Extended Elixir --
,(114, 114, 1116) -- Invincible Mutagen --
,(115, 115, 1116) -- Uncanny Bombs --
,(116, 116, 1117) -- Glib Mutagen --
,(117, 117, 1117) -- Greater Merficul Elixir --
,(118, 118, 1117) -- True Debilitating Bomb --
,(119, 119, 1117) -- Eternal Elixir --
,(120, 120, 1117) -- Exploitative Bomb --
,(121, 121, 1118) -- Genius Mutagen --
,(122, 122, 1118) -- Persistent Mutagen --
,(123, 123, 1118) -- Improbable Elixir --
,(124, 124, 1118) -- Mindblank Mutagen --
,(125, 125, 1118) -- Miracle Worker --
,(126, 126, 1118) -- Perfect Debilitation --
,(127, 127, 1118) -- Craft Philosopher's Stone --
,(128, 128, 1118) -- Mega Bomb --
,(129, 129, 1118) -- Perfect Mutagen --
-- Barbarian --
,(130, 130, 1119) -- Acute Vision --
,(131, 131, 1119) -- Moment of Clarity --
,(132, 132, 1119) -- Raging Intimidation --
,(133, 133, 1119) -- Raging Thrower --
,(134, 134, 1119) -- Sudden Charge --
,(135, 135, 1119) -- Acute Scent --
,(136, 136, 1120) -- Furious Finish --
,(137, 137, 1120) -- No Escape --
,(138, 138, 1120) -- Shake it Off --
,(139, 139, 1120) -- Fast Movement --
,(140, 140, 1120) -- Raging Athlete --
,(141, 141, 1120) -- Swipe --
,(142, 142, 1121) -- Wounded Rage --
,(143, 143, 1121) -- Animal Skin --
,(144, 144, 1121) -- Attack of Opportunity --
,(145, 145, 1121) -- Brutal Bully --
,(146, 146, 1121) -- Cleave --
,(147, 147, 1121) -- Dragon's Rage Breath --
,(148, 148, 1122) -- Giant's Stature --
,(149, 149, 1122) -- Spirit's Interference --
,(150, 150, 1122) -- Animal Rage --
,(151, 151, 1122) -- Furious Bully --
,(152, 152, 1122) -- Renewed Vigor --
,(153, 153, 1122) -- Sudden Leap --
,(154, 154, 1122) -- Thrash --
,(155, 155, 1122) -- Come and Get Me --
,(156, 156, 1122) -- Great Cleave --
,(157, 157, 1122) -- Knockback --
,(158, 158, 1122) -- Terrifying Howl --
,(159, 159, 1123) -- Dragon's Rage Wings --
,(160, 160, 1123) -- Furious Grab --
,(161, 161, 1123) -- Predator's Pounce --
,(162, 162, 1123) -- Spirit's Wrath --
,(163, 163, 1123) -- Titan's Stature --
,(164, 164, 1124) -- Awesome Blow --
,(165, 165, 1124) -- Giant's Lunge --
,(166, 166, 1124) -- Vengeful Strike --
,(167, 167, 1124) -- Whirlwind Strike --
,(168, 168, 1124) -- Dragon Transformation --
,(169, 169, 1124) -- Brutal Critical --
,(170, 170, 1124) -- Perfect Clarity --
,(171, 171, 1124) -- Contagious Rage --
,(172, 172, 1124) -- Quaking Stomp --
-- Bard --
,(173, 173, 1125) -- Bardic Lore --
,(174, 174, 1125) -- Lingering Composition --
,(175, 175, 1126) -- Reach Spell --
,(176, 176, 1127) -- Reach Spell --
,(177, 177, 1128) -- Reach Spell --
,(178, 178, 1129) -- Reach Spell --
,(179, 179, 1130) -- Versatile Performance --
,(180, 180, 1130) -- Cantrip Expansion --
,(181, 181, 1130) -- Esoteric Polymath --
,(182, 182, 1130) -- Inspire Competence --
,(183, 183, 1130) -- Loremaster's Etude --
,(184, 184, 1130) -- Multifarious Muse --
,(185, 185, 1130) -- Inspire Defense --
,(186, 186, 1131) -- Melodious Spell --
,(187, 187, 1131) -- Triple Time --
,(188, 188, 1131) -- Versatile Signature --
,(189, 189, 1131) -- Dirge of Doom --
,(190, 190, 1131) -- Harmonize --
,(191, 191, 1131) -- Steady Spellcasting --
,(192, 192, 1131) -- Eclectic Skill --
,(193, 193, 1132) -- Inspire Heroics --
,(194, 194, 1132) -- Know-It-All --
,(195, 195, 1132) -- House of Imaginary Walls --
,(196, 196, 1132) -- Quickened Casting --
,(197, 197, 1132) -- Unusual Composition --
,(198, 198, 1132) -- Eclectic Polymath --
,(199, 199, 1133) -- Inspirational Focus --
,(200, 200, 1133) -- Allegro --
,(201, 201, 1133) -- Soothing Ballad --
,(202, 202, 1133) -- True Hypercognition --
,(203, 203, 1133) -- Effortless Concentration --
,(204, 204, 1134) -- Effortless Concentration --
,(205, 205, 1135) -- Effortless Concentration --
,(206, 206, 1136) -- Effortless Concentration --
,(207, 207, 1133) -- Studious Capacity --
,(208, 208, 1133) -- Deep Lore --
,(209, 209, 1133) -- Eternal Composition --
,(210, 210, 1133) -- Fatal Aria --
,(211, 211, 1133) -- Perfect Encore --
,(212, 212, 1133) -- Symphony of the Muse --
-- Champion --
,(213, 213, 1137) -- Deity's Domain --
,(213, 213, 1137) -- Ranged Reprisal --
,(213, 213, 1137) -- Unimpeded Step --
,(213, 213, 1137) -- Weight of Guilt --
,(213, 213, 1137) -- Divine Grace --
,(213, 213, 1137) -- Dragon Slayer Oath --
;
COMMIT;

View File

@ -7,15 +7,12 @@
CREATE TABLE feats ( CREATE TABLE feats (
feat_id INTEGER PRIMARY KEY, feat_id INTEGER PRIMARY KEY,
sources_id INTEGER NOT NULL,
sources_pages TEXT NOT NULL,
short_name TEXT NOT NULL UNIQUE, short_name TEXT NOT NULL UNIQUE,
descr TEXT NOT NULL, descr TEXT NOT NULL,
action_id INTEGER, action_id INTEGER,
frequency_id INTEGER, frequency_id INTEGER,
triggers_id INTEGER, triggers_id INTEGER,
requirements_id INTEGER, requirements_id INTEGER,
FOREIGN KEY (sources_id) REFERENCES sources(sources_id),
FOREIGN KEY (action_id) REFERENCES actioncosts(actioncosts_id), FOREIGN KEY (action_id) REFERENCES actioncosts(actioncosts_id),
FOREIGN KEY (frequency_id) REFERENCES frequency(freq_id), FOREIGN KEY (frequency_id) REFERENCES frequency(freq_id),
FOREIGN KEY (triggers_id) REFERENCES triggers(triggers_id), FOREIGN KEY (triggers_id) REFERENCES triggers(triggers_id),
@ -45,3 +42,13 @@ CREATE TABLE feats_traits (
FOREIGN KEY (feat_id) REFERENCES feats(feat_id), FOREIGN KEY (feat_id) REFERENCES feats(feat_id),
FOREIGN KEY (trait_id) REFERENCES traits(trait_id) FOREIGN KEY (trait_id) REFERENCES traits(trait_id)
); );
-- Joining table --
CREATE TABLE feat_sourceentries (
id INTEGER PRIMARY KEY
,feat_id INTEGER NOT NULL
,sourceentry_id INTEGER NOT NULL
,UNIQUE (id, feat_id, sourceentry_id)
,FOREIGN KEY (feat_id) REFERENCES feat(feat_id)
,FOREIGN KEY (sourceentry_id) REFERENCES sourceentries(sourceentry_id)
);