Update player properties

This commit is contained in:
KingRainbow44 2023-05-17 21:16:10 -04:00
parent 18bc68774c
commit 64e0379ca5
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -2,9 +2,10 @@ package emu.grasscutter.game.props;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import java.util.stream.Stream;
import lombok.Getter; import lombok.Getter;
import java.util.stream.Stream;
public enum PlayerProperty { public enum PlayerProperty {
PROP_NONE(0), PROP_NONE(0),
PROP_EXP(1001, 0), PROP_EXP(1001, 0),
@ -56,7 +57,11 @@ public enum PlayerProperty {
PROP_PLAYER_WORLD_LEVEL_ADJUST_CD(10040), PROP_PLAYER_WORLD_LEVEL_ADJUST_CD(10040),
PROP_PLAYER_LEGENDARY_DAILY_TASK_NUM(10041), PROP_PLAYER_LEGENDARY_DAILY_TASK_NUM(10041),
PROP_PLAYER_HOME_COIN(10042, 0), // Realm currency [0, +inf) PROP_PLAYER_HOME_COIN(10042, 0), // Realm currency [0, +inf)
PROP_PLAYER_WAIT_SUB_HOME_COIN(10043); PROP_PLAYER_WAIT_SUB_HOME_COIN(10043),
PROP_IS_AUTO_UNLOCK_SPECIFIC_EQUIP(10044), // New; unknown/un-used.
PROP_PLAYER_GCG_COIN(10045), // New; unknown/un-used.
PROP_PLAYER_WAIT_SUB_GCG_COIN(10046), // New; unknown/un-used.
PROP_PLAYER_ONLINE_TIME(10047); // New; unknown/un-used.
private static final int inf = Integer.MAX_VALUE; // Maybe this should be something else? private static final int inf = Integer.MAX_VALUE; // Maybe this should be something else?
private static final Int2ObjectMap<PlayerProperty> map = new Int2ObjectOpenHashMap<>(); private static final Int2ObjectMap<PlayerProperty> map = new Int2ObjectOpenHashMap<>();