mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-06 18:17:00 +01:00
feat:cooking food ingredient(aka:compound) implementation (#1858)
* feat:cooking food ingredient(aka:compound) implementation Implement food ingredient(compound) feature.Need a thorough test and still has some work to do. * small bug fix;implement fish processing * Update src/main/java/emu/grasscutter/server/packet/send/PacketItemAddHintNotify.java Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com> * Update Inventory.java * Update Inventory.java Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>
This commit is contained in:
26
src/main/java/emu/grasscutter/data/excels/CompoundData.java
Normal file
26
src/main/java/emu/grasscutter/data/excels/CompoundData.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package emu.grasscutter.data.excels;
|
||||
|
||||
import emu.grasscutter.data.GameResource;
|
||||
import emu.grasscutter.data.ResourceType;
|
||||
import emu.grasscutter.data.common.ItemParamData;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ResourceType(name = {"CompoundExcelConfigData.json"},loadPriority = ResourceType.LoadPriority.LOW)
|
||||
public class CompoundData extends GameResource {
|
||||
private int id;
|
||||
|
||||
@Override
|
||||
public int getId(){return this.id;}
|
||||
@Getter private int groupId;
|
||||
@Getter private int rankLevel;
|
||||
@Getter private boolean isDefaultUnlocked;
|
||||
@Getter private int costTime;
|
||||
@Getter private int queueSize;
|
||||
@Getter private List<ItemParamData> inputVec;
|
||||
@Getter private List<ItemParamData> outputVec;
|
||||
|
||||
@Override
|
||||
public void onLoad(){}
|
||||
}
|
||||
@@ -6,44 +6,23 @@ import emu.grasscutter.data.GameResource;
|
||||
import emu.grasscutter.data.ResourceType;
|
||||
import emu.grasscutter.data.ResourceType.LoadPriority;
|
||||
import emu.grasscutter.data.common.ItemParamData;
|
||||
import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam;
|
||||
import lombok.Getter;
|
||||
|
||||
@ResourceType(name = {"CookRecipeExcelConfigData.json"}, loadPriority = LoadPriority.LOW)
|
||||
public class CookRecipeData extends GameResource {
|
||||
private int id;
|
||||
|
||||
private int rankLevel;
|
||||
private boolean isDefaultUnlocked;
|
||||
private int maxProficiency;
|
||||
@Getter private int rankLevel;
|
||||
@Getter boolean isDefaultUnlocked;
|
||||
@Getter int maxProficiency;
|
||||
|
||||
private List<ItemParamData> qualityOutputVec;
|
||||
private List<ItemParamData> inputVec;
|
||||
@Getter List<ItemParamData> qualityOutputVec;
|
||||
@Getter List<ItemParamData> inputVec;
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public int getRankLevel() {
|
||||
return this.rankLevel;
|
||||
}
|
||||
|
||||
public boolean isDefaultUnlocked() {
|
||||
return this.isDefaultUnlocked;
|
||||
}
|
||||
|
||||
public int getMaxProficiency() {
|
||||
return this.maxProficiency;
|
||||
}
|
||||
|
||||
public List<ItemParamData> getQualityOutputVec() {
|
||||
return this.qualityOutputVec;
|
||||
}
|
||||
|
||||
public List<ItemParamData> getInputVec() {
|
||||
return this.inputVec;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user