refactor: cleanup unused and unnecessary code
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable jsdoc/require-jsdoc */
|
||||
import { createSelector, createSlice } from "@reduxjs/toolkit"
|
||||
import { createSlice } from "@reduxjs/toolkit"
|
||||
import { CacheMap } from "optolith-database-schema/config/cache"
|
||||
import { TypeId, TypeMap } from "optolith-database-schema/config/types"
|
||||
import { init } from "../init.ts"
|
||||
@@ -614,889 +614,4 @@ export const selectStaticWeaponEnchantments = (state: RootState) =>
|
||||
export const selectStaticWeapons = (state: RootState) => state.database.weapons
|
||||
export const selectStaticZibiljaRituals = (state: RootState) => state.database.zibiljaRituals
|
||||
|
||||
export const selectAllAdvancedCombatSpecialAbilities = createSelector(
|
||||
selectStaticAdvancedCombatSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllAdvancedKarmaSpecialAbilities = createSelector(
|
||||
selectStaticAdvancedKarmaSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllAdvancedMagicalSpecialAbilities = createSelector(
|
||||
selectStaticAdvancedMagicalSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllAdvancedSkillSpecialAbilities = createSelector(
|
||||
selectStaticAdvancedSkillSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllAdvantages = createSelector(selectStaticAdvantages, xs => Object.values(xs))
|
||||
export const selectAllAmmunition = createSelector(selectStaticAmmunition, xs => Object.values(xs))
|
||||
export const selectAllAncestorGlyphs = createSelector(selectStaticAncestorGlyphs, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllAnimalCare = createSelector(selectStaticAnimalCare, xs => Object.values(xs))
|
||||
export const selectAllAnimalDiseases = createSelector(selectStaticAnimalDiseases, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllAnimals = createSelector(selectStaticAnimals, xs => Object.values(xs))
|
||||
export const selectAllAnimalShapePaths = createSelector(selectStaticAnimalShapePaths, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllAnimalShapes = createSelector(selectStaticAnimalShapes, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllAnimalShapeSizes = createSelector(selectStaticAnimalShapeSizes, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllAnimalTypes = createSelector(selectStaticAnimalTypes, xs => Object.values(xs))
|
||||
export const selectAllAnimistPowers = createSelector(selectStaticAnimistPowers, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllAnimistPowerTribes = createSelector(selectStaticAnimistPowerTribes, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllArcaneBardTraditions = createSelector(selectStaticArcaneBardTraditions, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllArcaneDancerTraditions = createSelector(
|
||||
selectStaticArcaneDancerTraditions,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllArcaneOrbEnchantments = createSelector(
|
||||
selectStaticArcaneOrbEnchantments,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllArmors = createSelector(selectStaticArmors, xs => Object.values(xs))
|
||||
export const selectAllArmorTypes = createSelector(selectStaticArmorTypes, xs => Object.values(xs))
|
||||
export const selectAllAspects = createSelector(selectStaticAspects, xs => Object.values(xs))
|
||||
export const selectAllAttireEnchantments = createSelector(selectStaticAttireEnchantments, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllAttributes = createSelector(selectStaticAttributes, xs => Object.values(xs))
|
||||
export const selectAllBandagesAndRemedies = createSelector(selectStaticBandagesAndRemedies, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllBlessedTraditions = createSelector(selectStaticBlessedTraditions, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllBlessings = createSelector(selectStaticBlessings, xs => Object.values(xs))
|
||||
export const selectAllBooks = createSelector(selectStaticBooks, xs => Object.values(xs))
|
||||
export const selectAllBowlEnchantments = createSelector(selectStaticBowlEnchantments, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllBrawlingSpecialAbilities = createSelector(
|
||||
selectStaticBrawlingSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllBrews = createSelector(selectStaticBrews, xs => Object.values(xs))
|
||||
export const selectAllCantrips = createSelector(selectStaticCantrips, xs => Object.values(xs))
|
||||
export const selectAllCauldronEnchantments = createSelector(selectStaticCauldronEnchantments, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllCeremonialItems = createSelector(selectStaticCeremonialItems, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllCeremonialItemSpecialAbilities = createSelector(
|
||||
selectStaticCeremonialItemSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllCeremonies = createSelector(selectStaticCeremonies, xs => Object.values(xs))
|
||||
export const selectAllChronicleEnchantments = createSelector(
|
||||
selectStaticChronicleEnchantments,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllCloseCombatTechniques = createSelector(
|
||||
selectStaticCloseCombatTechniques,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllClothes = createSelector(selectStaticClothes, xs => Object.values(xs))
|
||||
export const selectAllCombatSpecialAbilities = createSelector(
|
||||
selectStaticCombatSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllCombatStyleSpecialAbilities = createSelector(
|
||||
selectStaticCombatStyleSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllCommandSpecialAbilities = createSelector(
|
||||
selectStaticCommandSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllConditions = createSelector(selectStaticConditions, xs => Object.values(xs))
|
||||
export const selectAllContainers = createSelector(selectStaticContainers, xs => Object.values(xs))
|
||||
export const selectAllContinents = createSelector(selectStaticContinents, xs => Object.values(xs))
|
||||
export const selectAllCoreRules = createSelector(selectStaticCoreRules, xs => Object.values(xs))
|
||||
export const selectAllCultures = createSelector(selectStaticCultures, xs => Object.values(xs))
|
||||
export const selectAllCurses = createSelector(selectStaticCurses, xs => Object.values(xs))
|
||||
export const selectAllDaggerRituals = createSelector(selectStaticDaggerRituals, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllDerivedCharacteristics = createSelector(
|
||||
selectStaticDerivedCharacteristics,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllDisadvantages = createSelector(selectStaticDisadvantages, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllDiseases = createSelector(selectStaticDiseases, xs => Object.values(xs))
|
||||
export const selectAllDominationRituals = createSelector(selectStaticDominationRituals, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllElements = createSelector(selectStaticElements, xs => Object.values(xs))
|
||||
export const selectAllElixirs = createSelector(selectStaticElixirs, xs => Object.values(xs))
|
||||
export const selectAllElvenMagicalSongs = createSelector(selectStaticElvenMagicalSongs, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllEquipmentOfBlessedOnes = createSelector(
|
||||
selectStaticEquipmentOfBlessedOnes,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllEquipmentPackages = createSelector(selectStaticEquipmentPackages, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllExperienceLevels = createSelector(selectStaticExperienceLevels, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllEyeColors = createSelector(selectStaticEyeColors, xs => Object.values(xs))
|
||||
export const selectAllFamiliarSpecialAbilities = createSelector(
|
||||
selectStaticFamiliarSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllFamiliarsTricks = createSelector(selectStaticFamiliarsTricks, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllFatePointSexSpecialAbilities = createSelector(
|
||||
selectStaticFatePointSexSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllFatePointSpecialAbilities = createSelector(
|
||||
selectStaticFatePointSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllFocusRules = createSelector(selectStaticFocusRules, xs => Object.values(xs))
|
||||
export const selectAllFocusRuleSubjects = createSelector(selectStaticFocusRuleSubjects, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllFoolsHatEnchantments = createSelector(selectStaticFoolsHatEnchantments, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllGemsAndPreciousStones = createSelector(
|
||||
selectStaticGemsAndPreciousStones,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllGeneralSpecialAbilities = createSelector(
|
||||
selectStaticGeneralSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllGeodeRituals = createSelector(selectStaticGeodeRituals, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllHairColors = createSelector(selectStaticHairColors, xs => Object.values(xs))
|
||||
export const selectAllIlluminationLightSources = createSelector(
|
||||
selectStaticIlluminationLightSources,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllIlluminationRefillsAndSupplies = createSelector(
|
||||
selectStaticIlluminationRefillsAndSupplies,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllInstrumentEnchantments = createSelector(
|
||||
selectStaticInstrumentEnchantments,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllJesterTricks = createSelector(selectStaticJesterTricks, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllJewelry = createSelector(selectStaticJewelry, xs => Object.values(xs))
|
||||
export const selectAllKarmaSpecialAbilities = createSelector(
|
||||
selectStaticKarmaSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllKirchenpraegungen = createSelector(selectStaticKirchenpraegungen, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllKrallenkettenzauber = createSelector(selectStaticKrallenkettenzauber, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllLanguages = createSelector(selectStaticLanguages, xs => Object.values(xs))
|
||||
export const selectAllLessonsCurricula = createSelector(selectStaticLessonsCurricula, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllLessonsGuidelines = createSelector(selectStaticLessonsGuidelines, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllLiebesspielzeug = createSelector(selectStaticLiebesspielzeug, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllLiturgicalChants = createSelector(selectStaticLiturgicalChants, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllLiturgicalStyleSpecialAbilities = createSelector(
|
||||
selectStaticLiturgicalStyleSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllLocales = createSelector(selectStaticLocales, xs => Object.values(xs))
|
||||
export const selectAllLuxuryGoods = createSelector(selectStaticLuxuryGoods, xs => Object.values(xs))
|
||||
export const selectAllLycantropicGifts = createSelector(selectStaticLycantropicGifts, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllMagicalArtifacts = createSelector(selectStaticMagicalArtifacts, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllMagicalDances = createSelector(selectStaticMagicalDances, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllMagicalMelodies = createSelector(selectStaticMagicalMelodies, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllMagicalRunes = createSelector(selectStaticMagicalRunes, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllMagicalSigns = createSelector(selectStaticMagicalSigns, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllMagicalSpecialAbilities = createSelector(
|
||||
selectStaticMagicalSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllMagicalTraditions = createSelector(selectStaticMagicalTraditions, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllMagicStyleSpecialAbilities = createSelector(
|
||||
selectStaticMagicStyleSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllMetaConditions = createSelector(selectStaticMetaConditions, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllMusicalInstruments = createSelector(selectStaticMusicalInstruments, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllOptionalRules = createSelector(selectStaticOptionalRules, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllOrbEnchantments = createSelector(selectStaticOrbEnchantments, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllOrienteeringAids = createSelector(selectStaticOrienteeringAids, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllPactCategories = createSelector(selectStaticPactCategories, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllPactGifts = createSelector(selectStaticPactGifts, xs => Object.values(xs))
|
||||
export const selectAllPatronCategories = createSelector(selectStaticPatronCategories, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllPatrons = createSelector(selectStaticPatrons, xs => Object.values(xs))
|
||||
export const selectAllPersonalityTraits = createSelector(selectStaticPersonalityTraits, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllPoisons = createSelector(selectStaticPoisons, xs => Object.values(xs))
|
||||
export const selectAllProfessions = createSelector(selectStaticProfessions, xs => Object.values(xs))
|
||||
export const selectAllProperties = createSelector(selectStaticProperties, xs => Object.values(xs))
|
||||
export const selectAllProtectiveWardingCircleSpecialAbilities = createSelector(
|
||||
selectStaticProtectiveWardingCircleSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllPublications = createSelector(selectStaticPublications, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllRaces = createSelector(selectStaticRaces, xs => Object.values(xs))
|
||||
export const selectAllRangedCombatTechniques = createSelector(
|
||||
selectStaticRangedCombatTechniques,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllReaches = createSelector(selectStaticReaches, xs => Object.values(xs))
|
||||
export const selectAllRegions = createSelector(selectStaticRegions, xs => Object.values(xs))
|
||||
export const selectAllRingEnchantments = createSelector(selectStaticRingEnchantments, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllRituals = createSelector(selectStaticRituals, xs => Object.values(xs))
|
||||
export const selectAllRopesAndChains = createSelector(selectStaticRopesAndChains, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllScripts = createSelector(selectStaticScripts, xs => Object.values(xs))
|
||||
export const selectAllSermons = createSelector(selectStaticSermons, xs => Object.values(xs))
|
||||
export const selectAllServices = createSelector(selectStaticServices, xs => Object.values(xs))
|
||||
export const selectAllSexPractices = createSelector(selectStaticSexPractices, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllSexSpecialAbilities = createSelector(selectStaticSexSpecialAbilities, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllSickleRituals = createSelector(selectStaticSickleRituals, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllSikaryanDrainSpecialAbilities = createSelector(
|
||||
selectStaticSikaryanDrainSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllSkillGroups = createSelector(selectStaticSkillGroups, xs => Object.values(xs))
|
||||
export const selectAllSkillModificationLevels = createSelector(
|
||||
selectStaticSkillModificationLevels,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllSkills = createSelector(selectStaticSkills, xs => Object.values(xs))
|
||||
export const selectAllSkillStyleSpecialAbilities = createSelector(
|
||||
selectStaticSkillStyleSpecialAbilities,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllSocialStatuses = createSelector(selectStaticSocialStatuses, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllSpells = createSelector(selectStaticSpells, xs => Object.values(xs))
|
||||
export const selectAllSpellSwordEnchantments = createSelector(
|
||||
selectStaticSpellSwordEnchantments,
|
||||
xs => Object.values(xs),
|
||||
)
|
||||
export const selectAllStaffEnchantments = createSelector(selectStaticStaffEnchantments, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllStates = createSelector(selectStaticStates, xs => Object.values(xs))
|
||||
export const selectAllStationary = createSelector(selectStaticStationary, xs => Object.values(xs))
|
||||
export const selectAllTalismans = createSelector(selectStaticTalismans, xs => Object.values(xs))
|
||||
export const selectAllTargetCategories = createSelector(selectStaticTargetCategories, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllThievesTools = createSelector(selectStaticThievesTools, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllToolsOfTheTrade = createSelector(selectStaticToolsOfTheTrade, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllToyEnchantments = createSelector(selectStaticToyEnchantments, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllTradeSecrets = createSelector(selectStaticTradeSecrets, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllTravelGearAndTools = createSelector(selectStaticTravelGearAndTools, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllTrinkhornzauber = createSelector(selectStaticTrinkhornzauber, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllUi = createSelector(selectStaticUi, xs => Object.values(xs))
|
||||
export const selectAllVampiricGifts = createSelector(selectStaticVampiricGifts, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllVehicles = createSelector(selectStaticVehicles, xs => Object.values(xs))
|
||||
export const selectAllVisions = createSelector(selectStaticVisions, xs => Object.values(xs))
|
||||
export const selectAllWandEnchantments = createSelector(selectStaticWandEnchantments, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllWeaponAccessories = createSelector(selectStaticWeaponAccessories, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllWeaponEnchantments = createSelector(selectStaticWeaponEnchantments, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
export const selectAllWeapons = createSelector(selectStaticWeapons, xs => Object.values(xs))
|
||||
export const selectAllZibiljaRituals = createSelector(selectStaticZibiljaRituals, xs =>
|
||||
Object.values(xs),
|
||||
)
|
||||
|
||||
export const selectGetAdvancedCombatSpecialAbility = createSelector(
|
||||
selectStaticAdvancedCombatSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAdvancedKarmaSpecialAbility = createSelector(
|
||||
selectStaticAdvancedKarmaSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAdvancedMagicalSpecialAbility = createSelector(
|
||||
selectStaticAdvancedMagicalSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAdvancedSkillSpecialAbility = createSelector(
|
||||
selectStaticAdvancedSkillSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAdvantage = createSelector(
|
||||
selectStaticAdvantages,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAmmunition = createSelector(
|
||||
selectStaticAmmunition,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAncestorGlyph = createSelector(
|
||||
selectStaticAncestorGlyphs,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAnimalCare = createSelector(
|
||||
selectStaticAnimalCare,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAnimalDisease = createSelector(
|
||||
selectStaticAnimalDiseases,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAnimal = createSelector(selectStaticAnimals, xs => (id: number) => xs[id])
|
||||
export const selectGetAnimalShapePath = createSelector(
|
||||
selectStaticAnimalShapePaths,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAnimalShape = createSelector(
|
||||
selectStaticAnimalShapes,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAnimalShapeSize = createSelector(
|
||||
selectStaticAnimalShapeSizes,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAnimalType = createSelector(
|
||||
selectStaticAnimalTypes,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAnimistPower = createSelector(
|
||||
selectStaticAnimistPowers,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAnimistPowerTribe = createSelector(
|
||||
selectStaticAnimistPowerTribes,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetArcaneBardTradition = createSelector(
|
||||
selectStaticArcaneBardTraditions,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetArcaneDancerTradition = createSelector(
|
||||
selectStaticArcaneDancerTraditions,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetArcaneOrbEnchantment = createSelector(
|
||||
selectStaticArcaneOrbEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetArmor = createSelector(selectStaticArmors, xs => (id: number) => xs[id])
|
||||
export const selectGetArmorType = createSelector(
|
||||
selectStaticArmorTypes,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAspect = createSelector(selectStaticAspects, xs => (id: number) => xs[id])
|
||||
export const selectGetAttireEnchantment = createSelector(
|
||||
selectStaticAttireEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetAttribute = createSelector(
|
||||
selectStaticAttributes,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetBandagesAndRemedies = createSelector(
|
||||
selectStaticBandagesAndRemedies,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetBlessedTradition = createSelector(
|
||||
selectStaticBlessedTraditions,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetBlessing = createSelector(selectStaticBlessings, xs => (id: number) => xs[id])
|
||||
export const selectGetBook = createSelector(selectStaticBooks, xs => (id: number) => xs[id])
|
||||
export const selectGetBowlEnchantment = createSelector(
|
||||
selectStaticBowlEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetBrawlingSpecialAbility = createSelector(
|
||||
selectStaticBrawlingSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetBrew = createSelector(selectStaticBrews, xs => (id: number) => xs[id])
|
||||
export const selectGetCantrip = createSelector(selectStaticCantrips, xs => (id: number) => xs[id])
|
||||
export const selectGetCauldronEnchantment = createSelector(
|
||||
selectStaticCauldronEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetCeremonialItem = createSelector(
|
||||
selectStaticCeremonialItems,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetCeremonialItemSpecialAbility = createSelector(
|
||||
selectStaticCeremonialItemSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetCeremony = createSelector(
|
||||
selectStaticCeremonies,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetChronicleEnchantment = createSelector(
|
||||
selectStaticChronicleEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetCloseCombatTechnique = createSelector(
|
||||
selectStaticCloseCombatTechniques,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetClothes = createSelector(selectStaticClothes, xs => (id: number) => xs[id])
|
||||
export const selectGetCombatSpecialAbility = createSelector(
|
||||
selectStaticCombatSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetCombatStyleSpecialAbility = createSelector(
|
||||
selectStaticCombatStyleSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetCommandSpecialAbility = createSelector(
|
||||
selectStaticCommandSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetCondition = createSelector(
|
||||
selectStaticConditions,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetContainer = createSelector(
|
||||
selectStaticContainers,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetContinent = createSelector(
|
||||
selectStaticContinents,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetCoreRule = createSelector(selectStaticCoreRules, xs => (id: number) => xs[id])
|
||||
export const selectGetCulture = createSelector(selectStaticCultures, xs => (id: number) => xs[id])
|
||||
export const selectGetCurse = createSelector(selectStaticCurses, xs => (id: number) => xs[id])
|
||||
export const selectGetDaggerRitual = createSelector(
|
||||
selectStaticDaggerRituals,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetDerivedCharacteristic = createSelector(
|
||||
selectStaticDerivedCharacteristics,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetDisadvantage = createSelector(
|
||||
selectStaticDisadvantages,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetDisease = createSelector(selectStaticDiseases, xs => (id: number) => xs[id])
|
||||
export const selectGetDominationRitual = createSelector(
|
||||
selectStaticDominationRituals,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetElement = createSelector(selectStaticElements, xs => (id: number) => xs[id])
|
||||
export const selectGetElixir = createSelector(selectStaticElixirs, xs => (id: number) => xs[id])
|
||||
export const selectGetElvenMagicalSong = createSelector(
|
||||
selectStaticElvenMagicalSongs,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetEquipmentOfBlessedOnes = createSelector(
|
||||
selectStaticEquipmentOfBlessedOnes,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetEquipmentPackage = createSelector(
|
||||
selectStaticEquipmentPackages,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetExperienceLevel = createSelector(
|
||||
selectStaticExperienceLevels,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetEyeColor = createSelector(selectStaticEyeColors, xs => (id: number) => xs[id])
|
||||
export const selectGetFamiliarSpecialAbility = createSelector(
|
||||
selectStaticFamiliarSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetFamiliarsTrick = createSelector(
|
||||
selectStaticFamiliarsTricks,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetFatePointSexSpecialAbility = createSelector(
|
||||
selectStaticFatePointSexSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetFatePointSpecialAbility = createSelector(
|
||||
selectStaticFatePointSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetFocusRule = createSelector(
|
||||
selectStaticFocusRules,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetFocusRuleSubject = createSelector(
|
||||
selectStaticFocusRuleSubjects,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetFoolsHatEnchantment = createSelector(
|
||||
selectStaticFoolsHatEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetGemsAndPreciousStone = createSelector(
|
||||
selectStaticGemsAndPreciousStones,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetGeneralSpecialAbility = createSelector(
|
||||
selectStaticGeneralSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetGeodeRitual = createSelector(
|
||||
selectStaticGeodeRituals,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetHairColor = createSelector(
|
||||
selectStaticHairColors,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetIlluminationLightSource = createSelector(
|
||||
selectStaticIlluminationLightSources,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetIlluminationRefillsAndSupplies = createSelector(
|
||||
selectStaticIlluminationRefillsAndSupplies,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetInstrumentEnchantment = createSelector(
|
||||
selectStaticInstrumentEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetJesterTrick = createSelector(
|
||||
selectStaticJesterTricks,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetJewelr = createSelector(selectStaticJewelry, xs => (id: number) => xs[id])
|
||||
export const selectGetKarmaSpecialAbility = createSelector(
|
||||
selectStaticKarmaSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetKirchenpraegunge = createSelector(
|
||||
selectStaticKirchenpraegungen,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetKrallenkettenzauber = createSelector(
|
||||
selectStaticKrallenkettenzauber,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetLanguage = createSelector(selectStaticLanguages, xs => (id: number) => xs[id])
|
||||
export const selectGetLessonsCurricul = createSelector(
|
||||
selectStaticLessonsCurricula,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetLessonsGuideline = createSelector(
|
||||
selectStaticLessonsGuidelines,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetLiebesspielzeu = createSelector(
|
||||
selectStaticLiebesspielzeug,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetLiturgicalChant = createSelector(
|
||||
selectStaticLiturgicalChants,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetLiturgicalStyleSpecialAbility = createSelector(
|
||||
selectStaticLiturgicalStyleSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetLocale = createSelector(selectStaticLocales, xs => (id: string) => xs[id])
|
||||
export const selectGetLuxuryGood = createSelector(
|
||||
selectStaticLuxuryGoods,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetLycantropicGift = createSelector(
|
||||
selectStaticLycantropicGifts,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetMagicalArtifact = createSelector(
|
||||
selectStaticMagicalArtifacts,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetMagicalDance = createSelector(
|
||||
selectStaticMagicalDances,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetMagicalMelody = createSelector(
|
||||
selectStaticMagicalMelodies,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetMagicalRune = createSelector(
|
||||
selectStaticMagicalRunes,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetMagicalSign = createSelector(
|
||||
selectStaticMagicalSigns,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetMagicalSpecialAbility = createSelector(
|
||||
selectStaticMagicalSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetMagicalTradition = createSelector(
|
||||
selectStaticMagicalTraditions,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetMagicStyleSpecialAbility = createSelector(
|
||||
selectStaticMagicStyleSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetMetaCondition = createSelector(
|
||||
selectStaticMetaConditions,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetMusicalInstrument = createSelector(
|
||||
selectStaticMusicalInstruments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetOptionalRule = createSelector(
|
||||
selectStaticOptionalRules,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetOrbEnchantment = createSelector(
|
||||
selectStaticOrbEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetOrienteeringAid = createSelector(
|
||||
selectStaticOrienteeringAids,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetPactCategory = createSelector(
|
||||
selectStaticPactCategories,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetPactGift = createSelector(selectStaticPactGifts, xs => (id: number) => xs[id])
|
||||
export const selectGetPatronCategory = createSelector(
|
||||
selectStaticPatronCategories,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetPatron = createSelector(selectStaticPatrons, xs => (id: number) => xs[id])
|
||||
export const selectGetPersonalityTrait = createSelector(
|
||||
selectStaticPersonalityTraits,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetPoison = createSelector(selectStaticPoisons, xs => (id: number) => xs[id])
|
||||
export const selectGetProfession = createSelector(
|
||||
selectStaticProfessions,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetProperty = createSelector(
|
||||
selectStaticProperties,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetProtectiveWardingCircleSpecialAbility = createSelector(
|
||||
selectStaticProtectiveWardingCircleSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetPublication = createSelector(
|
||||
selectStaticPublications,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetRace = createSelector(selectStaticRaces, xs => (id: number) => xs[id])
|
||||
export const selectGetRangedCombatTechnique = createSelector(
|
||||
selectStaticRangedCombatTechniques,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetReache = createSelector(selectStaticReaches, xs => (id: number) => xs[id])
|
||||
export const selectGetRegion = createSelector(selectStaticRegions, xs => (id: number) => xs[id])
|
||||
export const selectGetRingEnchantment = createSelector(
|
||||
selectStaticRingEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetRitual = createSelector(selectStaticRituals, xs => (id: number) => xs[id])
|
||||
export const selectGetRopesAndChain = createSelector(
|
||||
selectStaticRopesAndChains,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetScript = createSelector(selectStaticScripts, xs => (id: number) => xs[id])
|
||||
export const selectGetSermon = createSelector(selectStaticSermons, xs => (id: number) => xs[id])
|
||||
export const selectGetService = createSelector(selectStaticServices, xs => (id: number) => xs[id])
|
||||
export const selectGetSexPractice = createSelector(
|
||||
selectStaticSexPractices,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetSexSpecialAbility = createSelector(
|
||||
selectStaticSexSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetSickleRitual = createSelector(
|
||||
selectStaticSickleRituals,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetSikaryanDrainSpecialAbility = createSelector(
|
||||
selectStaticSikaryanDrainSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetSkillGroup = createSelector(
|
||||
selectStaticSkillGroups,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetSkillModificationLevel = createSelector(
|
||||
selectStaticSkillModificationLevels,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetSkill = createSelector(selectStaticSkills, xs => (id: number) => xs[id])
|
||||
export const selectGetSkillStyleSpecialAbility = createSelector(
|
||||
selectStaticSkillStyleSpecialAbilities,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetSocialStatuse = createSelector(
|
||||
selectStaticSocialStatuses,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetSpell = createSelector(selectStaticSpells, xs => (id: number) => xs[id])
|
||||
export const selectGetSpellSwordEnchantment = createSelector(
|
||||
selectStaticSpellSwordEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetStaffEnchantment = createSelector(
|
||||
selectStaticStaffEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetState = createSelector(selectStaticStates, xs => (id: number) => xs[id])
|
||||
export const selectGetStationary = createSelector(
|
||||
selectStaticStationary,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetTalisman = createSelector(selectStaticTalismans, xs => (id: number) => xs[id])
|
||||
export const selectGetTargetCategory = createSelector(
|
||||
selectStaticTargetCategories,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetThievesTool = createSelector(
|
||||
selectStaticThievesTools,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetToolsOfTheTrad = createSelector(
|
||||
selectStaticToolsOfTheTrade,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetToyEnchantment = createSelector(
|
||||
selectStaticToyEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetTradeSecret = createSelector(
|
||||
selectStaticTradeSecrets,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetTravelGearAndTool = createSelector(
|
||||
selectStaticTravelGearAndTools,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetTrinkhornzauber = createSelector(
|
||||
selectStaticTrinkhornzauber,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetUI = createSelector(selectStaticUi, xs => (id: string) => xs[id])
|
||||
export const selectGetVampiricGift = createSelector(
|
||||
selectStaticVampiricGifts,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetVehicle = createSelector(selectStaticVehicles, xs => (id: number) => xs[id])
|
||||
export const selectGetVision = createSelector(selectStaticVisions, xs => (id: number) => xs[id])
|
||||
export const selectGetWandEnchantment = createSelector(
|
||||
selectStaticWandEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetWeaponAccessory = createSelector(
|
||||
selectStaticWeaponAccessories,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetWeaponEnchantment = createSelector(
|
||||
selectStaticWeaponEnchantments,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
export const selectGetWeapon = createSelector(selectStaticWeapons, xs => (id: number) => xs[id])
|
||||
export const selectGetZibiljaRitual = createSelector(
|
||||
selectStaticZibiljaRituals,
|
||||
xs => (id: number) => xs[id],
|
||||
)
|
||||
|
||||
export const databaseReducer = databaseSlice.reducer
|
||||
|
||||
@@ -547,7 +547,7 @@ const TagPropertyMap: {
|
||||
Vehicle: id => ({ tag: "Vehicle", vehicle: id }),
|
||||
Weapon: id => ({ tag: "Weapon", weapon: id }),
|
||||
WeaponAccessory: id => ({ tag: "WeaponAccessory", weapon_accessory: id }),
|
||||
} as const
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an identifier object from a type name and a plain identifier.
|
||||
|
||||
Reference in New Issue
Block a user