fifarating
v0.2.2
Published
Utils for Fifa Soccer Game player rating
Downloads
95
Maintainers
Readme
Utils for Fifa Soccer Game dates
🛠️ Install
Nodejs 12 or higher need to be installed first
npm install fifarating
or
yarn add fifarating
🚀 Quick start
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));
Supported versions of Fifa Soccer
Fifa 12 - Fifa 23
🪪 License
Copyright © 2023 - 2024 Dominik Hladik
All contents are licensed under the MIT license.