mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 12:52:57 +08:00
Remove the first area from being auto-unlocked when questing is enabled
This commit is contained in:
parent
c672a2d9cb
commit
6989d49080
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**********
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user