Merge branch 'develop' of git.pogorockgames.com:mango-games/server/game into develop
This commit is contained in:
commit
6804bf6641
|
@ -34,14 +34,24 @@ func (p *PluginSpecial) getCustomSpecial(m intf.Master) *Special {
|
|||
}
|
||||
func (p *PluginSpecial) BeforeDisplay(m intf.Master) {
|
||||
Fortune := getCustomFortune(m)
|
||||
for _, float64s := range Fortune.Prize {
|
||||
for _, f := range float64s {
|
||||
if f > 0 {
|
||||
//for _, float64s := range Fortune.Prize {
|
||||
// for _, f := range float64s {
|
||||
// if f > 0 {
|
||||
// sp := p.getCustomSpecial(m)
|
||||
// sp.Prize = Fortune.Prize
|
||||
// return
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
sp := p.getCustomSpecial(m)
|
||||
if len(Fortune.Prize) == 0 {
|
||||
sp.Prize = [][]float64{
|
||||
{0, 0, 0},
|
||||
{0, 0, 0, 0},
|
||||
{0, 0, 0},
|
||||
}
|
||||
} else {
|
||||
sp.Prize = Fortune.Prize
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
func (p *PluginSpecial) AfterSpin(m intf.Master) {
|
||||
|
|
Loading…
Reference in New Issue