mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-26 18:45:35 +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;
|
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 static emu.grasscutter.scripts.constants.EventType.EVENT_UNLOCK_TRANS_POINT;
|
||||||
|
|
||||||
import emu.grasscutter.data.GameData;
|
import emu.grasscutter.data.GameData;
|
||||||
@ -76,10 +77,11 @@ public final class PlayerProgressManager extends BasePlayerDataManager {
|
|||||||
// Add statue quests if necessary.
|
// Add statue quests if necessary.
|
||||||
this.addStatueQuestsOnLogin();
|
this.addStatueQuestsOnLogin();
|
||||||
|
|
||||||
// Auto-unlock the first statue and map area, until we figure out how to make
|
if (!GAME_OPTIONS.questing) {
|
||||||
// that particular statue interactable.
|
// Auto-unlock the first statue and map area.
|
||||||
this.player.getUnlockedScenePoints(3).add(7);
|
this.player.getUnlockedScenePoints(3).add(7);
|
||||||
this.player.getUnlockedSceneAreas(3).add(1);
|
this.player.getUnlockedSceneAreas(3).add(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********
|
/**********
|
||||||
|
@ -13,6 +13,9 @@ public class ExecUnlockPoint extends QuestExecHandler {
|
|||||||
// Unlock the trans point for the player.
|
// Unlock the trans point for the player.
|
||||||
int sceneId = Integer.parseInt(paramStr[0]);
|
int sceneId = Integer.parseInt(paramStr[0]);
|
||||||
int pointId = Integer.parseInt(paramStr[1]);
|
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;
|
boolean isStatue = quest.getMainQuestId() == 303 || quest.getMainQuestId() == 352;
|
||||||
|
|
||||||
// Done.
|
// Done.
|
||||||
|
Loading…
Reference in New Issue
Block a user