Exemplo n.º 1
0
        private void Initialize()
        {
            Blocks   = BlockInfoNDS.BlocksB2W2;
            Personal = PersonalTable.B2W2;

            Items                = new MyItem5B2W2(this, 0x18400);
            BattleBox            = 0x20900;
            Trainer2             = 0x21100;
            EventConst           = 0x1FF00;
            EventFlag            = EventConst + 0x35E;
            Daycare              = 0x20D00;
            PokeDex              = 0x21400;
            PokeDexLanguageFlags = 0x328; // forme flags size is + 8 from bw with new formes (therians)
            BattleSubway         = 0x21B00;
            CGearInfoOffset      = 0x1C000;
            CGearDataOffset      = 0x52800;
            EntreeForestOffset   = 0x22A00;
            Zukan                = new Zukan5(this, PokeDex, PokeDexLanguageFlags);
            DaycareBlock         = new Daycare5(this, Daycare);

            MiscBlock         = new Misc5(this, Trainer2);
            PWTBlock          = new PWTBlock5(this, 0x23700);
            DaycareBlock      = new Daycare5(this, Daycare);
            BattleSubwayBlock = new BattleSubway5(this, BattleSubway);
        }
Exemplo n.º 2
0
        public SAV_Misc5(SaveFile sav)
        {
            InitializeComponent();
            WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
            SAV = (SAV5)(Origin = sav).Clone();

            sw = SAV.BattleSubway;
            ReadMain();
            LoadForest();
            ReadSubway();
            ReadEntralink();
        }
Exemplo n.º 3
0
        private void Initialize()
        {
            Blocks   = BlockInfoNDS.BlocksBW;
            Personal = PersonalTable.BW;

            Items = new MyItem5BW(this, 0x18400);

            BattleBox            = 0x20A00;
            Trainer2             = 0x21200;
            EventConst           = 0x20100;
            EventFlag            = EventConst + 0x27C;
            Daycare              = 0x20E00;
            PokeDex              = 0x21600;
            PokeDexLanguageFlags = PokeDex + 0x320;
            BattleSubway         = 0x21D00;
            CGearInfoOffset      = 0x1C000;
            CGearDataOffset      = 0x52000;
            EntreeForestOffset   = 0x22C00;
            MiscBlock            = new Misc5(this, Trainer2);
            Zukan             = new Zukan5(this, PokeDex, PokeDexLanguageFlags);
            DaycareBlock      = new Daycare5(this, Daycare);
            BattleSubwayBlock = new BattleSubway5(this, BattleSubway);
            // Inventory offsets are the same for each game.
        }
Exemplo n.º 4
0
        private void ReadSubway()
        {
            sw = SAV.BattleSubway;

            // Figure out the Super Checks
            var swSuperCheck = sw.SuperCheck;

            if (swSuperCheck == 0x00)
            {
                CHK_SuperSingle.Checked = CHK_SuperDouble.Checked = CHK_SuperMulti.Checked = false;
            }
            else if (swSuperCheck >= 0x70) // 0x70 or anything else means all super enabled
            {
                CHK_SuperSingle.Checked = CHK_SuperDouble.Checked = CHK_SuperMulti.Checked = true;
            }
            else
            {
                if (swSuperCheck == 0x10 || swSuperCheck == 0x30 || swSuperCheck == 0x50)
                {
                    CHK_SuperSingle.Checked = true;
                }
                if (swSuperCheck == 0x20 || swSuperCheck == 0x30 || swSuperCheck == 0x60)
                {
                    CHK_SuperDouble.Checked = true;
                }
                if (swSuperCheck == 0x40 || swSuperCheck == 0x50 || swSuperCheck == 0x60)
                {
                    CHK_SuperMulti.Checked = true;
                }
            }

            // Normal
            // Single
            NUD_SinglePast.Value   = sw.SinglePast;
            NUD_SingleRecord.Value = sw.SingleRecord;

            // Double
            NUD_DoublePast.Value   = sw.DoublePast;
            NUD_DoubleRecord.Value = sw.DoubleRecord;

            // Multi NPC
            NUD_MultiNpcPast.Value   = sw.MultiNPCPast;
            NUD_MultiNpcRecord.Value = sw.MultiNPCRecord;

            // Multi Friends
            NUD_MultiFriendsPast.Value   = sw.MultiFriendsPast;
            NUD_MultiFriendsRecord.Value = sw.MultiFriendsRecord;

            // Super
            // Single
            NUD_SSinglePast.Value   = sw.SuperSinglePast;
            NUD_SSingleRecord.Value = sw.SuperSingleRecord;

            // Double
            NUD_SDoublePast.Value   = sw.SuperDoublePast;
            NUD_SDoubleRecord.Value = sw.SuperDoubleRecord;

            // Multi NPC
            NUD_SMultiNpcPast.Value   = sw.SuperMultiNPCPast;
            NUD_SMultiNpcRecord.Value = sw.SuperMultiNPCRecord;

            // Multi Friends
            NUD_SMultiFriendsPast.Value   = sw.SuperMultiFriendsPast;
            NUD_SMultiFriendsRecord.Value = sw.SuperMultiFriendsRecord;
        }