mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-06 18:17:00 +01:00
Rename excel classes
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
package emu.grasscutter.data.common;
|
||||
|
||||
public class CurveInfo {
|
||||
private String Type;
|
||||
private String Arith;
|
||||
private float Value;
|
||||
private String type;
|
||||
private String arith;
|
||||
private float value;
|
||||
|
||||
public String getType() {
|
||||
return Type;
|
||||
return type;
|
||||
}
|
||||
public String getArith() {
|
||||
return Arith;
|
||||
return arith;
|
||||
}
|
||||
public float getValue() {
|
||||
return Value;
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,16 +3,16 @@ package emu.grasscutter.data.common;
|
||||
import emu.grasscutter.game.props.FightProperty;
|
||||
|
||||
public class FightPropData {
|
||||
private String PropType;
|
||||
private String propType;
|
||||
private FightProperty prop;
|
||||
private float Value;
|
||||
private float value;
|
||||
|
||||
public String getPropType() {
|
||||
return PropType;
|
||||
return propType;
|
||||
}
|
||||
|
||||
public float getValue() {
|
||||
return Value;
|
||||
return value;
|
||||
}
|
||||
|
||||
public FightProperty getProp() {
|
||||
@@ -20,6 +20,6 @@ public class FightPropData {
|
||||
}
|
||||
|
||||
public void onLoad() {
|
||||
this.prop = FightProperty.getPropByName(PropType);
|
||||
this.prop = FightProperty.getPropByName(propType);
|
||||
}
|
||||
}
|
||||
@@ -3,31 +3,31 @@ package emu.grasscutter.data.common;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class ItemParamData {
|
||||
@SerializedName(value="Id", alternate={"ItemId"})
|
||||
private int Id;
|
||||
@SerializedName(value="Id", alternate={"itemId"})
|
||||
private int id;
|
||||
|
||||
@SerializedName(value="Count", alternate={"ItemCount"})
|
||||
private int Count;
|
||||
@SerializedName(value="Count", alternate={"itemCount"})
|
||||
private int count;
|
||||
|
||||
public ItemParamData() {}
|
||||
public ItemParamData(int id, int count) {
|
||||
this.Id = id;
|
||||
this.Count = count;
|
||||
this.id = id;
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return Id;
|
||||
return id;
|
||||
}
|
||||
|
||||
public int getItemId() {
|
||||
return Id;
|
||||
return id;
|
||||
}
|
||||
|
||||
public int getCount() {
|
||||
return Count;
|
||||
return count;
|
||||
}
|
||||
|
||||
public int getItemCount() {
|
||||
return Count;
|
||||
return count;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
package emu.grasscutter.data.common;
|
||||
|
||||
public class ItemParamStringData {
|
||||
private int Id;
|
||||
private String Count;
|
||||
private int id;
|
||||
private String count;
|
||||
|
||||
public ItemParamStringData() {}
|
||||
|
||||
public int getId() {
|
||||
return Id;
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getCount() {
|
||||
return Count;
|
||||
return count;
|
||||
}
|
||||
|
||||
public ItemParamData toItemParamData() {
|
||||
if (Count.contains(";")) {
|
||||
String[] split = Count.split(";");
|
||||
Count = Count.split(";")[split.length - 1];
|
||||
} else if (Count.contains(".")) {
|
||||
return new ItemParamData(Id, (int) Math.ceil(Double.parseDouble(Count)));
|
||||
if (count.contains(";")) {
|
||||
String[] split = count.split(";");
|
||||
count = count.split(";")[split.length - 1];
|
||||
} else if (count.contains(".")) {
|
||||
return new ItemParamData(id, (int) Math.ceil(Double.parseDouble(count)));
|
||||
}
|
||||
return new ItemParamData(Id, Integer.parseInt(Count));
|
||||
return new ItemParamData(id, Integer.parseInt(count));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,22 +3,22 @@ package emu.grasscutter.data.common;
|
||||
import java.util.List;
|
||||
|
||||
public class OpenCondData {
|
||||
private String CondType;
|
||||
private List<Integer> ParamList;
|
||||
private String condType;
|
||||
private List<Integer> paramList;
|
||||
|
||||
public String getCondType() {
|
||||
return CondType;
|
||||
return condType;
|
||||
}
|
||||
|
||||
public void setCondType(String condType) {
|
||||
CondType = condType;
|
||||
condType = condType;
|
||||
}
|
||||
|
||||
public List<Integer> getParamList() {
|
||||
return ParamList;
|
||||
return paramList;
|
||||
}
|
||||
|
||||
public void setParamList(List<Integer> paramList) {
|
||||
ParamList = paramList;
|
||||
paramList = paramList;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package emu.grasscutter.data.common;
|
||||
|
||||
import emu.grasscutter.Grasscutter;
|
||||
import emu.grasscutter.data.GameData;
|
||||
import emu.grasscutter.data.def.DailyDungeonData;
|
||||
import emu.grasscutter.data.excels.DailyDungeonData;
|
||||
import emu.grasscutter.utils.Position;
|
||||
import it.unimi.dsi.fastutil.ints.IntArrayList;
|
||||
import it.unimi.dsi.fastutil.ints.IntList;
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
package emu.grasscutter.data.common;
|
||||
|
||||
public class PropGrowCurve {
|
||||
private String Type;
|
||||
private String GrowCurve;
|
||||
private String type;
|
||||
private String growCurve;
|
||||
|
||||
public String getType(){
|
||||
return this.Type;
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public String getGrowCurve(){
|
||||
return this.GrowCurve;
|
||||
return this.growCurve;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user