Set default player position to be the starting position

This commit is contained in:
Melledy 2022-07-19 02:53:03 -07:00
parent 5feabc8f9a
commit f020cefd80

View File

@ -199,9 +199,10 @@ public class Player {
this.deforestationManager = new DeforestationManager(this); this.deforestationManager = new DeforestationManager(this);
this.insectCaptureManager = new InsectCaptureManager(this); this.insectCaptureManager = new InsectCaptureManager(this);
this.questManager = new QuestManager(this); this.questManager = new QuestManager(this);
this.position = new Position(GameConstants.START_POSITION);
this.position = new Position(); this.rotation = new Position(0, 307, 0);
this.rotation = new Position(); this.sceneId = 3;
this.regionId = 1;
this.properties = new HashMap<>(); this.properties = new HashMap<>();
for (PlayerProperty prop : PlayerProperty.values()) { for (PlayerProperty prop : PlayerProperty.values()) {
if (prop.getId() < 10000) { if (prop.getId() < 10000) {
@ -222,9 +223,6 @@ public class Player {
this.unlockedFurnitureSuite = new HashSet<>(); this.unlockedFurnitureSuite = new HashSet<>();
this.activeForges = new ArrayList<>(); this.activeForges = new ArrayList<>();
this.unlockedRecipies = new HashMap<>(); this.unlockedRecipies = new HashMap<>();
this.setSceneId(3);
this.setRegionId(1);
this.sceneState = SceneLoadState.NONE; this.sceneState = SceneLoadState.NONE;
this.attackResults = new LinkedBlockingQueue<>(); this.attackResults = new LinkedBlockingQueue<>();
@ -272,8 +270,6 @@ public class Player {
this.setProperty(PlayerProperty.PROP_PLAYER_RESIN, 160, false); this.setProperty(PlayerProperty.PROP_PLAYER_RESIN, 160, false);
this.getFlyCloakList().add(140001); this.getFlyCloakList().add(140001);
this.getNameCardList().add(210001); this.getNameCardList().add(210001);
this.getPosition().set(GameConstants.START_POSITION);
this.getRotation().set(0, 307, 0);
this.messageHandler = null; this.messageHandler = null;
this.mapMarksManager = new MapMarksManager(this); this.mapMarksManager = new MapMarksManager(this);
this.staminaManager = new StaminaManager(this); this.staminaManager = new StaminaManager(this);