1
This commit is contained in:
parent
971d8bded4
commit
b8cf189e8f
@ -8,6 +8,7 @@ import (
|
||||
"main/model"
|
||||
"math/rand"
|
||||
"main/mt"
|
||||
"main/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@ -69,6 +70,14 @@ func (this *ActivityApi) RollDice(c *gin.Context) {
|
||||
if reqJson.ForwardPoint > 0 {
|
||||
rspObj.Point = reqJson.ForwardPoint
|
||||
}
|
||||
if err, ok := service.Buff.HasBuffEffect(s.GetAccountId(), constant.BUFF_EFFECT_SCORE_CARD_X3); err == nil {
|
||||
if ok {
|
||||
score *= 3
|
||||
}
|
||||
} else {
|
||||
f5.RspErr(c, 500, "server internal error7")
|
||||
return
|
||||
}
|
||||
rspObj.GetOrCreateAward().AddItem(constant.VIRTUAL_ITEM_SCORE, score)
|
||||
rspObj.GetOrCreateSideEffect().GetOrCreateUser().FromModel(user)
|
||||
c.JSON(200, rspObj)
|
||||
|
Loading…
x
Reference in New Issue
Block a user