Skip to content

Commit

Permalink
Fix gi-formula issues and add index generation (#1353)
Browse files Browse the repository at this point in the history
* Fix template

* Fix alias imports

* Bandaid traveler

* Generate index files as well

* Fix traveler

* Fix lint

* Fix type error

* Fix test, standardize templates

* Fix some oopsies

* Fix last oopsie
  • Loading branch information
nguyentvan7 authored Dec 1, 2023
1 parent 5f7b1bc commit 07d9a50
Show file tree
Hide file tree
Showing 316 changed files with 10,524 additions and 1,868 deletions.
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/Adventurer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'Adventurer'
const count = artCount(src)
const key: ArtifactSetKey = 'Adventurer'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/ArchaicPetra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'ArchaicPetra'
const count = artCount(src)
const key: ArtifactSetKey = 'ArchaicPetra'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/Berserker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'Berserker'
const count = artCount(src)
const key: ArtifactSetKey = 'Berserker'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/BlizzardStrayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'BlizzardStrayer'
const count = artCount(src)
const key: ArtifactSetKey = 'BlizzardStrayer'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/BloodstainedChivalry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'BloodstainedChivalry'
const count = artCount(src)
const key: ArtifactSetKey = 'BloodstainedChivalry'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/BraveHeart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'BraveHeart'
const count = artCount(src)
const key: ArtifactSetKey = 'BraveHeart'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/CrimsonWitchOfFlames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'CrimsonWitchOfFlames'
const count = artCount(src)
const key: ArtifactSetKey = 'CrimsonWitchOfFlames'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/DeepwoodMemories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'DeepwoodMemories'
const count = artCount(src)
const key: ArtifactSetKey = 'DeepwoodMemories'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/DefendersWill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'DefendersWill'
const count = artCount(src)
const key: ArtifactSetKey = 'DefendersWill'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/DesertPavilionChronicle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'DesertPavilionChronicle'
const count = artCount(src)
const key: ArtifactSetKey = 'DesertPavilionChronicle'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/EchoesOfAnOffering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'EchoesOfAnOffering'
const count = artCount(src)
const key: ArtifactSetKey = 'EchoesOfAnOffering'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/EmblemOfSeveredFate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'EmblemOfSeveredFate'
const count = artCount(src)
const key: ArtifactSetKey = 'EmblemOfSeveredFate'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/FlowerOfParadiseLost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'FlowerOfParadiseLost'
const count = artCount(src)
const key: ArtifactSetKey = 'FlowerOfParadiseLost'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/Gambler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'Gambler'
const count = artCount(src)
const key: ArtifactSetKey = 'Gambler'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/GildedDreams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'GildedDreams'
const count = artCount(src)
const key: ArtifactSetKey = 'GildedDreams'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
14 changes: 7 additions & 7 deletions libs/gi-formula/src/data/artifact/GladiatorsFinale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import {
} from '../util'
import { artCount, registerArt } from './util'

const src: ArtifactSetKey = 'GladiatorsFinale'
const count = artCount(src)
const key: ArtifactSetKey = 'GladiatorsFinale'
const count = artCount(key)
// TODO: Conditionals
const { someBoolConditional } = allBoolConditionals(src)
const { _someListConditional } = allListConditionals(src, [])
const { _someNumConditional } = allNumConditionals(src, 'unique', false)
const { someBoolConditional } = allBoolConditionals(key)
const { _someListConditional } = allListConditionals(key, [])
const { _someNumConditional } = allNumConditionals(key, 'unique', false)
// TODO: Non-stack values
const { someStack } = allStacks(src)
const { someStack } = allStacks(key)

export default registerArt(
src,
key,

// TODO:
// - Add self-buff formulas using `selfBuff.<buff target>.add(<buff value>)`
Expand Down
Loading

0 comments on commit 07d9a50

Please sign in to comment.