Skip to content

Convert Mona artifact format to GO format

License

Notifications You must be signed in to change notification settings

YuehaiTeam/mona_to_go

Repository files navigation

Mona to GO

Utility to convert Mona artifact format to GO format

Usage

monaToGO(monaData: MonaData, minLevel: number = 0, minRarity: number = 3)

import monaToGO from "@mr-quin/mona_to_go";

const converted = monaToGO(monaArtifact, 12, 4) // rarity should be 3 or higher

console.log(JSON.stringify(converted))

The converted result can then be merged with existing GO database:

import { mergeGO } from "@mr-quin/mona_to_go";

const merged = mergeGO(converted, goDatabase)

console.log(JSON.stringify(merged))

monaToGO() expects a JS object literal in the form of

const monaArtifact = {
    version: "1",
    cocogoat: "1",
    flower: [],
    feather: [],
    sand: [],
    cup: [],
    head: []
}

JSON needs to be parsed with JSON.parse() first.

GO = Genshin Optimizer

About

Convert Mona artifact format to GO format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published