feat: calculate velocity boost for AB / MWD correctly (#11)

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.
This commit is contained in:
Patric Stout
2023-11-14 23:12:59 +01:00
committed by GitHub
parent 056a839f4e
commit 2b3bb585ed
4 changed files with 8 additions and 4 deletions

View File

@@ -84,8 +84,7 @@ export const fullFit = {
{
"flag": 21,
"quantity": 1,
"type_id": 2281,
"state": "Active"
"type_id": 2281
},
{
"flag": 22,

View File

@@ -18,7 +18,7 @@
"author": "Patric Stout <eveshipfit@truebrain.nl>",
"license": "MIT",
"dependencies": {
"@eveshipfit/dogma-engine": "^2.0.1",
"@eveshipfit/dogma-engine": "^2.1.0",
"clsx": "^2.0.0"
},
"devDependencies": {

View File

@@ -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>({});

View File

@@ -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;