예제 #1
0
        public static uint GetWorldmapNode(uint next_chaper)
        {
            Debug.Assert(Program.ROM.RomInfo.version() == 8);

            uint nodeid = WorldMapPointForm.GetNodeIDByChapter(next_chaper);

            if (nodeid != U.NOT_FOUND)
            {
                return(nodeid);
            }

            //不明な場合は、現在の拠点IDを返す.
            uint gSomeWMEventRelatedStruct;

            if (Program.ROM.RomInfo.is_multibyte())
            {//FE8J
                gSomeWMEventRelatedStruct = 0x03005270;
            }
            else
            {//FE8U
                gSomeWMEventRelatedStruct = 0x03005280;
            }
            nodeid = Program.RAM.u8(gSomeWMEventRelatedStruct + 0x11);
            return(nodeid);
        }
예제 #2
0
        public static uint GetWorldmapNode(uint next_chaper)
        {
            Debug.Assert(Program.ROM.RomInfo.version() == 8);

            uint nodeid = WorldMapPointForm.GetNodeIDByChapter(next_chaper);

            if (nodeid != U.NOT_FOUND)
            {
                return(nodeid);
            }

            //不明な場合は、現在の拠点IDを返す.
            return(GetCurrentWorldmapNode());
        }