[BUGFIX] fix broken element changes at statues. (#154)

This commit is contained in:
Nazrin 2024-09-11 14:11:55 -07:00 committed by GitHub
parent b44e3e503d
commit b3eaa850ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,32 +1,25 @@
package emu.grasscutter.data.excels;
import com.google.gson.annotations.SerializedName;
import emu.grasscutter.data.GameResource;
import emu.grasscutter.data.ResourceType;
import emu.grasscutter.game.props.ElementType;
import lombok.Getter;
@ResourceType(name = "WorldAreaConfigData.json")
public class WorldAreaData extends GameResource {
private int id;
private int areaID1;
private int areaID2;
private int sceneID;
private ElementType elementType;
private int ID;
@Getter @SerializedName("AreaID1")
private int areaID1;
@Getter @SerializedName("AreaID2")
private int areaID2;
@Getter @SerializedName("SceneID")
private int sceneID;
@Getter
private ElementType elementType;
@Override
public int getId() {
return (this.areaID2 << 16) + this.areaID1;
}
public int getSceneID() {
return this.sceneID;
}
public ElementType getElementType() {
return this.elementType;
}
@Override
public void onLoad() {
}
@Override
public int getId() {
return (this.areaID2 << 16) + this.areaID1;
}
}