mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-16 23:34:50 +01:00
Refactor some code in the player constructor
This commit is contained in:
@@ -99,12 +99,11 @@ public class Player {
|
|||||||
// Setup hero paths
|
// Setup hero paths
|
||||||
this.getAvatars().setupHeroPaths();
|
this.getAvatars().setupHeroPaths();
|
||||||
|
|
||||||
// Give us a starter character.
|
// Give us a starter character and add it to our main lineup.
|
||||||
// TODO script tutorial
|
// TODO script tutorial
|
||||||
GameAvatar avatar = new GameAvatar(this.getCurHeroPath());
|
GameAvatar avatar = new GameAvatar(this.getCurHeroPath());
|
||||||
|
|
||||||
this.getAvatars().addAvatar(avatar);
|
this.getAvatars().addAvatar(avatar);
|
||||||
this.getLineupManager().getCurrentLineup().getAvatars().add(8001);
|
this.getLineupManager().getCurrentLineup().getAvatars().add(avatar.getAvatarId());
|
||||||
}
|
}
|
||||||
|
|
||||||
public GameServer getServer() {
|
public GameServer getServer() {
|
||||||
|
|||||||
Reference in New Issue
Block a user