Wynncraft / WynncraftAPI

Official Wynncraft Public API (Documentation & Issue Tracker)
https://docs.wynncraft.com/
21 stars 10 forks source link

PlayerStats V2: preEconomyUpdate field occasionally incorrect or missing #3

Closed Bedo9041 closed 5 years ago

Bedo9041 commented 5 years ago

PlayerStats V2 preEconomyUpdate is often incorrect and sometimes missing entirely. Example from https://api.wynncraft.com/v2/player/_Bedo_/stats

{
    name: "archer",
    level: 192,
    dungeons: {
        completed: 20,
        list: [{
                name: "Skeleton",
                completed: 1
            },
            {
                name: "Spider",
                completed: 1
            },
            {
                name: "Decrepit Sewers",
                completed: 3
            },
            {
                name: "Infested Pit",
                completed: 1
            },
            {
                name: "Lost Sanctuary",
                completed: 1
            },
            {
                name: "Galleon's Graveyard",
                completed: 2
            },
            {
                name: "Underworld Crypt",
                completed: 3
            },
            {
                name: "Sand-Swept Tomb",
                completed: 2
            },
            {
                name: "Ice Barrows",
                completed: 6
            }
        ]
    },
    quests: {
        completed: 111,
        list: [
            "Fantastic Voyage",
            "The Envoy Part II",
            "Enter the Dojo",
            "The Hidden City",
            "Mixed Feelings",
            "Beyond the Grave",
            "Cowfusion",
            "Desperate Metal",
            "The Lost",
            "The Canary Calls",
            "The Canyon Guides",
            "A Marauder's Dues",
            "The Envoy Part I",
            "The Belly of the Beast",
            "The Thanos Vaults",
            "General's Orders",
            "From the Bottom",
            "Fallen Delivery",
            "The Hunger of Gerts Part 2",
            "Aldorei's Secret Part II",
            "Purple and Blue",
            "Aldorei's Secret Part I",
            "The Bigger Picture",
            "Flight in Distress",
            "The Ultimate Weapon",
            "Murder Mystery",
            "The Realm of Light",
            "Acquiring Credentials",
            "Hollow Sirene",
            "Troubled Tribesmen",
            "Eye of the Storm",
            "Forbidden Prison",
            "Finding The Light",
            "WynnExcavation Site D",
            "Haven Antiquity",
            "Shattered Minds",
            "Grand Youth",
            "Lazarus Pit",
            "Temple of the Legends",
            "Memory Paranoia",
            "From the Mountains",
            "Lost Soles",
            "Lost Royalty",
            "A Fighting Species",
            "The Headless Hunt",
            "Out of my Mind",
            "Taproot",
            "Lost in the Jungle",
            "Redbeard's Booty",
            "Reclaiming the House",
            "Beneath the Depths",
            "An Iron Heart Part II",
            "The Passage",
            "Zhight Island",
            "WynnExcavation Site C",
            "The Worm Holes",
            "The Shadow of the Beast",
            "Master Piece",
            "Death Whistle",
            "Jungle Fever",
            "Crop Failure",
            "Corrupted Betrayal",
            "The Maiden Tower",
            "A Grave Mistake",
            "The House of Twain",
            "An Iron Heart Part I",
            "Rise of the Quartron",
            "WynnExcavation Site B",
            "Green Skinned Trouble",
            "Underice",
            "Fate of the Fallen",
            "Clearing the Camps",
            "Heart of Llevigar",
            "Ice Nations",
            "Pirate's Trove",
            "Canyon Condor",
            "Wrath of the Mummy",
            "Tribal Aggression",
            "WynnExcavation Site A",
            "Stable Story",
            "Meaningful Holiday",
            "Kingdom of Sand",
            "A Sandy Scandal",
            "Green Gloop",
            "Craftmas Chaos",
            "Sister City",
            "The Mercenary",
            "Lost Tower",
            "The Corrupted Village",
            "The Tower of Amnesia",
            "The Dark Descent",
            "Dwelling Walls",
            "Pit of the Dead",
            "Cluck Cluck",
            "Macabre Masquerade ''Hallowynn 2014''",
            "Studying the Corrupt",
            "Grave Digger",
            "Maltic's Well",
            "Potion Making",
            "Arachnids' Ascent",
            "Creeper Infiltration",
            "Mushroom Man",
            "Elemental Exercise",
            "Underwater",
            "Tunnel Trouble",
            "The Sewers of Ragni",
            "Mini-Quest - Slay Spiders",
            "Cook Assistant",
            "Poisoning the Pest",
            "King's Recruit",
            "Enzan's Brother"
        ]
    },
    itemsIdentified: 70,
    mobsKilled: 23624,
    pvp: {
        kills: 0,
        deaths: 0
    },
    chestsFound: 341,
    blocksWalked: 3043312,
    logins: 796,
    deaths: 89,
    playtime: 1480,
    skills: {
        strength: 0,
        dexterity: 81,
        intelligence: 73,
        defense: 0,
        agility: 26
    },
    professions: {
        alchemism: {
            level: 1,
            xp: 0
        },
        armouring: {
            level: 1,
            xp: 0
        },
        combat: {
            level: 91,
            xp: 25.5
        },
        cooking: {
            level: 1,
            xp: 0
        },
        farming: {
            level: 15,
            xp: 49.2
        },
        fishing: {
            level: 10,
            xp: 6.7
        },
        jeweling: {
            level: 1,
            xp: 0
        },
        mining: {
            level: 30,
            xp: 80.2
        },
        scribing: {
            level: 1,
            xp: 0
        },
        tailoring: {
            level: 1,
            xp: 0
        },
        weaponsmithing: {
            level: 1,
            xp: 0
        },
        woodcutting: {
            level: 50,
            xp: 10.1
        },
        woodworking: {
            level: 1,
            xp: 73.3
        }
    },
    discoveries: 384,
    eventsWon: 0,
    preEconomyUpdate: false
}

preEconomyUpdate should be true here

Example of missing the field from https://api.wynncraft.com/v2/player/HeyZeer0/stats

{
    name: "assassin",
    level: 49,
    dungeons: {
        completed: 0,
        list: []
    },
    quests: {
        completed: 1,
        list: [
            "Grave Digger"
        ]
    },
    itemsIdentified: 0,
    mobsKilled: 4089,
    pvp: {
        kills: 120,
        deaths: 92
    },
    chestsFound: 22,
    blocksWalked: 690,
    logins: 115,
    deaths: 12,
    playtime: 112,
    skills: {
        strength: 5,
        dexterity: 0,
        intelligence: 20,
        defense: 5,
        agility: 20
    },
    professions: {
        alchemism: {
            level: 1,
            xp: null
        },
        armouring: {
            level: 1,
            xp: null
        },
        combat: {
            level: 49,
            xp: 8.9
        },
        cooking: {
            level: 1,
            xp: null
        },
        farming: {
            level: 1,
            xp: null
        },
        fishing: {
            level: 1,
            xp: null
        },
        jeweling: {
            level: 1,
            xp: null
        },
        mining: {
            level: 1,
            xp: null
        },
        scribing: {
            level: 1,
            xp: null
        },
        tailoring: {
            level: 1,
            xp: null
        },
        weaponsmithing: {
            level: 1,
            xp: null
        },
        woodcutting: {
            level: 1,
            xp: null
        },
        woodworking: {
            level: 1,
            xp: null
        }
    },
    discoveries: 1,
    eventsWon: 0
}
colinrioux commented 5 years ago

Missing field patched in Player-API version 2.0.1.

I verified if the field was incorrect for Archer 192 belonging to Bedo. It is correct. This field will almost always be correct, as it is a direct read from player data.