فهرست منبع

新增噩梦模式协议

lt 1 سال پیش
والد
کامیت
8a7f461596

+ 48 - 0
RO_Server_Trunk-branch_0.1.39/roserver/serverproto/config_csv.go

@@ -228,6 +228,7 @@ func configNameListInit() {
 	CFGNameList["MailCfg"] = MailCfgLoad
 	CFGNameList["MissionCfg"] = MissionCfgLoad
 	CFGNameList["HardMissionCfg"] = HardMissionCfgLoad
+	CFGNameList["Hard2MissionCfg"] = Hard2MissionCfgLoad
 	CFGNameList["NatureCfg"] = NatureCfgLoad
 	CFGNameList["NpcCfg"] = NpcCfgLoad
 	CFGNameList["OnlineRewardsCfg"] = OnlineRewardsCfgLoad
@@ -405,6 +406,7 @@ func ConfigInit(path string) {
 	MailCfgLoad(path)
 	MissionCfgLoad(path)
 	HardMissionCfgLoad(path)
+	Hard2MissionCfgLoad(path)
 	NatureCfgLoad(path)
 	NpcCfgLoad(path)
 	OnlineRewardsCfgLoad(path)
@@ -447,6 +449,7 @@ func ConfigInit(path string) {
 	ShieldedWordCfgLoad(path)
 	ShopCfgLoad(path)
 	HardLevelCfgLoad(path)
+	Hard2LevelCfgLoad(path)
 	ShopTypeCfgLoad(path)
 	SignInCfgLoad(path)
 	SkillCfgLoad(path)
@@ -2256,6 +2259,26 @@ func HardMissionCfgLoad(path string) {
 	}
 }
 
+var Hard2MissionCfgLoader map[int32]*Hard2MissionCfg
+
+type Hard2MissionCfg struct {
+	MissionID        int32    `csv:"MissionID"`        //任务ID
+	MissionCondition []string `csv:"MissionCondition"` //任务枚举
+	MissionType      int32    `csv:"MissionType"`      //任务类型
+	Reward           []string `csv:"Reward"`           //奖励
+	GroupID          int32    `csv:"GroupID"`          //所属组id
+	GroupReward      []string `csv:"GroupReward"`      //所属组奖励
+}
+
+func Hard2MissionCfgLoad(path string) {
+	cfg := []*Hard2MissionCfg{}
+	Hard2MissionCfgLoader = map[int32]*Hard2MissionCfg{}
+	loadCsvCfg(path+"Hard2MissionCfg.csv", &cfg)
+	for _, row := range cfg {
+		Hard2MissionCfgLoader[row.MissionID] = row
+	}
+}
+
 type NatureCfg struct {
 	Id              int32  `csv:"Id"`              //屬性id
 	Name            string `csv:"Name"`            //屬性名字
@@ -3885,6 +3908,31 @@ func HardLevelCfgLoad(path string) {
 	}
 }
 
+var Hard2LevelCfgLoader map[int32]*Hard2LevelCfg
+
+// 噩梦模式
+type Hard2LevelCfg struct {
+	Id         int32 `csv:"Id"`         //唯一id
+	LevelId    int32 `csv:"LevelId"`    //场景id
+	MapId      int32 `csv:"MapId"`      //地图id
+	BaseExp    int32 `csv:"BaseExp"`    //通关base经验
+	JobExp     int32 `csv:"JobExp"`     //通关job经验
+	Zeny       int32 `csv:"Zeny"`       //通关银币
+	Gold       int32 `csv:"Gold"`       //通关金币
+	Parter     int32 `csv:"Parter"`     //通关伙伴经验
+	Cash       int32 `csv:"Cash"`       //活动通关现金
+	FreeInvest int32 `csv:"FreeInvest"` //通关免费充值额度
+}
+
+func Hard2LevelCfgLoad(path string) {
+	cfg := []*Hard2LevelCfg{}
+	Hard2LevelCfgLoader = map[int32]*Hard2LevelCfg{}
+	loadCsvCfg(path+"Hard2LevelCfg.csv", &cfg)
+	for _, row := range cfg {
+		Hard2LevelCfgLoader[row.Id] = row
+	}
+}
+
 var YuanHangTrialRankCfgLoader map[int32]*YuanHangTrialRankCfg
 
 type YuanHangTrialRankCfg struct {

+ 2 - 0
RO_Server_Trunk-branch_0.1.39/roserver/serverproto/user.proto

@@ -505,6 +505,8 @@ message RoleBattle {
     uint32      map_id_hard                   = 17; //当前地图ID,默认为1
     uint32      reward_map_id_hard            = 18;
     uint32      reward_map_level_hard         = 19;
+    uint32      map_level_hard2                = 20; //当前场景ID,默认为1
+    uint32      map_id_hard2                   = 21; //当前地图ID,默认为1
 }
 
 message ActorPosition {