Utils for Fifa Soccer Game dates
Nodejs 12 or higher need to be installed first
npm install fifarating
or
yarn add fifarating
Type this into your ts file.
import { AttributesUtils, CalculateUtils, ConfigUtils, Fifa, Position } from 'fifarating';
const fifa = Fifa.Fifa12;
const position = Position.GK;
const defaultOverall = 75;
const reputation = 5;
const attributes = AttributesUtils.init(defaultOverall);
console.log(ConfigUtils.fifa(fifa));
console.log(ConfigUtils.fifaPosition(fifa, position));
console.log(CalculateUtils.rawOverall(attributes, fifa, position));
console.log(CalculateUtils.displayOverall(attributes, fifa, position, reputation));
console.log(AttributesUtils.init(defaultOverall));
console.log(AttributesUtils.setRawOverall(AttributesUtils.init(defaultOverall), fifa, position, defaultOverall + 5));
console.log(AttributesUtils.generateRawOverall(fifa, position, defaultOverall));
Fifa 12 - Fifa 23
Copyright © 2023 - 2024 Dominik Hladik
All contents are licensed under the MIT license.