Esempio n. 1
0
        public void EnemyTableTest() => Common.FileOpenRead(@"kh2/res/enmp.bin", x => x.Using(stream =>
        {
            var table = BaseBattle <Enmp> .Read(stream);

            Assert.Equal(2, table.Id);
            Assert.Equal(229, table.Count);
            Assert.Equal(229, table.Items.Count);

            var roxas = table.Items.FirstOrDefault(enemy => enemy.Id == 242);
            Assert.Equal(99, roxas.Level);
            Assert.Equal(1750, roxas.Health[0]);
            Assert.Equal(86, roxas.Unknown44); // 56
            Assert.Equal(28, roxas.Unknown46);
            Assert.Equal(100, roxas.PhysicalWeakness);
            Assert.Equal(25, roxas.FireWeakness);
            Assert.Equal(25, roxas.IceWeakness);
            Assert.Equal(25, roxas.ThunderWeakness);
            Assert.Equal(25, roxas.DarkWeakness);
            Assert.Equal(25, roxas.Unknown52);
            Assert.Equal(100, roxas.ReflectWeakness);
        }));
Esempio n. 2
0
 public void VtblTableTest() => Common.FileOpenRead(@"kh2/res/vtbl.bin", x => x.Using(stream =>
 {
     var table      = BaseBattle <Vtbl> .Read(stream);
     var characters = table.Items.GroupBy(c => c.CharacterId).ToList();
     Assert.Equal(0xF1, table.Items.Count);
 }));
Esempio n. 3
0
 public void PrztTableTest() => Common.FileOpenRead(@"kh2/res/przt.bin", x => x.Using(stream =>
 {
     var table = BaseBattle <Przt> .Read(stream);
     Assert.Equal(0xB8, table.Count);
 }));
Esempio n. 4
0
 public void BonsTableTest() => Common.FileOpenRead(@"kh2/res/bons_fm.bin", x => x.Using(stream =>
 {
     var table = BaseBattle <Bons> .Read(stream);
     Assert.Equal(0xB3, table.Count);
 }));