Remove the first area from being auto-unlocked when questing is enabled

This commit is contained in:
KingRainbow44 2023-04-15 13:33:30 -04:00
parent c672a2d9cb
commit 6989d49080
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,6 @@
package emu.grasscutter.game.player;
import static emu.grasscutter.config.Configuration.GAME_OPTIONS;
import static emu.grasscutter.scripts.constants.EventType.EVENT_UNLOCK_TRANS_POINT;
import emu.grasscutter.data.GameData;
@ -76,10 +77,11 @@ public final class PlayerProgressManager extends BasePlayerDataManager {
// Add statue quests if necessary.
this.addStatueQuestsOnLogin();
// Auto-unlock the first statue and map area, until we figure out how to make
// that particular statue interactable.
this.player.getUnlockedScenePoints(3).add(7);
this.player.getUnlockedSceneAreas(3).add(1);
if (!GAME_OPTIONS.questing) {
// Auto-unlock the first statue and map area.
this.player.getUnlockedScenePoints(3).add(7);
this.player.getUnlockedSceneAreas(3).add(1);
}
}
/**********

View File

@ -13,6 +13,9 @@ public class ExecUnlockPoint extends QuestExecHandler {
// Unlock the trans point for the player.
int sceneId = Integer.parseInt(paramStr[0]);
int pointId = Integer.parseInt(paramStr[1]);
// TODO: Determine if the point is a statue.
// This is currently a hardcoded value.
boolean isStatue = quest.getMainQuestId() == 303 || quest.getMainQuestId() == 352;
// Done.