Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
9a96a796c8
@ -93,9 +93,7 @@ func (this *apiComp) UseGift(session comm.IUserSession, req *pb.LibraryUseGiftRe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if likeStates == 0 {
|
|
||||||
addExp *= req.Counts
|
|
||||||
}
|
|
||||||
res = append(res, &cfg.Gameatn{
|
res = append(res, &cfg.Gameatn{
|
||||||
A: "item",
|
A: "item",
|
||||||
T: req.Items,
|
T: req.Items,
|
||||||
|
@ -202,9 +202,9 @@ func (this *apiComp) ForgeEquip(session comm.IUserSession, req *pb.SmithyForgeEq
|
|||||||
} else { // 普通打造
|
} else { // 普通打造
|
||||||
// 获取掉落id
|
// 获取掉落id
|
||||||
newdrop := this.module.modelStove.CheckUnlockSuid(req.ReelId, stove.Data[req.ReelId].Lv, reelcfg.BasicDrop)
|
newdrop := this.module.modelStove.CheckUnlockSuid(req.ReelId, stove.Data[req.ReelId].Lv, reelcfg.BasicDrop)
|
||||||
res := this.module.configure.GetDropReward(newdrop)
|
|
||||||
// 检查是否命中双倍打造
|
// 检查是否命中双倍打造
|
||||||
for i := 0; i < int(req.Count); i++ {
|
for i := 0; i < int(req.Count); i++ {
|
||||||
|
res := this.module.configure.GetDropReward(newdrop)
|
||||||
if ok := this.module.modelStove.CheckForgetwoEquip(req.ReelId, stove.Data[req.ReelId].Lv, addProbability); ok {
|
if ok := this.module.modelStove.CheckForgetwoEquip(req.ReelId, stove.Data[req.ReelId].Lv, addProbability); ok {
|
||||||
if code, atno = this.module.DispenseAtno(session, res, true); code == pb.ErrorCode_Success {
|
if code, atno = this.module.DispenseAtno(session, res, true); code == pb.ErrorCode_Success {
|
||||||
for _, v := range atno {
|
for _, v := range atno {
|
||||||
@ -214,6 +214,7 @@ func (this *apiComp) ForgeEquip(session comm.IUserSession, req *pb.SmithyForgeEq
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if code, atno = this.module.DispenseAtno(session, res, true); code == pb.ErrorCode_Success {
|
if code, atno = this.module.DispenseAtno(session, res, true); code == pb.ErrorCode_Success {
|
||||||
for _, v := range atno {
|
for _, v := range atno {
|
||||||
if eq, err1 := this.module.ModuleEquipment.QueryEquipment(session.GetUserId(), v.O); err1 == pb.ErrorCode_Success {
|
if eq, err1 := this.module.ModuleEquipment.QueryEquipment(session.GetUserId(), v.O); err1 == pb.ErrorCode_Success {
|
||||||
|
Loading…
Reference in New Issue
Block a user