Planes 1.06

This commit is contained in:
barelyprofessional
2025-10-10 00:10:45 -05:00
parent 2f47d1b3c0
commit 4c4567d4a9

View File

@@ -320,6 +320,7 @@ public class Planes : ICommand
var plane = new Plane(gambler); var plane = new Plane(gambler);
var frameLength = 1000.0; var frameLength = 1000.0;
var fullCounter = 0; var fullCounter = 0;
bool firstBoard = true;
var counter = 0; var counter = 0;
var noseUp = true; var noseUp = true;
var planesDisplay = GetPreGameBoard(-3, planesBoard, plane, carrierCount, noseUp); var planesDisplay = GetPreGameBoard(-3, planesBoard, plane, carrierCount, noseUp);
@@ -340,7 +341,9 @@ public class Planes : ICommand
*/ */
do do
{ {
counter = fullCounter % 23 - 3; if (fullCounter > 20) firstBoard = false;
counter = fullCounter % 23-3;
if (!firstBoard) counter += 3;
await Task.Delay(TimeSpan.FromMilliseconds(frameLength / 3), ctx); await Task.Delay(TimeSpan.FromMilliseconds(frameLength / 3), ctx);
var neutral = false; var neutral = false;
var frameCounter = 0; var frameCounter = 0;
@@ -389,9 +392,6 @@ public class Planes : ICommand
} }
catch (IndexOutOfRangeException e) catch (IndexOutOfRangeException e)
{ {
await botInstance.SendChatMessageAsync(
$"Something went wrong, error code 2. Counter: {fullCounter} Counter%: {counter} Height: {plane.Height}[br]{e}",
true, autoDeleteAfter: cleanupDelay);
logger.Error( logger.Error(
$"Something went wrong, error code 2. Counter: {fullCounter} Counter%: {counter} Height: {plane.Height}"); $"Something went wrong, error code 2. Counter: {fullCounter} Counter%: {counter} Height: {plane.Height}");
logger.Error(e); logger.Error(e);