Statsify / statsify

A monorepo for the Statsify Discord Bot
https://statsify.net
GNU General Public License v3.0
61 stars 19 forks source link

Changes needed following Mega Walls Update #637

Closed Alexdoru closed 4 months ago

Alexdoru commented 4 months ago

Which package is this bug report for?

discord-bot

Issue description

Following the mega walls update the classpoints for each kit are no longer computed and are directly available as an entry in the api. This line of code needs to be changed : https://github.com/Statsify/statsify/blob/028ec90230be6f69dd8d48e8a3e054637ee5cb39/packages/schemas/src/player/gamemodes/megawalls/kit.ts#L87

In the api there is a classpoint entry for each kit as well as a global entry that is the total :

            "angel_class_points":0,
            "arcanist_class_points":2583,
            "assassin_class_points":2010,
            "automaton_class_points":2116,
            "blaze_class_points":2146,
            "class_points":91777,
            ......

Moreover 3 kits have been added to the game and needs to be added in your code base : Angel, Dragon and Sheep. In this file : https://github.com/Statsify/statsify/blob/028ec90230be6f69dd8d48e8a3e054637ee5cb39/packages/schemas/src/player/gamemodes/megawalls/index.ts

Operating system

No response