Skip to content

Commit

Permalink
regenerate sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
frzyc committed Nov 9, 2024
1 parent 99e64e2 commit 781d722
Show file tree
Hide file tree
Showing 104 changed files with 1,352 additions and 624 deletions.
19 changes: 13 additions & 6 deletions libs/sr/formula/src/data/lightCone/sheets/ASecretVow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { subscript } from '@genshin-optimizer/pando/engine'
import { cmpGE, subscript } from '@genshin-optimizer/pando/engine'
import type { LightConeKey } from '@genshin-optimizer/sr/consts'
import { allStats, mappedStats } from '@genshin-optimizer/sr/stats'
import {
Expand All @@ -17,7 +17,7 @@ import { entriesForLightCone } from '../util'
const key: LightConeKey = 'ASecretVow'
const data_gen = allStats.lightCone[key]
const dm = mappedStats.lightCone[key]

const lcCount = own.common.count.sheet(key)
const { superimpose } = own.lightCone

// TODO: Add conditionals
Expand All @@ -28,20 +28,27 @@ const { numConditional } = allNumConditionals(key, true, 0, 2)
const sheet = register(
key,
// Handles base stats and passive buffs
entriesForLightCone(data_gen),
entriesForLightCone(key, data_gen),

// TODO: Add formulas/buffs
// Conditional buffs
registerBuff(
'cond_dmg_',
ownBuff.premod.dmg_.add(
boolConditional.ifOn(subscript(superimpose, dm.cond_dmg_))
boolConditional.ifOn(
cmpGE(lcCount, 1, subscript(superimpose, dm.cond_dmg_))
)
)
),
registerBuff(
'team_dmg_',
teamBuff.premod.dmg_.add(listConditional.map({ val1: 1, val2: 2 }))
teamBuff.premod.dmg_.add(
cmpGE(lcCount, 1, listConditional.map({ val1: 1, val2: 2 }))
)
),
registerBuff('enemy_defIgn_', enemyDebuff.common.defIgn_.add(numConditional))
registerBuff(
'enemy_defIgn_',
enemyDebuff.common.defIgn_.add(cmpGE(lcCount, 1, numConditional))
)
)
export default sheet
19 changes: 13 additions & 6 deletions libs/sr/formula/src/data/lightCone/sheets/Adversarial.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { subscript } from '@genshin-optimizer/pando/engine'
import { cmpGE, subscript } from '@genshin-optimizer/pando/engine'
import type { LightConeKey } from '@genshin-optimizer/sr/consts'
import { allStats, mappedStats } from '@genshin-optimizer/sr/stats'
import {
Expand All @@ -17,7 +17,7 @@ import { entriesForLightCone } from '../util'
const key: LightConeKey = 'Adversarial'
const data_gen = allStats.lightCone[key]
const dm = mappedStats.lightCone[key]

const lcCount = own.common.count.sheet(key)
const { superimpose } = own.lightCone

// TODO: Add conditionals
Expand All @@ -28,20 +28,27 @@ const { numConditional } = allNumConditionals(key, true, 0, 2)
const sheet = register(
key,
// Handles base stats and passive buffs
entriesForLightCone(data_gen),
entriesForLightCone(key, data_gen),

// TODO: Add formulas/buffs
// Conditional buffs
registerBuff(
'cond_dmg_',
ownBuff.premod.dmg_.add(
boolConditional.ifOn(subscript(superimpose, dm.cond_dmg_))
boolConditional.ifOn(
cmpGE(lcCount, 1, subscript(superimpose, dm.cond_dmg_))
)
)
),
registerBuff(
'team_dmg_',
teamBuff.premod.dmg_.add(listConditional.map({ val1: 1, val2: 2 }))
teamBuff.premod.dmg_.add(
cmpGE(lcCount, 1, listConditional.map({ val1: 1, val2: 2 }))
)
),
registerBuff('enemy_defIgn_', enemyDebuff.common.defIgn_.add(numConditional))
registerBuff(
'enemy_defIgn_',
enemyDebuff.common.defIgn_.add(cmpGE(lcCount, 1, numConditional))
)
)
export default sheet
19 changes: 13 additions & 6 deletions libs/sr/formula/src/data/lightCone/sheets/AfterTheCharmonyFall.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { subscript } from '@genshin-optimizer/pando/engine'
import { cmpGE, subscript } from '@genshin-optimizer/pando/engine'
import type { LightConeKey } from '@genshin-optimizer/sr/consts'
import { allStats, mappedStats } from '@genshin-optimizer/sr/stats'
import {
Expand All @@ -17,7 +17,7 @@ import { entriesForLightCone } from '../util'
const key: LightConeKey = 'AfterTheCharmonyFall'
const data_gen = allStats.lightCone[key]
const dm = mappedStats.lightCone[key]

const lcCount = own.common.count.sheet(key)
const { superimpose } = own.lightCone

// TODO: Add conditionals
Expand All @@ -28,20 +28,27 @@ const { numConditional } = allNumConditionals(key, true, 0, 2)
const sheet = register(
key,
// Handles base stats and passive buffs
entriesForLightCone(data_gen),
entriesForLightCone(key, data_gen),

// TODO: Add formulas/buffs
// Conditional buffs
registerBuff(
'cond_dmg_',
ownBuff.premod.dmg_.add(
boolConditional.ifOn(subscript(superimpose, dm.cond_dmg_))
boolConditional.ifOn(
cmpGE(lcCount, 1, subscript(superimpose, dm.cond_dmg_))
)
)
),
registerBuff(
'team_dmg_',
teamBuff.premod.dmg_.add(listConditional.map({ val1: 1, val2: 2 }))
teamBuff.premod.dmg_.add(
cmpGE(lcCount, 1, listConditional.map({ val1: 1, val2: 2 }))
)
),
registerBuff('enemy_defIgn_', enemyDebuff.common.defIgn_.add(numConditional))
registerBuff(
'enemy_defIgn_',
enemyDebuff.common.defIgn_.add(cmpGE(lcCount, 1, numConditional))
)
)
export default sheet
19 changes: 13 additions & 6 deletions libs/sr/formula/src/data/lightCone/sheets/AlongThePassingShore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { subscript } from '@genshin-optimizer/pando/engine'
import { cmpGE, subscript } from '@genshin-optimizer/pando/engine'
import type { LightConeKey } from '@genshin-optimizer/sr/consts'
import { allStats, mappedStats } from '@genshin-optimizer/sr/stats'
import {
Expand All @@ -17,7 +17,7 @@ import { entriesForLightCone } from '../util'
const key: LightConeKey = 'AlongThePassingShore'
const data_gen = allStats.lightCone[key]
const dm = mappedStats.lightCone[key]

const lcCount = own.common.count.sheet(key)
const { superimpose } = own.lightCone

// TODO: Add conditionals
Expand All @@ -28,20 +28,27 @@ const { numConditional } = allNumConditionals(key, true, 0, 2)
const sheet = register(
key,
// Handles base stats and passive buffs
entriesForLightCone(data_gen),
entriesForLightCone(key, data_gen),

// TODO: Add formulas/buffs
// Conditional buffs
registerBuff(
'cond_dmg_',
ownBuff.premod.dmg_.add(
boolConditional.ifOn(subscript(superimpose, dm.cond_dmg_))
boolConditional.ifOn(
cmpGE(lcCount, 1, subscript(superimpose, dm.cond_dmg_))
)
)
),
registerBuff(
'team_dmg_',
teamBuff.premod.dmg_.add(listConditional.map({ val1: 1, val2: 2 }))
teamBuff.premod.dmg_.add(
cmpGE(lcCount, 1, listConditional.map({ val1: 1, val2: 2 }))
)
),
registerBuff('enemy_defIgn_', enemyDebuff.common.defIgn_.add(numConditional))
registerBuff(
'enemy_defIgn_',
enemyDebuff.common.defIgn_.add(cmpGE(lcCount, 1, numConditional))
)
)
export default sheet
19 changes: 13 additions & 6 deletions libs/sr/formula/src/data/lightCone/sheets/Amber.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { subscript } from '@genshin-optimizer/pando/engine'
import { cmpGE, subscript } from '@genshin-optimizer/pando/engine'
import type { LightConeKey } from '@genshin-optimizer/sr/consts'
import { allStats, mappedStats } from '@genshin-optimizer/sr/stats'
import {
Expand All @@ -17,7 +17,7 @@ import { entriesForLightCone } from '../util'
const key: LightConeKey = 'Amber'
const data_gen = allStats.lightCone[key]
const dm = mappedStats.lightCone[key]

const lcCount = own.common.count.sheet(key)
const { superimpose } = own.lightCone

// TODO: Add conditionals
Expand All @@ -28,20 +28,27 @@ const { numConditional } = allNumConditionals(key, true, 0, 2)
const sheet = register(
key,
// Handles base stats and passive buffs
entriesForLightCone(data_gen),
entriesForLightCone(key, data_gen),

// TODO: Add formulas/buffs
// Conditional buffs
registerBuff(
'cond_dmg_',
ownBuff.premod.dmg_.add(
boolConditional.ifOn(subscript(superimpose, dm.cond_dmg_))
boolConditional.ifOn(
cmpGE(lcCount, 1, subscript(superimpose, dm.cond_dmg_))
)
)
),
registerBuff(
'team_dmg_',
teamBuff.premod.dmg_.add(listConditional.map({ val1: 1, val2: 2 }))
teamBuff.premod.dmg_.add(
cmpGE(lcCount, 1, listConditional.map({ val1: 1, val2: 2 }))
)
),
registerBuff('enemy_defIgn_', enemyDebuff.common.defIgn_.add(numConditional))
registerBuff(
'enemy_defIgn_',
enemyDebuff.common.defIgn_.add(cmpGE(lcCount, 1, numConditional))
)
)
export default sheet
19 changes: 13 additions & 6 deletions libs/sr/formula/src/data/lightCone/sheets/AnInstantBeforeAGaze.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { subscript } from '@genshin-optimizer/pando/engine'
import { cmpGE, subscript } from '@genshin-optimizer/pando/engine'
import type { LightConeKey } from '@genshin-optimizer/sr/consts'
import { allStats, mappedStats } from '@genshin-optimizer/sr/stats'
import {
Expand All @@ -17,7 +17,7 @@ import { entriesForLightCone } from '../util'
const key: LightConeKey = 'AnInstantBeforeAGaze'
const data_gen = allStats.lightCone[key]
const dm = mappedStats.lightCone[key]

const lcCount = own.common.count.sheet(key)
const { superimpose } = own.lightCone

// TODO: Add conditionals
Expand All @@ -28,20 +28,27 @@ const { numConditional } = allNumConditionals(key, true, 0, 2)
const sheet = register(
key,
// Handles base stats and passive buffs
entriesForLightCone(data_gen),
entriesForLightCone(key, data_gen),

// TODO: Add formulas/buffs
// Conditional buffs
registerBuff(
'cond_dmg_',
ownBuff.premod.dmg_.add(
boolConditional.ifOn(subscript(superimpose, dm.cond_dmg_))
boolConditional.ifOn(
cmpGE(lcCount, 1, subscript(superimpose, dm.cond_dmg_))
)
)
),
registerBuff(
'team_dmg_',
teamBuff.premod.dmg_.add(listConditional.map({ val1: 1, val2: 2 }))
teamBuff.premod.dmg_.add(
cmpGE(lcCount, 1, listConditional.map({ val1: 1, val2: 2 }))
)
),
registerBuff('enemy_defIgn_', enemyDebuff.common.defIgn_.add(numConditional))
registerBuff(
'enemy_defIgn_',
enemyDebuff.common.defIgn_.add(cmpGE(lcCount, 1, numConditional))
)
)
export default sheet
19 changes: 13 additions & 6 deletions libs/sr/formula/src/data/lightCone/sheets/Arrows.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { subscript } from '@genshin-optimizer/pando/engine'
import { cmpGE, subscript } from '@genshin-optimizer/pando/engine'
import type { LightConeKey } from '@genshin-optimizer/sr/consts'
import { allStats, mappedStats } from '@genshin-optimizer/sr/stats'
import {
Expand All @@ -17,7 +17,7 @@ import { entriesForLightCone } from '../util'
const key: LightConeKey = 'Arrows'
const data_gen = allStats.lightCone[key]
const dm = mappedStats.lightCone[key]

const lcCount = own.common.count.sheet(key)
const { superimpose } = own.lightCone

// TODO: Add conditionals
Expand All @@ -28,20 +28,27 @@ const { numConditional } = allNumConditionals(key, true, 0, 2)
const sheet = register(
key,
// Handles base stats and passive buffs
entriesForLightCone(data_gen),
entriesForLightCone(key, data_gen),

// TODO: Add formulas/buffs
// Conditional buffs
registerBuff(
'cond_dmg_',
ownBuff.premod.dmg_.add(
boolConditional.ifOn(subscript(superimpose, dm.cond_dmg_))
boolConditional.ifOn(
cmpGE(lcCount, 1, subscript(superimpose, dm.cond_dmg_))
)
)
),
registerBuff(
'team_dmg_',
teamBuff.premod.dmg_.add(listConditional.map({ val1: 1, val2: 2 }))
teamBuff.premod.dmg_.add(
cmpGE(lcCount, 1, listConditional.map({ val1: 1, val2: 2 }))
)
),
registerBuff('enemy_defIgn_', enemyDebuff.common.defIgn_.add(numConditional))
registerBuff(
'enemy_defIgn_',
enemyDebuff.common.defIgn_.add(cmpGE(lcCount, 1, numConditional))
)
)
export default sheet
19 changes: 13 additions & 6 deletions libs/sr/formula/src/data/lightCone/sheets/BaptismOfPureThought.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { subscript } from '@genshin-optimizer/pando/engine'
import { cmpGE, subscript } from '@genshin-optimizer/pando/engine'
import type { LightConeKey } from '@genshin-optimizer/sr/consts'
import { allStats, mappedStats } from '@genshin-optimizer/sr/stats'
import {
Expand All @@ -17,7 +17,7 @@ import { entriesForLightCone } from '../util'
const key: LightConeKey = 'BaptismOfPureThought'
const data_gen = allStats.lightCone[key]
const dm = mappedStats.lightCone[key]

const lcCount = own.common.count.sheet(key)
const { superimpose } = own.lightCone

// TODO: Add conditionals
Expand All @@ -28,20 +28,27 @@ const { numConditional } = allNumConditionals(key, true, 0, 2)
const sheet = register(
key,
// Handles base stats and passive buffs
entriesForLightCone(data_gen),
entriesForLightCone(key, data_gen),

// TODO: Add formulas/buffs
// Conditional buffs
registerBuff(
'cond_dmg_',
ownBuff.premod.dmg_.add(
boolConditional.ifOn(subscript(superimpose, dm.cond_dmg_))
boolConditional.ifOn(
cmpGE(lcCount, 1, subscript(superimpose, dm.cond_dmg_))
)
)
),
registerBuff(
'team_dmg_',
teamBuff.premod.dmg_.add(listConditional.map({ val1: 1, val2: 2 }))
teamBuff.premod.dmg_.add(
cmpGE(lcCount, 1, listConditional.map({ val1: 1, val2: 2 }))
)
),
registerBuff('enemy_defIgn_', enemyDebuff.common.defIgn_.add(numConditional))
registerBuff(
'enemy_defIgn_',
enemyDebuff.common.defIgn_.add(cmpGE(lcCount, 1, numConditional))
)
)
export default sheet
Loading

0 comments on commit 781d722

Please sign in to comment.