From defdc4b8292189c6f87dcf52ee96906d4ade5b6a Mon Sep 17 00:00:00 2001 From: tomas Date: Mon, 23 Dec 2024 13:12:58 +0800 Subject: [PATCH] up pe rabbit --- .../slots/plugin/fortunerabbit/tospecial.go | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/gamesrv/slotspkg/slots/plugin/fortunerabbit/tospecial.go b/gamesrv/slotspkg/slots/plugin/fortunerabbit/tospecial.go index 7c0b1cd..41c5b1b 100644 --- a/gamesrv/slotspkg/slots/plugin/fortunerabbit/tospecial.go +++ b/gamesrv/slotspkg/slots/plugin/fortunerabbit/tospecial.go @@ -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 { - sp := p.getCustomSpecial(m) - sp.Prize = Fortune.Prize - return - } + //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 } } func (p *PluginSpecial) AfterSpin(m intf.Master) {