Grasscutter/src/main/java/emu/grasscutter/GameConstants.java

36 lines
1.6 KiB
Java
Raw Normal View History

2022-04-17 20:43:07 +08:00
package emu.grasscutter;
import java.util.Arrays;
import emu.grasscutter.utils.Position;
import emu.grasscutter.utils.Utils;
public final class GameConstants {
3.1 Support (#1808) * Update 3.0 protos * Update classes to match protos * Fix RegionHandler versions * 3.0 Opcodes * Fixed Gadget Spawning Original Commit Message: fixed gadget spawning ty MJDerp Gitea Author: yh0Nathan Co-authored-by: yh0Nathan <yhonathancaleb@gmail.com> * Make PointData compatible with alternative PointData Original Commit Message: Make PointData compatible with windied scene points. Gitea Author: GanyusLeftHorn Co-authored-by: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com> * Add scene tag for Vanarana. Original Commit Message: Add scene tag for Vanarana. Gitea Author: GanyusLeftHorn Co-authored-by: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com> * Add Sumeru expeditions. Original Commit Message: Add Sumeru expeditions. Gitea Author: GanyusLeftHorn Co-authored-by: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com> * Update game version to 3.0.0 * versionFix must be >= 50 not == 50 in RegionHandler * Add new 3.0 Reliquary and SkillParticleGeneration data Original Commit Message: Repair 3.0 added Reliquary 3-in-1 on the crafting table. Add skill particle generation info for Tighnari,Collei and Dori Gitea Author: Roly * Actually fix RegionHandler * Remove asset names from json and comments * Add scene areas for Sumeru desert to /prop um * Added New MaterialType * Change version to 3.1.0 * funny welcome message back * Fix pyramid skill issue. * Fix pyramid and event scene tags without ugly bruteforce. * Remove backrooms chat welcome message. * Incorporate suggestions. * RoomSceneId and empty list checking. Co-authored-by: Benj <benjamin7006@gmail.com> Co-authored-by: yh0Nathan <yhonathancaleb@gmail.com> Co-authored-by: Kokoboy <anushkumar222001@gmail.com> Co-authored-by: nitro <31241699+nitrog0d@users.noreply.github.com> Co-authored-by: Vexeone <vexeone@gmail.com>
2022-09-28 10:53:19 +08:00
public static String VERSION = "3.1.0";
2022-07-21 15:21:22 +08:00
public static final int DEFAULT_TEAMS = 4;
public static final int MAX_TEAMS = 10;
2022-07-21 15:21:22 +08:00
public static final int MAIN_CHARACTER_MALE = 10000005;
public static final int MAIN_CHARACTER_FEMALE = 10000007;
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;
public static final int SERVER_CONSOLE_UID = 99; // The UID of the server console's "player".
public static final int BATTLE_PASS_MAX_LEVEL = 50;
public static final int BATTLE_PASS_POINT_PER_LEVEL = 1000;
public static final int BATTLE_PASS_POINT_PER_WEEK = 10000;
public static final int BATTLE_PASS_LEVEL_PRICE = 150;
public static final int BATTLE_PASS_CURRENT_INDEX = 2;
// Default entity ability hashes.
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");
2022-04-17 20:43:07 +08:00
}