Skip to content

Commit

Permalink
feat: calculate velocity boost for AB / MWD correctly (#11)
Browse files Browse the repository at this point in the history
For this the dataset is modified to add effects and modifier.
Additionally, some bugs in dogma-engine resulted in wrong numbers, so we
bump that while at it.
  • Loading branch information
TrueBrain authored Nov 14, 2023
1 parent 056a839 commit 2b3bb58
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .storybook/fits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ export const fullFit = {
{
"flag": 21,
"quantity": 1,
"type_id": 2281,
"state": "Active"
"type_id": 2281
},
{
"flag": 22,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"author": "Patric Stout <[email protected]>",
"license": "MIT",
"dependencies": {
"@eveshipfit/dogma-engine": "^2.0.1",
"@eveshipfit/dogma-engine": "^2.1.0",
"clsx": "^2.0.0"
},
"devDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions src/DogmaEngineProvider/DogmaEngineProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ export interface DogmaEngineProps {
* console.log(stats);
* }
* ```
*
* Due to how the EVE SDE is constructed, a skill is by default
* assumed to be Level 1. This means that you most likely want
* to give all the skills to the calculate() function, even those
* that are not trained.
*/
export const DogmaEngineProvider = (props: DogmaEngineProps) => {
const [dogmaEngine, setDogmaEngine] = React.useState<DogmaEngine>({});
Expand Down
2 changes: 1 addition & 1 deletion src/EveDataProvider/EveDataProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { DogmaAttribute, DogmaEffect, TypeDogma, TypeID } from "./DataTypes";
// eslint-disable-next-line import/extensions
import * as esf_pb2 from "./esf_pb2.js";

const defaultDataUrl = "https://data.eveship.fit/20231023-3/";
const defaultDataUrl = "https://data.eveship.fit/20231023-4/";

interface DogmaData {
loaded?: boolean;
Expand Down

0 comments on commit 2b3bb58

Please sign in to comment.