Skip to content

Commit

Permalink
Merge branch 'development' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
KingRainbow44 committed May 7, 2022
2 parents c5bf5ec + 4455072 commit 2171668
Show file tree
Hide file tree
Showing 92 changed files with 2,240 additions and 1,134 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ mongod.exe
/*.sh
language/
languages/
gacha_mappings.js
gacha-mapping.js
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ plugins {
// Eclipse Support
id 'eclipse'

// Intelij Support
// IntelliJ Support
id 'idea'

// Maven
Expand Down
112 changes: 112 additions & 0 deletions data/ExpeditionReward.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
[
{
"expId": 301,
"expeditionRewardDataList": [
{
"hourTime": 4,
"expeditionRewardData": [
{
"itemId": 202,
"minCount": 625,
"maxCount": 625
}
]
},
{
"hourTime": 8,
"expeditionRewardData": [
{
"itemId": 202,
"minCount": 1575,
"maxCount": 1575
}
]
},
{
"hourTime": 12,
"expeditionRewardData": [
{
"itemId": 202,
"minCount": 2500,
"maxCount": 2500
}
]
},
{
"hourTime": 20,
"expeditionRewardData": [
{
"itemId": 202,
"minCount": 5000,
"maxCount": 5000
}
]
}
]
},
{
"expId": 305,
"expeditionRewardDataList": [
{
"hourTime": 4,
"rewardMora": 0,
"expeditionRewardData": [
{
"itemId": 100064,
"minCount": 1,
"maxCount": 1
}, {
"itemId": 101210,
"minCount": 1,
"maxCount": 1
}
]
},
{
"hourTime": 8,
"rewardMora": 0,
"expeditionRewardData": [
{
"itemId": 100064,
"minCount": 2,
"maxCount": 4
}, {
"itemId": 101210,
"minCount": 2,
"maxCount": 4
}
]
},
{
"hourTime": 12,
"rewardMora": 0,
"expeditionRewardData": [
{
"itemId": 100064,
"minCount": 4,
"maxCount": 6
}, {
"itemId": 101210,
"minCount": 4,
"maxCount": 6
}
]
},
{
"hourTime": 20,
"rewardMora": 0,
"expeditionRewardData": [
{
"itemId": 100064,
"minCount": 8,
"maxCount": 12
}, {
"itemId": 101210,
"minCount": 8,
"maxCount": 12
}
]
}
]
}
]
5 changes: 5 additions & 0 deletions proto/DungeonSettleNotify.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ option java_package = "emu.grasscutter.net.proto";

import "ParamList.proto";
import "StrengthenPointData.proto";
import "TowerLevelEndNotify.proto";

message DungeonSettleNotify {
oneof Detail {
TowerLevelEndNotify tower_level_end_notify = 101;
// it has more!
}
uint32 dungeon_id = 1;
bool is_success = 2;
repeated uint32 fail_cond_list = 3;
Expand Down
18 changes: 18 additions & 0 deletions proto/TowerFloorRecordChangeNotify.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";

option java_package = "emu.grasscutter.net.proto";

import "TowerFloorRecord.proto";

message TowerFloorRecordChangeNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
CMD_ID = 2418;
}

repeated TowerFloorRecord tower_floor_record_list = 1;
bool is_finished_entrance_floor = 2;
}
26 changes: 26 additions & 0 deletions proto/TowerLevelEndNotify.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
syntax = "proto3";

option java_package = "emu.grasscutter.net.proto";
import "ItemParam.proto";

message TowerLevelEndNotify {
enum CmdId {
option allow_alias = true;
NONE = 0;
ENET_CHANNEL_ID = 0;
ENET_IS_RELIABLE = 1;
CMD_ID = 2456;
}

enum ContinueStateType {
CONTINUE_STATE_CAN_NOT_CONTINUE = 0;
CONTINUE_STATE_CAN_ENTER_NEXT_LEVEL = 1;
CONTINUE_STATE_CAN_ENTER_NEXT_FLOOR = 2;
}

bool is_success = 1;
repeated uint32 finished_star_cond_list = 2;
repeated ItemParam reward_item_list = 3;
uint32 continue_state = 4;
uint32 next_floor_id = 5;
}
7 changes: 6 additions & 1 deletion src/main/java/emu/grasscutter/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import emu.grasscutter.game.mail.Mail;

public final class Config {

public String DatabaseUrl = "mongodb://localhost:27017";
public String DatabaseCollection = "grasscutter";

Expand Down Expand Up @@ -41,6 +40,8 @@ public static class DispatchServerOptions {
public String KeystorePassword = "123456";
public Boolean UseSSL = true;
public Boolean FrontHTTPS = true;
public Boolean CORS = false;
public String[] CORSAllowedOrigins = new String[] { "*" };

public boolean AutomaticallyCreateAccounts = false;
public String[] defaultPermissions = new String[] { "" };
Expand Down Expand Up @@ -80,6 +81,10 @@ public static class GameServerOptions {
public boolean WatchGacha = false;
public String ServerNickname = "Server";
public int ServerAvatarId = 10000007;
public int ServerNameCardId = 210001;
public int ServerLevel = 1;
public int ServerWorldLevel = 1;
public String ServerSignature = "Server Signature";
public int[] WelcomeEmotes = {2007, 1002, 4010};
public String WelcomeMotd = "Welcome to Grasscutter emu";
public String WelcomeMailTitle = "Welcome to Grasscutter!";
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/emu/grasscutter/GameConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ public final class GameConstants {
public static final int MAIN_CHARACTER_FEMALE = 10000007;
public static final String SERVER_AVATAR_NAME = Grasscutter.getConfig().getGameServerOptions().ServerNickname;
public static final int SERVER_AVATAR_ID = Grasscutter.getConfig().getGameServerOptions().ServerAvatarId;
public static final String SERVER_SIGNATURE = Grasscutter.getConfig().getGameServerOptions().ServerSignature;
public static final Position START_POSITION = new Position(2747, 194, -1719);
public static final int SERVER_NAMECARD_ID = Grasscutter.getConfig().getGameServerOptions().ServerNameCardId;
public static final int SERVER_LEVEL = Grasscutter.getConfig().getGameServerOptions().ServerLevel;
public static final int SERVER_WORLD_LEVEL = Grasscutter.getConfig().getGameServerOptions().ServerWorldLevel;

public static final int MAX_FRIENDS = 45;
public static final int MAX_FRIEND_REQUESTS = 50;
Expand Down
Loading

0 comments on commit 2171668

Please sign in to comment.