define how to roll and how tables work

add some test tables
This commit is contained in:
2019-11-04 00:42:51 -07:00
parent 8e9342d624
commit 9bf7a2788a
15 changed files with 666 additions and 14 deletions

292
src/services/tableData.ts Normal file
View File

@ -0,0 +1,292 @@
import { TableConfig } from './tableService';
let tableData: TableConfig[] = [
{
name: 'Forms of Government',
dice: [100],
possibleResults: [
{
keys: [1, 8],
value: 'Autocracy'
},
{
keys: [9, 13],
value: 'Bureaucracy'
},
{
keys: [14, 19],
value: 'Confederacy'
},
{
keys: [20, 22],
value: 'Democracy'
},
{
keys: [23, 27],
value: 'Dictatorship'
},
{
keys: [28, 42],
value: 'Feudalism'
},
{
keys: [43, 44],
value: 'Gerontocracy'
},
{
keys: [45, 53],
value: 'Hierarchy'
},
{
keys: [54, 56],
value: 'Magocracy'
},
{
keys: [57, 58],
value: 'Matriarchy'
},
{
keys: [59, 64],
value: 'Militocracy'
},
{
keys: [65, 74],
value: 'Monarchy'
},
{
keys: [75, 78],
value: 'Oligarchy'
},
{
keys: [79, 80],
value: 'Patriarchy'
},
{
keys: [81, 83],
value: 'Meritocracy'
},
{
keys: [84, 85],
value: 'Plutocracy'
},
{
keys: [86, 92],
value: 'Republic'
},
{
keys: [93, 94],
value: 'Satrapy'
},
{
keys: [95],
value: 'Kleptocracy'
},
{
keys: [96, 100],
value: 'Theocracy'
},
]
},
{
name: 'World-Shaking Events',
dice: [10],
possibleResults: [
{
keys: [1],
value: 'Rise of a leader or an era'
},
{
keys: [2],
value: 'Fall of a leader or an era'
},
{
keys: [3],
value: 'Cataclysmic disaster'
},
{
keys: [4],
value: 'Assault or invasion'
},
{
keys: [5],
value: 'Rebellion, revolution, overthrow'
},
{
keys: [6],
value: 'Extinction or depletion'
},
{
keys: [7],
value: 'New organization'
},
{
keys: [8],
value: 'Discovery, expansion, invention'
},
{
keys: [9],
value: 'Prediction, omen, prophecy'
},
{
keys: [10],
value: 'Myth and legend'
}
]
},
{
name: 'Leader Types',
dice: [6],
possibleResults: [
{
keys: [1],
value: 'Political'
},
{
keys: [2],
value: 'Religious'
},
{
keys: [3],
value: 'Military'
},
{
keys: [4],
value: 'Crime/underworld'
},
{
keys: [5],
value: 'Art/culture'
},
{
keys: [6],
value: 'Philosophy/learning/magic'
}
]
},
{
name: 'Cataclysmic Disasters',
dice: [10],
possibleResults: [
{
keys: [1],
value: 'Earthquake'
},
{
keys: [2],
value: 'Famine/drought'
},
{
keys: [3],
value: 'Fire'
},
{
keys: [4],
value: 'Flood'
},
{
keys: [5],
value: 'Plague/disease'
},
{
keys: [6],
value: 'Rain of fire (meteoric impact)'
},
{
keys: [7],
value: 'Storm (hurrican, tornado, tsunami)'
},
{
keys: [8],
value: 'Volcanic eruption'
},
{
keys: [9],
value: 'Magic gone awry or a planar warp'
},
{
keys: [10],
value: 'Divine judgment'
}
]
},
{
name: 'Invading Forces',
dice: [8],
possibleResults: [
{
keys: [1],
value: 'A criminal enterprise'
},
{
keys: [2],
value: 'Monsters or a unique monster'
},
{
keys: [3],
value: 'A planar threat'
},
{
keys: [4],
value: 'A past adversary reawakened, reborn, or resurgent'
},
{
keys: [5],
value: 'A splinter faction'
},
{
keys: [6],
value: 'A savage tribe'
},
{
keys: [7],
value: 'A secret society'
},
{
keys: [8],
value: 'A traitorous ally'
}
]
},
{
name: 'Extinction or Depletion',
dice: [8],
possibleResults: [
{
keys: [1],
value: 'A kind of animal (insect, bird, fish, livestock)'
},
{
keys: [2],
value: 'Habitable land'
},
{
keys: [3],
value: 'Magic or magic-users (all magic, or specific kinds or schools of magic)'
},
{
keys: [4],
value: 'A mineral resource (gems, metals, ores)'
},
{
keys: [5],
value: 'A type of monster (unicorn, manticore, dragon)'
},
{
keys: [6],
value: 'A people (family line, clan, culture, race)'
},
{
keys: [7],
value: 'A kind of plant (crop, tree, herb, forest)'
},
{
keys: [8],
value: 'A waterway (river, lake, ocean)'
}
]
},
];
export {
tableData
}