From 070dec4bb0d0b4e025a62feaac17bf97210e0496 Mon Sep 17 00:00:00 2001 From: freshc0w <121275444+freshc0w@users.noreply.github.com> Date: Tue, 10 Oct 2023 15:47:21 +1000 Subject: [PATCH] Fix SplitMoblings component tests --- .../com/csse3200/game/components/SplitMoblingsTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/core/src/test/com/csse3200/game/components/SplitMoblingsTest.java b/source/core/src/test/com/csse3200/game/components/SplitMoblingsTest.java index 81731a2ff..71dbdf757 100644 --- a/source/core/src/test/com/csse3200/game/components/SplitMoblingsTest.java +++ b/source/core/src/test/com/csse3200/game/components/SplitMoblingsTest.java @@ -309,7 +309,7 @@ public void shouldScaleXAndYbasedOnParamsMultiAmt() { } Entity createSplitMob(int amount) { - Entity mob = NPCFactory.createRangedBaseNPC(); + Entity mob = NPCFactory.createBaseWaterSlime(10); mob.addComponent(new CombatStatsComponent(10, 10)); mob.addComponent(new SplitMoblings(amount)); ServiceLocator.getEntityService().register(mob); @@ -317,7 +317,7 @@ Entity createSplitMob(int amount) { } Entity createSplitMob(int amount, float scale) { - Entity mob = NPCFactory.createRangedBaseNPC(); + Entity mob = NPCFactory.createBaseWaterSlime(10); mob.addComponent(new SplitMoblings(amount, scale)); mob.addComponent(new CombatStatsComponent(10, 10)); ServiceLocator.getEntityService().register(mob); @@ -325,7 +325,7 @@ Entity createSplitMob(int amount, float scale) { } Entity createSplitMob(int amount, float scaleX, float scaleY) { - Entity mob = NPCFactory.createRangedBaseNPC(); + Entity mob = NPCFactory.createBaseWaterSlime(10); mob.addComponent(new SplitMoblings(amount, scaleX, scaleY)); mob.addComponent(new CombatStatsComponent(10, 10)); ServiceLocator.getEntityService().register(mob);