mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-30 06:13:52 +00:00
Remove default Anemo skill depot from a Traveler when questing is enabled
This commit is contained in:
parent
ecd0ea7a8c
commit
38ba9771ec
@ -1,6 +1,7 @@
|
||||
package emu.grasscutter.server.packet.recv;
|
||||
|
||||
import static emu.grasscutter.config.Configuration.GAME_INFO;
|
||||
import static emu.grasscutter.config.Configuration.GAME_OPTIONS;
|
||||
|
||||
import emu.grasscutter.GameConstants;
|
||||
import emu.grasscutter.Grasscutter;
|
||||
@ -50,8 +51,13 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler {
|
||||
// Create avatar
|
||||
if (player.getAvatars().getAvatarCount() == 0) {
|
||||
Avatar mainCharacter = new Avatar(avatarId);
|
||||
mainCharacter.setSkillDepotData(
|
||||
|
||||
// Check if the default Anemo skill should be given.
|
||||
if (!GAME_OPTIONS.questing) {
|
||||
mainCharacter.setSkillDepotData(
|
||||
GameData.getAvatarSkillDepotDataMap().get(startingSkillDepot));
|
||||
}
|
||||
|
||||
// Manually handle adding to team
|
||||
player.addAvatar(mainCharacter, false);
|
||||
player.setMainCharacterId(avatarId);
|
||||
|
Loading…
Reference in New Issue
Block a user