feat(task): 增加每日任务奖励经验值至20000
将每日任务中多个精灵任务(毛毛、比比鼠、幽浮、利牙鱼等)的完成奖励从 2000点经验调整为20000点经验,以提升玩家任务收益。 refactor(fight): 使用枚举类型优化战斗结束原因字段 将 FightOverInfo 结构体中的 Reason 字段由 uint32 类型改为 EnumBattleOverReason 枚举类型,提高代码可读性和类型安全性。 同时修复了战斗结束时逃跑原因未正确传递的问题。
This commit is contained in:
@@ -489,7 +489,7 @@ func (h Controller) Complete_Task(data *task.CompleteTaskInboundInfo, c *player.
|
||||
// 每日任务之毛毛
|
||||
case 401:
|
||||
result.ItemList = append(result.ItemList,
|
||||
task.ItemInfo{ItemId: 3, ItemCount: 2000}, // 积累经验x2000
|
||||
task.ItemInfo{ItemId: 3, ItemCount: 20000}, // 积累经验x2000
|
||||
)
|
||||
|
||||
// 每日任务之小火猴
|
||||
@@ -513,19 +513,19 @@ func (h Controller) Complete_Task(data *task.CompleteTaskInboundInfo, c *player.
|
||||
// 每日任务之比比鼠
|
||||
case 405:
|
||||
result.ItemList = append(result.ItemList,
|
||||
task.ItemInfo{ItemId: 3, ItemCount: 2000}, // 积累经验x2000
|
||||
task.ItemInfo{ItemId: 3, ItemCount: 20000}, // 积累经验x2000
|
||||
)
|
||||
|
||||
// 每日任务之幽浮
|
||||
case 406:
|
||||
result.ItemList = append(result.ItemList,
|
||||
task.ItemInfo{ItemId: 3, ItemCount: 2000}, // 积累经验x2000
|
||||
task.ItemInfo{ItemId: 3, ItemCount: 20000}, // 积累经验x2000
|
||||
)
|
||||
|
||||
// 每日任务之利牙鱼
|
||||
case 407:
|
||||
result.ItemList = append(result.ItemList,
|
||||
task.ItemInfo{ItemId: 3, ItemCount: 2000}, // 积累经验x2000
|
||||
task.ItemInfo{ItemId: 3, ItemCount: 20000}, // 积累经验x2000
|
||||
)
|
||||
|
||||
// 每日任务之谱尼扭蛋牌
|
||||
|
||||
BIN
logic/logic1
BIN
logic/logic1
Binary file not shown.
@@ -265,13 +265,13 @@ type FightOverInfo struct {
|
||||
// 3=isDraw 双方平手
|
||||
// 4=isSysError 系统错误
|
||||
// 5=isNpcEscape 精灵主动逃跑
|
||||
Reason uint32 // 固定值0
|
||||
WinnerId uint32 // 胜者的米米号 野怪为0
|
||||
TwoTimes uint32 // 双倍经验剩余次数
|
||||
ThreeTimes uint32 // 三倍经验剩余次数
|
||||
AutoFightTimes uint32 // 自动战斗剩余次数
|
||||
EnergyTimes uint32 // 能量吸收器剩余次数
|
||||
LearnTimes uint32 // 双倍学习器剩余次数
|
||||
Reason EnumBattleOverReason // 固定值0
|
||||
WinnerId uint32 // 胜者的米米号 野怪为0
|
||||
TwoTimes uint32 // 双倍经验剩余次数
|
||||
ThreeTimes uint32 // 三倍经验剩余次数
|
||||
AutoFightTimes uint32 // 自动战斗剩余次数
|
||||
EnergyTimes uint32 // 能量吸收器剩余次数
|
||||
LearnTimes uint32 // 双倍学习器剩余次数
|
||||
}
|
||||
|
||||
type CatchMonsterOutboundInfo struct {
|
||||
|
||||
@@ -33,7 +33,7 @@ func (f *FightC) Over(c common.PlayerI, res info.EnumBattleOverReason) {
|
||||
BaseAction: action.NewBaseAction(c.GetInfo().UserID),
|
||||
Reason: info.FightOverInfo{
|
||||
|
||||
Reason: uint32(info.BattleOverReason.PlayerEscape),
|
||||
Reason: res,
|
||||
},
|
||||
}
|
||||
if c.GetInfo().UserID == f.ownerID {
|
||||
|
||||
Reference in New Issue
Block a user