forked from Grasscutters/Grasscutter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
1,212 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package emu.grasscutter; | ||
|
||
public final class DebugConstants { | ||
public static boolean LOG_ABILITIES = false; | ||
public static boolean LOG_LUA_SCRIPTS = false; | ||
public static boolean LOG_QUEST_START = false; | ||
|
||
private DebugConstants() { | ||
// Prevent instantiation. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
src/main/java/emu/grasscutter/data/excels/BargainData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package emu.grasscutter.data.excels; | ||
|
||
import emu.grasscutter.data.*; | ||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@ResourceType(name = "BargainExcelConfigData.json") | ||
public final class BargainData extends GameResource { | ||
@Getter private int id; | ||
private int questId; | ||
|
||
private List<Integer> dialogId; | ||
|
||
/** | ||
* This is a list of 2 integers. | ||
* The first integer is the minimum value of the bargain. | ||
* The second integer is the maximum value of the bargain. | ||
*/ | ||
private List<Integer> expectedValue; | ||
private int space; | ||
|
||
private List<Integer> successTalkId; | ||
private int failTalkId; | ||
private int moodNpcId; | ||
|
||
/** | ||
* This is a list of 2 integers. | ||
* The first integer is the minimum value of the mood. | ||
* The second integer is the maximum value of the mood. | ||
*/ | ||
private List<Integer> randomMood; | ||
private int moodAlertLimit; | ||
private int moodLowLimit; | ||
private int singleFailMoodDeduction; | ||
|
||
private long moodLowLimitTextTextMapHash; | ||
private long titleTextTextMapHash; | ||
private long affordTextTextMapHash; | ||
private long storageTextTextMapHash; | ||
private long moodHintTextTextMapHash; | ||
private long moodDescTextTextMapHash; | ||
|
||
private List<Integer> singleFailTalkId; | ||
|
||
private boolean deleteItem; | ||
private int itemId; | ||
} |
46 changes: 46 additions & 0 deletions
46
src/main/java/emu/grasscutter/data/excels/giving/GivingData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package emu.grasscutter.data.excels.giving; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import emu.grasscutter.data.*; | ||
import emu.grasscutter.data.common.ItemParamData; | ||
import emu.grasscutter.game.inventory.BagTab; | ||
import lombok.*; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = false) | ||
@ResourceType(name = "GivingExcelConfigData.json") | ||
public final class GivingData extends GameResource { | ||
@SerializedName(value = "id", alternate = "Id") | ||
private int id; | ||
private int talkId; | ||
private int mistakeTalkId; | ||
|
||
private BagTab tab; | ||
private GiveMethod givingMethod; | ||
|
||
private List<ItemParamData> exactItems; | ||
private int exactFinishTalkId; | ||
|
||
private List<Integer> givingGroupIds; | ||
private int givingGroupCount; | ||
|
||
private boolean isRemoveItem; | ||
private GiveType giveType; | ||
|
||
public enum GiveMethod { | ||
GIVING_METHOD_NONE, | ||
/** All items are required to succeed. */ | ||
GIVING_METHOD_EXACT, | ||
GIVING_METHOD_GROUP, | ||
/** One in the group is required to succeed. */ | ||
GIVING_METHOD_VAGUE_GROUP, | ||
GIVING_METHOD_ANY_NO_FINISH | ||
} | ||
|
||
public enum GiveType { | ||
@SerializedName("GIVING_TYPE_QUEST") QUEST, | ||
@SerializedName("GIVING_TYPE_GROUP") GROUP | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/emu/grasscutter/data/excels/giving/GivingGroupData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package emu.grasscutter.data.excels.giving; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import emu.grasscutter.data.*; | ||
import lombok.*; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = false) | ||
@ResourceType(name = "GivingGroupExcelConfigData.json") | ||
public final class GivingGroupData extends GameResource { | ||
@SerializedName(value = "id", alternate = "Id") | ||
private int id; | ||
|
||
@SerializedName(value = "itemIds", alternate = "ItemIds") | ||
private List<Integer> itemIds; | ||
|
||
private int finishTalkId; | ||
private int mistakeTalkId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.