mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
update slots multispin to actually work (#42)
update slots multispin to actually work
This commit is contained in:
@@ -324,20 +324,23 @@ public class SlotsCommand : ICommand
|
|||||||
|
|
||||||
public void ExecuteGameLoop(int spins, int featureSpins = 0)
|
public void ExecuteGameLoop(int spins, int featureSpins = 0)
|
||||||
{
|
{
|
||||||
GeneratePreBoard(featureSpins);
|
for (int sp = 0; sp < spins; sp++)
|
||||||
var fCount = 0;
|
{
|
||||||
for (var i = 0; i < 5; i++) for (var j = 0; j < 5; j++) if (_preboard[i, j] == FEATURE) fCount++;
|
GeneratePreBoard(featureSpins);
|
||||||
|
var fCount = 0;
|
||||||
|
for (var i = 0; i < 5; i++) for (var j = 0; j < 5; j++) if (_preboard[i, j] == FEATURE) fCount++;
|
||||||
|
|
||||||
if (featureSpins == 0) {
|
if (featureSpins == 0) {
|
||||||
_activeFeatureTier = fCount >= 5 ? 5 : (fCount >= 3 ? fCount : 0);
|
_activeFeatureTier = fCount >= 5 ? 5 : (fCount >= 3 ? fCount : 0);
|
||||||
_showGoldCircle = _activeFeatureTier >= 3; _currentFeatureSpin = 0;
|
_showGoldCircle = _activeFeatureTier >= 3; _currentFeatureSpin = 0;
|
||||||
} else {
|
} else {
|
||||||
_showGoldCircle = true; _currentFeatureSpin = featureSpins;
|
_showGoldCircle = true; _currentFeatureSpin = featureSpins;
|
||||||
|
}
|
||||||
|
|
||||||
|
ProcessReelsAndWins();
|
||||||
|
var total = _activeFeatureTier switch { 3 => 3, 4 => 5, 5 => 10, _ => 0 };
|
||||||
|
if (featureSpins == 0) for (var s = 1; s <= total; s++) ExecuteGameLoop(1,s);
|
||||||
}
|
}
|
||||||
|
|
||||||
ProcessReelsAndWins();
|
|
||||||
var total = _activeFeatureTier switch { 3 => 3, 4 => 5, 5 => 10, _ => 0 };
|
|
||||||
if (featureSpins == 0) for (var s = 1; s <= total; s++) ExecuteGameLoop(1,s);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProcessReelsAndWins()
|
private void ProcessReelsAndWins()
|
||||||
|
|||||||
Reference in New Issue
Block a user