Giter Club home page Giter Club logo

Comments (4)

Lazyfaith avatar Lazyfaith commented on August 28, 2024 1

Hi there, I'm currently away on holiday so I won't be working on it for a little while. I hope to get on to it when I get back, some time a week (+) from now

from runelite-bank-memory-plugin.

Septem151 avatar Septem151 commented on August 28, 2024 1

Update: Was able to work around this by checking whether if the world type is both seasonal and deadman:

public static BankWorldType forWorld(EnumSet<WorldType> worldTypes) {
    if (worldTypes.contains(WorldType.SEASONAL)) {
        return worldTypes.contains(WorldType.DEADMAN) ? BankWorldType.DEADMAN_TOURNAMENT : BankWorldType.LEAGUE;
    }
    if (worldTypes.contains(WorldType.TOURNAMENT_WORLD)) {
        return BankWorldType.TOURNAMENT;
    }
    if (worldTypes.contains(WorldType.DEADMAN)) {
        return BankWorldType.DEADMAN;
    }
    return BankWorldType.DEFAULT;
}

Huzzah!

from runelite-bank-memory-plugin.

Lazyfaith avatar Lazyfaith commented on August 28, 2024 1

Thank you @Septem151 for resolving this with the following commits:

c25b7c8
1b55c45
129f6fc

from runelite-bank-memory-plugin.

Septem151 avatar Septem151 commented on August 28, 2024

Hi there, I'm currently away on holiday so I won't be working on it for a little while. I hope to get on to it when I get back, some time a week (+) from now

When you get the chance, I've submitted a PR #6 to fix this.

However, there's a slight problem (that can be addressed later on). You're using different world types for DMM, DMM tournament, and leagues, but the new net.runelite.WorldType enum only contains enums for TOURNAMENT_WORLD (which includes DMM tournaments), DEADMAN (which includes DMM), and SEASONAL (which contains both Leagues and Seasonal DMM).

Therefore the "DEADMAN_TOURNAMENT" and "DEADMAN" BankWorldTypes will become the same, with one of them not being used anymore. Can't simply delete the BankWorldType enum for it because of this comment:

// NB: changing these name will break automatic JSON deserialisation of existing saves

So for now, the PR just fixes the issue of building for the plugin hub, but the aforementioned is an issue that needs to be looked at further.

from runelite-bank-memory-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.