thepeacockproject / Peacock

The Peacock Project is a HITMAN™ World of Assassination trilogy server replacement.
https://thepeacockproject.org
GNU Affero General Public License v3.0
367 stars 57 forks source link

controller.masteryService.registerMasteryData is unable to push data to LOCATION_PARENT_ICA_FACILITY #438

Closed Burn-the-w1tch closed 1 month ago

Burn-the-w1tch commented 5 months ago

Describe the bug controller.masteryService.registerMasteryData is unable to push data to LOCATION_PARENT_ICA_FACILITY for some reason. I have forced the tab to show in the destination menu and it is not loading, so this is Peacock side, not client side.

To reproduce

Facilitymasterydata = {
        "LocationId": "LOCATION_PARENT_ICA_FACILITY",
        "GameVersions": ["h3"],
        "MaxLevel": 5,
        "Drops": [ {
            "Id": "PROP_TOOL_COIN",
            "Level": 1
        },
        {
            "Id": "TOKEN_FIBERWIRE",
            "Level": 2
        },
        {
            "Id": "TPROP_TOOL_LOCK_PICK",
            "Level": 3
        },
        {
            "Id": "FIREARMS_HERO_PISTOL_TACTICAL_ICA_19",
            "Level": 4
        },
        {
            "Id": "TOKEN_OUTFIT_LEGACY_HERO_SIGNATURESUITANDGLOVES",
            "Level": 5
        },

    ]
    }
    controller.masteryService.registerMasteryData(Facilitymasterydata);

Additional context image

suanjiansalt commented 1 month ago

Guessing you gave the entire code, but it seems that the format of module.exports = function mastery(controller) { ... } is required as the main function to run the plugin.

image

By the way, you typed an extra T for level 3, which makes the lockpick missing.