Refactor some code in the player constructor

This commit is contained in:
Melledy
2023-09-28 05:53:23 -07:00
parent ebe34a943b
commit 3f4ed5ad43

View File

@@ -99,12 +99,11 @@ public class Player {
// Setup hero paths
this.getAvatars().setupHeroPaths();
// Give us a starter character.
// Give us a starter character and add it to our main lineup.
// TODO script tutorial
GameAvatar avatar = new GameAvatar(this.getCurHeroPath());
this.getAvatars().addAvatar(avatar);
this.getLineupManager().getCurrentLineup().getAvatars().add(8001);
this.getLineupManager().getCurrentLineup().getAvatars().add(avatar.getAvatarId());
}
public GameServer getServer() {