fix coin
This commit is contained in:
parent
23487532df
commit
d0d8008d51
|
@ -1,6 +1,7 @@
|
|||
package fortunedragon
|
||||
|
||||
import (
|
||||
gamerule "mongo.games.com/game/gamerule/fortunedragon"
|
||||
"mongo.games.com/game/gamesrv/base"
|
||||
"mongo.games.com/game/gamesrv/slotspkg/slots"
|
||||
)
|
||||
|
@ -17,7 +18,7 @@ type FortuneDragonPlayerData struct {
|
|||
}
|
||||
|
||||
func (p *FortuneDragonPlayerData) init() {
|
||||
p.SlotsSession = base.NewSession(uint64(p.SnId), p.Coin)
|
||||
p.SlotsSession = base.NewSession(uint64(p.SnId), p.Coin*gamerule.NowByte)
|
||||
}
|
||||
func (p *FortuneDragonPlayerData) Clear() {
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package fortunerabbit
|
||||
|
||||
import (
|
||||
"mongo.games.com/game/gamerule/fortunerabbit"
|
||||
"mongo.games.com/game/gamesrv/base"
|
||||
"mongo.games.com/game/gamesrv/slotspkg/slots"
|
||||
)
|
||||
|
@ -17,7 +18,7 @@ type FortuneRabbitPlayerData struct {
|
|||
}
|
||||
|
||||
func (p *FortuneRabbitPlayerData) init() {
|
||||
p.SlotsSession = base.NewSession(uint64(p.SnId), p.Coin)
|
||||
p.SlotsSession = base.NewSession(uint64(p.SnId), p.Coin*fortunerabbit.NowByte)
|
||||
}
|
||||
func (p *FortuneRabbitPlayerData) Clear() {
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ func PullPlayer(s *base.SlotsSession, hash map[string]string) *Player {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
p.Book.Coin.Set(s.Coin())
|
||||
|
||||
Set(s, p)
|
||||
|
||||
|
@ -65,6 +66,7 @@ func PullPlayer(s *base.SlotsSession, hash map[string]string) *Player {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
p.Book.Coin.Set(s.Coin())
|
||||
|
||||
return p
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue