[mod]
This commit is contained in:
parent
bdd124b229
commit
41ec8bd70e
@ -3,7 +3,7 @@
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"dev": "vite --host",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
|
@ -75,7 +75,7 @@ export class BJ_Casino_Bot_Slot {
|
||||
this.NoMoney();
|
||||
return;
|
||||
}
|
||||
if (this.IsCountStop) {
|
||||
if (this.IsCountStop.value) {
|
||||
if (this.CountStop.value <= 0) {
|
||||
this.OnclickStop();
|
||||
return;
|
||||
|
@ -12,6 +12,7 @@ export class SlotBase {
|
||||
|
||||
public get ID(): number { return this._bj_Casino_Bot.LobbyScript.Slot; }
|
||||
public get FreeID(): number { return 1; }
|
||||
public get FreeCount(): number { return +this.GameRunData["free"][1]; }
|
||||
public get HasChoiceFreeGame(): boolean { return false; }
|
||||
public get SlotReqRespIsCount(): 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.SetUI();
|
||||
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();
|
||||
}
|
||||
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_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) {
|
||||
return await this._getChoiceFreeCount();
|
||||
} else {
|
||||
return this.GameRunData["free"][1];
|
||||
return this.FreeCount;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,7 @@ export class Slot1201 extends SlotBase {
|
||||
//#region public
|
||||
|
||||
public get FreeCount(): number { return +this.GameRunData["free"]; }
|
||||
public get HasRetriggerFreeSpin(): boolean { return true; }
|
||||
|
||||
//#endregion
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ export class Slot48 extends SlotBase {
|
||||
public get FreeID(): number { return 3; }
|
||||
public get HasChoiceFreeGame(): boolean { return true; }
|
||||
public get SlotReqRespIsCount(): boolean { return true; }
|
||||
public get HasRetriggerFreeSpin(): boolean { return true; }
|
||||
|
||||
//#endregion
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ export class Slot62 extends SlotBase {
|
||||
public get ID(): number { return 62; }
|
||||
public get FreeID(): number { return 3; }
|
||||
public get HasChoiceFreeGame(): boolean { return true; }
|
||||
public get HasRetriggerFreeSpin(): boolean { return true; }
|
||||
|
||||
//#endregion
|
||||
|
||||
|
@ -32,6 +32,7 @@ export class MainControl {
|
||||
// http://patch-dev.online-bj.com/shared/jsons/slot_050.json
|
||||
let fileUrl: string = `${formname}.json`;
|
||||
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();
|
||||
let isdownloading: boolean = true;
|
||||
let xhr: XMLHttpRequest = new XMLHttpRequest();
|
||||
|
@ -27,7 +27,7 @@ export class NetConnector {
|
||||
checkHttp = "https";
|
||||
host = host.replace("https://", "");
|
||||
} else {
|
||||
checkHttp = window.location.href.substring(0, 5);
|
||||
checkHttp = "http";
|
||||
host = host.replace("http://", "");
|
||||
}
|
||||
if (true) {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: "./",
|
||||
plugins: [vue()]
|
||||
})
|
||||
plugins: [vue()],
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user