36 lines
863 B
Go
36 lines
863 B
Go
package cashmania
|
|
|
|
import "mongo.games.com/game/gamesrv/slotspkg/slots/intf"
|
|
|
|
const (
|
|
WU int = iota
|
|
Nudge
|
|
Respin
|
|
)
|
|
const (
|
|
Nudge_WU int = iota
|
|
Nudge_Up
|
|
Nudge_Down
|
|
)
|
|
|
|
// 获取特性数据
|
|
func getCustomFortune(m intf.Master) *CustomFortune {
|
|
customFortune := new(CustomFortune)
|
|
if len(m.CursorCustoms(customFortune)) == 0 {
|
|
m.AddCursorFeature(customFortune)
|
|
}
|
|
return m.CursorCustom(customFortune).(*CustomFortune)
|
|
}
|
|
func (p *PluginBase) RandomItemsByMid(m intf.Master, isFreeSpin bool, symbols []int64, poss ...int) {
|
|
items := Descx(m).RandomMidItems(isFreeSpin, len(poss))
|
|
for i, pos := range poss {
|
|
symbols[pos] = items[i]
|
|
}
|
|
}
|
|
func (p *PluginBase) RandomItemsByOther(m intf.Master, isFreeSpin bool, symbols []int64, poss ...int) {
|
|
items := Descx(m).RandomItems(isFreeSpin, len(poss))
|
|
for i, pos := range poss {
|
|
symbols[pos] = items[i]
|
|
}
|
|
}
|