Ejemplo n.º 1
0
            public static void TestPartyNPEquipCount()
            {
                BattleMario mario     = new BattleMario(new MarioStats(0, 0, 0, 0, 0, EquipmentGlobals.BootLevels.Normal, EquipmentGlobals.HammerLevels.Normal));
                Goombario   goombario = new Goombario();

                List <BattleEntity> set = new List <BattleEntity>()
                {
                    mario, goombario
                };

                CloseCallBadge  cc  = new CloseCallBadge();
                CloseCallPBadge ccp = new CloseCallPBadge();

                cc.Equip(mario);
                ccp.Equip(goombario);

                Debug.Assert(EntityGlobals.GetCombinedEquippedBadgeCount(set, cc.BadgeType) == 1);
                Debug.Assert(EntityGlobals.GetCombinedEquippedBadgeCount(set, ccp.BadgeType) == 1);

                Debug.Assert(EntityGlobals.GetCombinedEquippedNPBadgeCount(set, cc.BadgeType) == 2);
                Debug.Assert(EntityGlobals.GetCombinedEquippedNPBadgeCount(set, ccp.BadgeType) == 2);
                Debug.Assert(EntityGlobals.GetCombinedEquippedNPBadgeCount(set, cc.BadgeType) == 2);
                Debug.Assert(EntityGlobals.GetCombinedEquippedNPBadgeCount(set, ccp.BadgeType) == 2);

                cc.UnEquip();
                ccp.UnEquip();

                Debug.Log("\n");
            }
Ejemplo n.º 2
0
            public static void TestBothEquipCount()
            {
                BattleMario mario     = new BattleMario(new MarioStats(0, 0, 0, 0, 0, EquipmentGlobals.BootLevels.Normal, EquipmentGlobals.HammerLevels.Normal));
                Goombario   goombario = new Goombario();

                List <BattleEntity> set = new List <BattleEntity>()
                {
                    mario, goombario
                };

                QuickChangeBadge qc = new QuickChangeBadge();
                TimingTutorBadge tt = new TimingTutorBadge();

                qc.Equip(mario);
                tt.Equip(goombario);

                Debug.Assert(mario.GetEquippedBadgeCount(qc.BadgeType) != goombario.GetEquippedBadgeCount(qc.BadgeType));
                Debug.Assert(mario.GetEquippedBadgeCount(tt.BadgeType) != goombario.GetEquippedBadgeCount(tt.BadgeType));
                Debug.Assert(EntityGlobals.GetCombinedEquippedBadgeCount(set, qc.BadgeType) == 1);
                Debug.Assert(EntityGlobals.GetCombinedEquippedBadgeCount(set, tt.BadgeType) == 1);

                qc.UnEquip();
                tt.UnEquip();

                Debug.Log("\n");

                qc.Equip(goombario);
                tt.Equip(mario);

                Debug.Assert(mario.GetEquippedBadgeCount(qc.BadgeType) != goombario.GetEquippedBadgeCount(qc.BadgeType));
                Debug.Assert(mario.GetEquippedBadgeCount(tt.BadgeType) != goombario.GetEquippedBadgeCount(tt.BadgeType));
                Debug.Assert(EntityGlobals.GetCombinedEquippedBadgeCount(set, qc.BadgeType) == 1);
                Debug.Assert(EntityGlobals.GetCombinedEquippedBadgeCount(set, tt.BadgeType) == 1);

                qc.UnEquip();
                tt.UnEquip();

                Debug.Log("\n");
            }