* Match resources names

* Fix loading with no skill

* Stop overriding common command alias

* Fix discord link in version check popup

* Forgot to add rotation fix

* Remove unnecessary set
This commit is contained in:
Thoronium 2023-08-29 10:15:19 -06:00 committed by GitHub
parent 01766a0303
commit f54432a89a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 44 additions and 31 deletions

View File

@ -10,7 +10,7 @@ import java.util.List;
@Command( @Command(
label = "group", label = "group",
aliases = {"g"}, aliases = {"gr"},
usage = {"(refresh) [<groupId>] [<suiteId>]"}, usage = {"(refresh) [<groupId>] [<suiteId>]"},
permission = "player.group", permission = "player.group",
permissionTargeted = "player.group.others") permissionTargeted = "player.group.others")

View File

@ -12,7 +12,7 @@ import lombok.val;
@Command( @Command(
label = "sound", label = "sound",
aliases = {"s", "audio"}, aliases = {"audio"},
usage = {"[<audioname>] [<x><y><z>]"}, usage = {"[<audioname>] [<x><y><z>]"},
permission = "player.sound", permission = "player.sound",
permissionTargeted = "player.sound.others") permissionTargeted = "player.sound.others")

View File

@ -12,38 +12,38 @@ import lombok.experimental.FieldDefaults;
public class HomeworldDefaultSaveData { public class HomeworldDefaultSaveData {
@SerializedName( @SerializedName(
value = "KFHBFNPDJBE", value = "homeBlockLists",
alternate = {"PKACPHDGGEI", "AKOLOBLHDFK"}) alternate = {"PKACPHDGGEI", "AKOLOBLHDFK", "KFHBFNPDJBE"})
List<HomeBlock> homeBlockLists; List<HomeBlock> homeBlockLists;
@SerializedName( @SerializedName(
value = "IJNPADKGNKE", value = "bornPos",
alternate = {"MINCKHBNING", "MBICDPDEKDM"}) alternate = {"MINCKHBNING", "MBICDPDEKDM", "IJNPADKGNKE"})
Position bornPos; Position bornPos;
@SerializedName( @SerializedName(
value = "IPIIGEMFLHK", value = "bornRot",
alternate = {"EJJIOJKFKCO"}) alternate = {"EJJIOJKFKCO", "IPIIGEMFLHK"})
Position bornRot; Position bornRot;
@SerializedName( @SerializedName(
value = "HHOLBNPIHEM", value = "djinPos",
alternate = {"CJAKHCIFHNP"}) alternate = {"CJAKHCIFHNP", "HHOLBNPIHEM"})
Position djinPos; Position djinPos;
@SerializedName( @SerializedName(
value = "KNHCJKHCOAN", value = "mainhouse",
alternate = {"AMDNOHPGKMI"}) alternate = {"AMDNOHPGKMI", "KNHCJKHCOAN"})
HomeFurniture mainhouse; HomeFurniture mainhouse;
@SerializedName( @SerializedName(
value = "NIHOJFEKFPG", value = "doorLists",
alternate = {"BHCPEAOPIDC"}) alternate = {"BHCPEAOPIDC", "NIHOJFEKFPG"})
List<HomeFurniture> doorLists; List<HomeFurniture> doorLists;
@SerializedName( @SerializedName(
value = "EPGELGEFJFK", value = "stairLists",
alternate = {"AABEPENIFLN"}) alternate = {"AABEPENIFLN", "EPGELGEFJFK"})
List<HomeFurniture> stairLists; List<HomeFurniture> stairLists;
@Data @Data
@ -51,18 +51,18 @@ public class HomeworldDefaultSaveData {
public static class HomeBlock { public static class HomeBlock {
@SerializedName( @SerializedName(
value = "FGIJCELCGFI", value = "blockId",
alternate = {"PGDPDIDJEEL", "ANICBLBOBKD"}) alternate = {"PGDPDIDJEEL", "ANICBLBOBKD", "FGIJCELCGFI"})
int blockId; int blockId;
@SerializedName( @SerializedName(
value = "BEAPOFELABD", value = "furnitures",
alternate = {"NCIMIKKFLOH"}) alternate = {"NCIMIKKFLOH", "BEAPOFELABD"})
List<HomeFurniture> furnitures; List<HomeFurniture> furnitures;
@SerializedName( @SerializedName(
value = "MLIODLGDFHJ", value = "persistentFurnitures",
alternate = {"GJGNLIINBGB"}) alternate = {"GJGNLIINBGB", "MLIODLGDFHJ"})
List<HomeFurniture> persistentFurnitures; List<HomeFurniture> persistentFurnitures;
} }
@ -71,15 +71,18 @@ public class HomeworldDefaultSaveData {
public static class HomeFurniture { public static class HomeFurniture {
@SerializedName( @SerializedName(
value = "ENHNGKJBJAB", value = "id",
alternate = {"KMAAJJHPNBA", "FFLCGFGGGND"}) alternate = {"KMAAJJHPNBA", "FFLCGFGGGND", "ENHNGKJBJAB"})
int id; int id;
@SerializedName( @SerializedName(
value = "NGIEEIOLPPO", value = "pos",
alternate = {"JFKAHNCPDME", "BPCGGBKIAMG"}) alternate = {"JFKAHNCPDME", "BPCGGBKIAMG", "NGIEEIOLPPO"})
Position pos; Position pos;
// @SerializedName(value = "HEOCEHKEBFM", alternate = "LKCKOOGFDBM")
@SerializedName(
value = "rot",
alternate = {"LKCKOOGFDBM", "HEOCEHKEBFM"})
Position rot; Position rot;
} }
} }

View File

@ -157,6 +157,13 @@ public class AvatarStorage extends BasePlayerManager implements Iterable<Avatar>
// Add to avatar storage // Add to avatar storage
this.avatars.put(avatar.getAvatarId(), avatar); this.avatars.put(avatar.getAvatarId(), avatar);
this.avatarsGuid.put(avatar.getGuid(), avatar); this.avatarsGuid.put(avatar.getGuid(), avatar);
// Set main character skill depot data, fixes loading with no element every login
if ((avatar.getAvatarId() == 10000007) || (avatar.getAvatarId() == 10000005)) {
avatar.setSkillDepot(skillDepot);
avatar.setSkillDepotData(skillDepot);
avatar.save();
}
} }
this.setLoaded(true); this.setLoaded(true);

View File

@ -41,7 +41,7 @@ public class HomeFurnitureItem {
.furnitureId(homeFurniture.getId()) .furnitureId(homeFurniture.getId())
.parentFurnitureIndex(1) .parentFurnitureIndex(1)
.spawnPos(homeFurniture.getPos() == null ? new Position() : homeFurniture.getPos()) .spawnPos(homeFurniture.getPos() == null ? new Position() : homeFurniture.getPos())
.spawnRot(homeFurniture.getRot() == null ? new Position() : homeFurniture.getRot()) .spawnRot(new Position())
.build(); .build();
} }

View File

@ -10,7 +10,10 @@ import java.util.stream.Stream;
import lombok.Getter; import lombok.Getter;
public enum ElementType implements IntValueEnum { public enum ElementType implements IntValueEnum {
None(0, FightProperty.FIGHT_PROP_CUR_FIRE_ENERGY, FightProperty.FIGHT_PROP_MAX_FIRE_ENERGY), None(
0,
FightProperty.FIGHT_PROP_CUR_WIND_ENERGY,
FightProperty.FIGHT_PROP_MAX_WIND_ENERGY),
Fire( Fire(
1, 1,
FightProperty.FIGHT_PROP_CUR_FIRE_ENERGY, FightProperty.FIGHT_PROP_CUR_FIRE_ENERGY,
@ -90,7 +93,7 @@ public enum ElementType implements IntValueEnum {
@Getter private final int configHash; @Getter private final int configHash;
ElementType(int value, FightProperty curEnergyProp, FightProperty maxEnergyProp) { ElementType(int value, FightProperty curEnergyProp, FightProperty maxEnergyProp) {
this(value, curEnergyProp, maxEnergyProp, 0, null, 1); this(value, curEnergyProp, maxEnergyProp, 0, null, 0);
} }
ElementType( ElementType(

View File

@ -267,7 +267,7 @@ public final class RegionHandler implements Router {
.setRegionInfo(RegionInfo.newBuilder()) .setRegionInfo(RegionInfo.newBuilder())
.setStopServer( .setStopServer(
StopServerInfo.newBuilder() StopServerInfo.newBuilder()
.setUrl("https://discord.gg/grasscutters") .setUrl("https://discord.gg/T5vZU6UyeG")
.setStopBeginTime((int) Instant.now().getEpochSecond()) .setStopBeginTime((int) Instant.now().getEpochSecond())
.setStopEndTime((int) Instant.now().getEpochSecond() + 1) .setStopEndTime((int) Instant.now().getEpochSecond() + 1)
.setContentMsg( .setContentMsg(