Skip to content

Commit

Permalink
Fix SplitMoblings component tests
Browse files Browse the repository at this point in the history
  • Loading branch information
freshc0w committed Oct 10, 2023
1 parent 1113a08 commit 070dec4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,23 +309,23 @@ 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);
return mob;
}

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);
return mob;
}

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);
Expand Down

0 comments on commit 070dec4

Please sign in to comment.