GameConstants.java 1.4 KB
Newer Older
Melledy's avatar
Melledy committed
1
2
3
4
5
6
7
package emu.grasscutter;

import java.util.Arrays;

import emu.grasscutter.utils.Position;
import emu.grasscutter.utils.Utils;

8
public final class GameConstants {
Melledy's avatar
Melledy committed
9
10
11
12
13
	public static String VERSION = "2.6.0";
	
	public static final int MAX_TEAMS = 4;
	public static final int MAIN_CHARACTER_MALE = 10000005;
	public static final int MAIN_CHARACTER_FEMALE = 10000007;
xtaodada's avatar
xtaodada committed
14
	public static final String SERVER_AVATAR_NAME = Grasscutter.getConfig().getGameServerOptions().ServerNickname;
xtaodada's avatar
xtaodada committed
15
	public static final int SERVER_AVATAR_ID = Grasscutter.getConfig().getGameServerOptions().ServerAvatarId;
Melledy's avatar
Melledy committed
16
17
18
19
20
	public static final Position START_POSITION = new Position(2747, 194, -1719);
	
	public static final int MAX_FRIENDS = 45;
	public static final int MAX_FRIEND_REQUESTS = 50;
	
KingRainbow44's avatar
KingRainbow44 committed
21
	public static final int SERVER_CONSOLE_UID = 99; // The UID of the server console's "player".
Melledy's avatar
Melledy committed
22
	
KingRainbow44's avatar
KingRainbow44 committed
23
	// Default entity ability hashes.
Melledy's avatar
Melledy committed
24
25
26
27
28
29
30
	public static final String[] DEFAULT_ABILITY_STRINGS = {
		"Avatar_DefaultAbility_VisionReplaceDieInvincible", "Avatar_DefaultAbility_AvartarInShaderChange", "Avatar_SprintBS_Invincible", 
		"Avatar_Freeze_Duration_Reducer", "Avatar_Attack_ReviveEnergy", "Avatar_Component_Initializer", "Avatar_FallAnthem_Achievement_Listener"
	};
	public static final int[] DEFAULT_ABILITY_HASHES = Arrays.stream(DEFAULT_ABILITY_STRINGS).mapToInt(Utils::abilityHash).toArray();
	public static final int DEFAULT_ABILITY_NAME = Utils.abilityHash("Default");
}