Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibo committed Oct 30, 2023
1 parent b1d24ee commit 079051b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion epoke/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"access": "public"
},
"dependencies": {
"@pkmn/engine": "0.1.0-dev.028ab165",
"@pkmn/engine": "0.1.0-dev.12e7292c",
"@pkmn/spreads": "file:../spreads"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"repository": "github:pkmn/EPOke",
"license": "MIT",
"devDependencies": {
"@pkmn/eslint-config": "^5.3.0",
"@pkmn/eslint-config": "^6.0.0",
"@types/jest": "^29.5.6",
"@types/node": "^20.8.9",
"binaryen": "^116.0.0",
Expand Down
6 changes: 3 additions & 3 deletions spreads/src/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const softFloor = (x: number) =>
// purely through EVs with the parameters provided) nor is it guaranteed to only return a legal
// amount of EVs (the magnitude of EVs that would theoretically be required is important for the
// design of the higher-level algorithm).
// These equations were derived from the cartridge stat formulas by Orion Taylor (orion#8038).
// These equations were derived from the cartridge stat formulas by Orion Taylor (taylorott).
export function statToEV(
gen: Generation,
stat: StatID,
Expand Down Expand Up @@ -299,7 +299,7 @@ export function statToEV(
// NOTE: This method is neither guaranteed to hit a specific val (some values may be impossible
// purely through IVs with the parameters provided) nor is it guaranteed to only return a legal
// amount of IVs.
// These equations were derived from the cartridge stat formulas by Orion Taylor (orion#8038).
// These equations were derived from the cartridge stat formulas by Orion Taylor (taylorott).
export function statToIV(
gen: Generation,
stat: StatID,
Expand All @@ -311,7 +311,7 @@ export function statToIV(
) {
if (stat === 'hp' && base === 1) return 31;
const g = GEN(gen);
const n = gen < 3 ? 1 : nature?.plus === stat ? 1.1 : nature?.minus === stat ? 0.9 : 1;
const n = g < 3 ? 1 : nature?.plus === stat ? 1.1 : nature?.minus === stat ? 0.9 : 1;
const m = stat === 'hp'
? (100 / level) * (val - level - 9) - 2 * base
: (100 / level) * softCeil((val + 1) / n - 5) - 2 * base;
Expand Down

0 comments on commit 079051b

Please sign in to comment.