.dungeon/module/config.mjs
2024-03-01 23:28:18 -07:00

73 lines
1.9 KiB
JavaScript

export const statDice = [ `d4`, `d6`, `d8`, `d10`, `d12`, `d20` ];
export const trainingLevels = [
{ key: "locked", label: "dotdungeon.trainingLevel.locked", value: -1 },
{ key: "untrained", label: "dotdungeon.trainingLevel.untrained", value: 0 },
{ key: "trained", label: "dotdungeon.trainingLevel.trained", value: 2 },
{ key: "expert", label: "dotdungeon.trainingLevel.expert", value: 4 },
];
export const damageTypes = [ `slashing`, `piercing`, `smashing`, `gun`, `neon`, `shadow`, `solar` ];
export const ammoTypes = [`quivers`, `mags`, `cells`];
export const stats = [ `build`, `meta`, `presence`, `hands`, `tilt`, `rng` ];
export const buildSkills = [ `defense`, `magic`, `melee`, `platforming`, `strength`, ];
export const metaSkills = [ `alchemy`, `arcanum`, `dreams`, `lore`, `navigation`, ];
export const presenceSkills = [ `animal_handling`, `perception`, `sneak`, `speech`, `vibes`, ];
export const handsSkills = [ `accuracy`, `crafting`, `engineering`, `explosives`, `piloting`, ];
export const allSkills = [
...buildSkills,
...metaSkills,
...presenceSkills,
...handsSkills,
];
export const skills = {
build: buildSkills,
meta: metaSkills,
presence: presenceSkills,
hands: handsSkills,
};
export const defaultItemTier = `simple`;
export const itemTiers = [
`simple`, `greater`,
`rare`, `legendary`
];
export const syncMilestones = [
{ value: 20, andReturn: true },
{ value: 40, andReturn: false },
{ value: 60, andReturn: true },
{ value: 80, andReturn: false },
{ value: 100, andReturn: true },
];
export const syncDice = `1d20`;
export const localizerConfig = {
subKeyPattern: /@(?<key>[a-zA-Z\.]+)/gm,
maxDepth: 10,
};
export default {
stats,
statDice,
trainingLevels,
damageTypes,
ammoTypes,
buildSkills,
metaSkills,
presenceSkills,
handsSkills,
allSkills,
skills,
defaultItemTier,
itemTiers,
syncMilestones,
syncDice,
localizerConfig
};