This commit is contained in:
建喵 2022-08-09 14:14:14 +08:00
parent bdd124b229
commit 41ec8bd70e
10 changed files with 248 additions and 243 deletions

View File

@ -3,7 +3,7 @@
"private": true, "private": true,
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite --host",
"build": "vite build", "build": "vite build",
"preview": "vite preview" "preview": "vite preview"
}, },

View File

@ -75,7 +75,7 @@ export class BJ_Casino_Bot_Slot {
this.NoMoney(); this.NoMoney();
return; return;
} }
if (this.IsCountStop) { if (this.IsCountStop.value) {
if (this.CountStop.value <= 0) { if (this.CountStop.value <= 0) {
this.OnclickStop(); this.OnclickStop();
return; return;

View File

@ -12,6 +12,7 @@ export class SlotBase {
public get ID(): number { return this._bj_Casino_Bot.LobbyScript.Slot; } public get ID(): number { return this._bj_Casino_Bot.LobbyScript.Slot; }
public get FreeID(): number { return 1; } public get FreeID(): number { return 1; }
public get FreeCount(): number { return +this.GameRunData["free"][1]; }
public get HasChoiceFreeGame(): boolean { return false; } public get HasChoiceFreeGame(): boolean { return false; }
public get SlotReqRespIsCount(): boolean { return false; } public get SlotReqRespIsCount(): boolean { return false; }
public get HasRetriggerFreeSpin(): boolean { return false; } public get HasRetriggerFreeSpin(): boolean { return false; }
@ -88,10 +89,10 @@ export class SlotBase {
this._bj_Casino_Bot.UserData.Money = money; this._bj_Casino_Bot.UserData.Money = money;
this._bj_Casino_Bot.SetUI(); this._bj_Casino_Bot.SetUI();
let ratio: number = winMoney > 0 ? NumberEx.divide(winMoney, this._bj_Slot.NowBet) : 0; let ratio: number = winMoney > 0 ? NumberEx.divide(winMoney, this._bj_Slot.NowBet) : 0;
if (this._bj_Slot.IsRatioStop && ratio >= this._bj_Slot.RatioStop.value) { if (this._bj_Slot.IsRatioStop.value && ratio >= this._bj_Slot.RatioStop.value) {
this._bj_Slot.OnclickStop(); this._bj_Slot.OnclickStop();
} }
if (this._bj_Slot.IsCountStop && this._bj_Slot.CountStop.value === 0) { if (this._bj_Slot.IsCountStop.value && this._bj_Slot.CountStop.value === 0) {
this._bj_Slot.OnclickStop(); this._bj_Slot.OnclickStop();
} }
this._bj_Casino_Bot.AddLog(`Slot${this.ID} Spin Bet: ${this._bj_Slot.NowBet}, Money: ${money}${winMoneyLog}${freeLog}`); this._bj_Casino_Bot.AddLog(`Slot${this.ID} Spin Bet: ${this._bj_Slot.NowBet}, Money: ${money}${winMoneyLog}${freeLog}`);
@ -147,7 +148,7 @@ export class SlotBase {
if (this.HasChoiceFreeGame) { if (this.HasChoiceFreeGame) {
return await this._getChoiceFreeCount(); return await this._getChoiceFreeCount();
} else { } else {
return this.GameRunData["free"][1]; return this.FreeCount;
} }
} }

View File

@ -5,6 +5,7 @@ export class Slot1201 extends SlotBase {
//#region public //#region public
public get FreeCount(): number { return +this.GameRunData["free"]; } public get FreeCount(): number { return +this.GameRunData["free"]; }
public get HasRetriggerFreeSpin(): boolean { return true; }
//#endregion //#endregion
} }

View File

@ -8,6 +8,7 @@ export class Slot48 extends SlotBase {
public get FreeID(): number { return 3; } public get FreeID(): number { return 3; }
public get HasChoiceFreeGame(): boolean { return true; } public get HasChoiceFreeGame(): boolean { return true; }
public get SlotReqRespIsCount(): boolean { return true; } public get SlotReqRespIsCount(): boolean { return true; }
public get HasRetriggerFreeSpin(): boolean { return true; }
//#endregion //#endregion
} }

View File

@ -7,6 +7,7 @@ export class Slot62 extends SlotBase {
public get ID(): number { return 62; } public get ID(): number { return 62; }
public get FreeID(): number { return 3; } public get FreeID(): number { return 3; }
public get HasChoiceFreeGame(): boolean { return true; } public get HasChoiceFreeGame(): boolean { return true; }
public get HasRetriggerFreeSpin(): boolean { return true; }
//#endregion //#endregion

View File

@ -32,6 +32,7 @@ export class MainControl {
// http://patch-dev.online-bj.com/shared/jsons/slot_050.json // http://patch-dev.online-bj.com/shared/jsons/slot_050.json
let fileUrl: string = `${formname}.json`; let fileUrl: string = `${formname}.json`;
fileUrl = "http://patch-dev.online-bj.com/shared/jsons/" + fileUrl; fileUrl = "http://patch-dev.online-bj.com/shared/jsons/" + fileUrl;
// fileUrl = "http://jianmiau.tk/_BJ_Source/BJ-Internal-Dev/shared/jsons/" + fileUrl;
fileUrl = fileUrl + "?v=" + Date.now(); fileUrl = fileUrl + "?v=" + Date.now();
let isdownloading: boolean = true; let isdownloading: boolean = true;
let xhr: XMLHttpRequest = new XMLHttpRequest(); let xhr: XMLHttpRequest = new XMLHttpRequest();

View File

@ -27,7 +27,7 @@ export class NetConnector {
checkHttp = "https"; checkHttp = "https";
host = host.replace("https://", ""); host = host.replace("https://", "");
} else { } else {
checkHttp = window.location.href.substring(0, 5); checkHttp = "http";
host = host.replace("http://", ""); host = host.replace("http://", "");
} }
if (true) { if (true) {

View File

@ -1,8 +1,8 @@
import vue from '@vitejs/plugin-vue' import vue from "@vitejs/plugin-vue";
import { defineConfig } from 'vite' import { defineConfig } from "vite";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
base: "./", base: "./",
plugins: [vue()] plugins: [vue()],
}) });

View File

@ -1,4 +1,4 @@
1. 沒錢變顏色 1. 自動帶入帳號登入
2. 自動帶入帳號登入 2. 自動設定全部行為
3. 自動設定全部行為 3. 多個模板
4. 多個模板 4. 沒錢變顏色