From 34d283d6a9b6b556cf818f044d8f219fc2d00cc0 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Thu, 7 Dec 2023 11:52:36 +0800 Subject: [PATCH] [add] slotAE --- src/define/Game/Base/SlotBase.ts | 10 ++++++++-- src/define/Game/Request/CommonSlotRequest.ts | 10 ++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/define/Game/Base/SlotBase.ts b/src/define/Game/Base/SlotBase.ts index 1bb5d1c..79f3080 100644 --- a/src/define/Game/Base/SlotBase.ts +++ b/src/define/Game/Base/SlotBase.ts @@ -4,7 +4,7 @@ import CSSettingsSDV3 from "@/FormTableSD/CSSettingsSDV3"; import { gameObj } from "@/context/GameItemsContext"; import GameManager from "@/modules/GameManager"; import { NumberEx } from "@/utils/Number/NumberEx"; -import { CommonSlotFgSpinRequest, CommonSlotSpinRequest } from "../Request/CommonSlotRequest"; +import { CommonSlotAERequest, CommonSlotFgSpinRequest, CommonSlotSpinRequest } from "../Request/CommonSlotRequest"; import { Slot_ChoiceRequest } from "../Request/SlotRequest"; @@ -104,6 +104,9 @@ export class SlotBase { this.addLog(`Slot${this.ID} Spin Bet: ${GameManager.SlotData.NowBet}, Ratio: ${ratio}, Money: ${money}${winMoneyLog}${freeLog}`); } this.addLog(`Slot${this.ID} Spin Bet: ${GameManager.SlotData.NowBet}, Money: ${money}${winMoneyLog}${freeLog}`); + if (ratio > 0) { + this.slotAE(); + } } public * FreeSpin(freeCount: number) { @@ -184,7 +187,10 @@ export class SlotBase { return this.FreeID; } - // private *slotAE() { } + private slotAE(): void { + let req: CommonSlotAERequest = new CommonSlotAERequest(); + req.Send(); + } //#endregion } diff --git a/src/define/Game/Request/CommonSlotRequest.ts b/src/define/Game/Request/CommonSlotRequest.ts index 7cab2c6..b385097 100644 --- a/src/define/Game/Request/CommonSlotRequest.ts +++ b/src/define/Game/Request/CommonSlotRequest.ts @@ -76,3 +76,13 @@ export class CommonBingoChangeSet extends NetRequestSD { } } //======================================================================================= +/** 動畫結束通知 */ +export class CommonSlotAERequest extends NetRequestSD { + get Method(): string { + return "slot.ae"; + } + constructor() { + super(); + } +} +//======================================================================================= \ No newline at end of file