Beispiel #1
0
        public static void GetSim(ref GrowSimulator sim, uint cid)
        {
            InputFormRef InputFormRef = Init(null);
            uint         addr         = InputFormRef.IDToAddr(cid);

            if (!U.isSafetyOffset(addr))
            {
                return;
            }
            sim.SetClassBase(
                (int)Program.ROM.u8(addr + 11)                            //hp
                , (int)Program.ROM.u8(addr + 12)                          //str
                , (int)Program.ROM.u8(addr + 13)                          //skill
                , (int)Program.ROM.u8(addr + 14)                          //spd
                , (int)Program.ROM.u8(addr + 15)                          //def
                , (int)Program.ROM.u8(addr + 16)                          //res
                , (int)MagicSplitUtil.GetClassBaseMagicExtends(cid, addr) //ext_magic
                );
            sim.SetClassGrow(
                (int)Program.ROM.u8(addr + 27)                            //hp
                , (int)Program.ROM.u8(addr + 28)                          //str
                , (int)Program.ROM.u8(addr + 29)                          //skill
                , (int)Program.ROM.u8(addr + 30)                          //spd
                , (int)Program.ROM.u8(addr + 31)                          //def
                , (int)Program.ROM.u8(addr + 32)                          //res
                , (int)Program.ROM.u8(addr + 33)                          //luck
                , (int)MagicSplitUtil.GetClassGrowMagicExtends(cid, addr) //ext_magic
                );
        }
Beispiel #2
0
        void SelectedIndexChangedFE7UMagicExtends(object sender, EventArgs e)
        {
            if (MagicSplitUtil.SearchMagicSplit() != MagicSplitUtil.magic_split_enum.FE7UMAGIC)
            {
                if (MagicSplitUtil.SearchMagicSplit() != MagicSplitUtil.magic_split_enum.FE8UMAGIC)
                {
                    return;
                }
            }

            if (this.AddressList.SelectedIndex < 0)
            {
                return;
            }

            uint         cid          = (uint)this.AddressList.SelectedIndex;
            InputFormRef InputFormRef = Init(null);
            uint         addr         = InputFormRef.IDToAddr(cid);

            if (!U.isSafetyOffset(addr))
            {
                return;
            }

            this.MagicExtClassBase.Value          = (sbyte)MagicSplitUtil.GetClassBaseMagicExtends(cid, addr);
            this.MagicExtClassGrow.Value          = MagicSplitUtil.GetClassGrowMagicExtends(cid, addr);
            this.MagicExtClassLimit.Value         = MagicSplitUtil.GetClassLimitMagicExtends(cid, addr);
            this.MagicExtClassPromotionGain.Value = MagicSplitUtil.GetClassPromotionGainMagicExtends(cid, addr);
        }