This commit is contained in:
@@ -64,15 +64,15 @@ func (p *Player) Save() {
|
||||
}
|
||||
|
||||
// 经验倍数返回
|
||||
func (p *Player) CanGetExp() int {
|
||||
func (p *Player) CanGetExp() (int, int) {
|
||||
if p.Info.TimeToday >= p.Info.TimeLimit {
|
||||
return 0
|
||||
return 0, 0
|
||||
}
|
||||
|
||||
islogintime := (int64(time.Now().Unix()) - int64(p.Logintime))
|
||||
|
||||
if islogintime > (p.Info.TimeLimit - p.Info.TimeToday) {
|
||||
return 0
|
||||
return 0, 0
|
||||
}
|
||||
base := 1
|
||||
if p.Info.TwoTimes != 0 {
|
||||
@@ -85,5 +85,5 @@ func (p *Player) CanGetExp() int {
|
||||
base *= 3
|
||||
|
||||
}
|
||||
return base
|
||||
return base, 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user