-
Notifications
You must be signed in to change notification settings - Fork 3
/
dolphinspearl_link.go
61 lines (56 loc) · 1.56 KB
/
dolphinspearl_link.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//go:build !prod || full || novomatic
package links
import (
"context"
"github.com/slotopol/server/game/dolphinspearl"
"github.com/spf13/pflag"
)
func init() {
var gi = GameInfo{
Aliases: []GameAlias{
{"dolphinspearl", "Dolphins Pearl"},
{"dolphinspearldeluxe", "Dolphins Pearl Deluxe"},
{"attila", "Attila"},
{"bananasplash", "Banana Splash"},
{"dynastyofming", "Dynasty Of Ming"},
{"gryphonsgold", "Gryphons Gold"},
{"jokerdolphin", "Joker Dolphin"},
{"kingofcards", "King Of Cards"},
{"luckyladyscharm", "Lucky Lady's Charm"},
{"luckyladyscharmdeluxe", "Lucky Lady's Charm Deluxe"},
{"pharaonsgold2", "Pharaon's Gold II"},
{"pharaonsgold3", "Pharaon's Gold III"},
{"polarfox", "Polar Fox"},
{"ramses2", "Ramses II"},
{"royaltreasures", "Royal Treasures"},
{"secretforest", "Secret Forest"},
{"themoneygame", "The Money Game"},
{"unicornmagic", "Unicorn Magic"},
},
Provider: "Novomatic",
ScrnX: 5,
ScrnY: 3,
RtpList: []string{
"86", "88", "90", "92", "94", "95", "96", "97", "141", "bon",
},
}
GameList = append(GameList, gi)
for _, ga := range gi.Aliases {
ScanIters = append(ScanIters, func(flags *pflag.FlagSet, ctx context.Context) {
if is, _ := flags.GetBool(ga.ID); is {
var rn, _ = flags.GetString("reels")
if rn == "bon" {
dolphinspearl.CalcStatBon(ctx)
} else {
dolphinspearl.CalcStatReg(ctx, rn)
}
}
})
GameFactory[ga.ID] = func(rd string) any {
if _, ok := dolphinspearl.ReelsMap[rd]; ok {
return dolphinspearl.NewGame(rd)
}
return nil
}
}
}