Пример #1
0
 public PoachProbability( string name, IList<byte> bytes, PoachProbability defaults )
 {
     Default = defaults;
     MonsterName = name;
     Common = Item.GetItemAtOffset( bytes[0] );
     Uncommon = Item.GetItemAtOffset( bytes[1] );
 }
Пример #2
0
 public PoachProbability(string name, IList <byte> bytes, PoachProbability defaults)
 {
     Default     = defaults;
     MonsterName = name;
     Common      = Item.GetItemAtOffset(bytes[0]);
     Uncommon    = Item.GetItemAtOffset(bytes[1]);
 }
Пример #3
0
        public AllPoachProbabilities(IList <byte> bytes)
        {
            IList <byte> defaultBytes = FFTPatch.Context == Context.US_PSP ? PSPResources.Binaries.PoachProbabilities : PSXResources.Binaries.PoachProbabilities;

            PoachProbabilities = new PoachProbability[48];
            for (int i = 0; i < 48; i++)
            {
                PoachProbabilities[i] = new PoachProbability(AllJobs.Names[i + 0x5E], bytes.Sub(i * 2, i * 2 + 1),
                                                             new PoachProbability(AllJobs.Names[i + 0x5E], defaultBytes.Sub(i * 2, i * 2 + 1)));
            }
        }
Пример #4
0
        public AllPoachProbabilities(IList <byte> bytes, IList <byte> defaultBytes, Context context)
        {
            defaultBytes = defaultBytes ?? (context == Context.US_PSP ? PSPResources.Binaries.PoachProbabilities : PSXResources.Binaries.PoachProbabilities);

            PoachProbabilities = new PoachProbability[48];
            for (int i = 0; i < 48; i++)
            {
                PoachProbabilities[i] = new PoachProbability(AllJobs.GetNames(context)[i + 0x5E], bytes.Sub(i * 2, i * 2 + 1),
                                                             new PoachProbability(AllJobs.GetNames(context)[i + 0x5E], defaultBytes.Sub(i * 2, i * 2 + 1), context), context);
            }
        }
Пример #5
0
        public AllPoachProbabilities( IList<byte> bytes )
        {
            byte[] defaultBytes = FFTPatch.Context == Context.US_PSP ? PSPResources.PoachProbabilitiesBin : PSXResources.PoachProbabilitiesBin;

            PoachProbabilities = new PoachProbability[48];
            for( int i = 0; i < 48; i++ )
            {
                PoachProbabilities[i] = new PoachProbability( AllJobs.Names[i + 0x5E], bytes.Sub( i * 2, i * 2 + 1 ),
                    new PoachProbability( AllJobs.Names[i + 0x5E], defaultBytes.Sub( i * 2, i * 2 + 1 ) ) );
            }
        }
 private void copyAll(object sender, EventArgs e)
 {
     copiedEntry = dataGridView.CurrentRow.DataBoundItem as PoachProbability;
 }