doriyan13 / SpringStory

v95 shroom simulator implemented via SpringBoot and java 21
MIT License
28 stars 26 forks source link

Utilize the new menuOption system once its been implemented #23

Closed Silwhoon closed 8 months ago

Silwhoon commented 8 months ago

scripts/npcs/Common.java

        // Generate a list of destinations the player can go to
        List<Integer> taxiMaps = Arrays.asList(100000000, 101000000, 102000000, 103000000, 104000000, 105000000, 120000000);
        List<MenuOption> menuOptions = new ArrayList<>();
        for (Integer mapId : taxiMaps) {
            if (chr.getMapId() != mapId) {
                // Once big bang hit, all taxi options cost 1,000 meso
                menuOptions.add(NpcScriptUtils.addTaxiMoveOption(script, chr, mapId, chr.getJob() == 0, 1000));
            }
        }

The above code needs to be refactored