import Common5 from "../../Platform/th/Common5"; import TaskManager, { MainTaskIdEnum } from "../JuQingChat/TaskManager"; import BagManager from "../Manager/BagManager"; import InterfaceManager from "../Manager/InterfaceManager"; export class DiaoyuYuer { id: number; name: string; unlock: boolean; price: number; spTimes: number; freeTimes: number; spinSkin: string; } export class DiaoyuProbability{ id: number; name: string; goodsId: number; price: number; yugouProbability: number; qiuyingProbability: number; yuerProbability: number; zhuganProbability: number; zhulanProbability: number; luyaProbability: number; xuyuanchiProbability: number; } // let diaoyuConfigs = [ // { buyNum:5, goodId:1301,descStr:'鱼骨', goodName:'鱼骨', priceNum:5}, // { buyNum:5, goodId:1302,descStr:'肉骨头',goodName:'肉骨头', priceNum:5}, // { buyNum:5, goodId:1303,descStr:'泥鳅',goodName:'泥鳅', priceNum:8}, // { buyNum:5, goodId:1304,descStr:'金鱼',goodName:'金鱼', priceNum:10}, // { buyNum:5, goodId:1305,descStr:'鲫鱼',goodName:'鲫鱼', priceNum:20}, // { buyNum:3, goodId:1306,descStr:'旧唱片',goodName:'旧唱片', priceNum:25}, // { buyNum:3, goodId:1307,descStr:'小龙虾',goodName:'小龙虾', priceNum:50}, // { buyNum:2, goodId:1308,descStr:'大鱼雷',goodName:'大鱼雷', priceNum:100}, // { buyNum:2, goodId:1309,descStr:'爬宠蜥蜴',goodName:'爬宠蜥蜴', priceNum:120}, // { buyNum:2, goodId:1310,descStr:'水蜘蛛', goodName:'水蜘蛛', priceNum:180}, // { buyNum:2, goodId:1311,descStr:'帝王蟹', goodName:'帝王蟹', priceNum:300}, // { buyNum:2, goodId:1312,descStr:'大西瓜', goodName:'大西瓜', priceNum:666}, // { buyNum:2, goodId:1313,descStr:'大龙虾', goodName:'大龙虾', priceNum:880}, // { buyNum:3, goodId:1314,descStr:'珍珠', goodName:'珍珠', priceNum:1500}, // { buyNum:3, goodId:1315,descStr:'甲壳虫', goodName:'甲壳虫', priceNum:3000}, // { buyNum:3, goodId:1316,descStr:'98k', goodName:'98k', priceNum:4200}, // { buyNum:1, goodId:1317,descStr:'沉船', goodName:'沉船', priceNum:5000}, // { buyNum:1, goodId:1318,descStr:'息肌丸', goodName:'息肌丸', priceNum:1000}, // { buyNum:1, goodId:1319,descStr:'仓鼠', goodName:'仓鼠', priceNum:1100}, // { buyNum:1, goodId:1320,descStr:'救生衣', goodName:'救生衣', priceNum:1200}, // { buyNum:1, goodId:1321,descStr:'保险箱', goodName:'保险箱', priceNum:1600}, // { buyNum:1, goodId:1322,descStr:'宝藏', goodName:'宝藏', priceNum:2000}, // { buyNum:1, goodId:1323,descStr:'大笨鹅', goodName:'大笨鹅', priceNum:2200}, // { buyNum:1, goodId:1324,descStr:'玉佩', goodName:'玉佩', priceNum:2900}, // { buyNum:1, goodId:1325,descStr:'美酒', goodName:'美酒', priceNum:3200}, // { buyNum:1, goodId:1326,descStr:'大宝剑', goodName:'大宝剑', priceNum:3400}, // { buyNum:1, goodId:1327,descStr:'樱花蛇', goodName:'樱花蛇', priceNum:3800}, // { buyNum:1, goodId:1328,descStr:'玉玺', goodName:'玉玺', priceNum:5000}, // { buyNum:1, goodId:1329,descStr:'金条', goodName:'金条', priceNum:10000}, // ] let yugouProbability = [10,10,9,8,8,8,8,6,6,6,4,4,4,3,2,2,1,1,0,0,0,0,0,0,0,0,0,0,0]//鱼钩 let qiuyingProbability= [5,5,5,5,5,5,8,8,8,8,8,8,6,2,1,1,1,3,3,3,2,0,0,0,0,0,0,0,0] //蚯蚓 let yuerProbability = [8,8,8,8,7,7,7,7,5,5,5,5,3,3,3,3,2,2,2,2,0,0,0,0,0,0]//鱼饵 let luyaProbability = [0,0,0,0,0,0,0,0,0,4,4,4,5,7,7,7,8,8,8,8,6,6,5,5,4,4]//五连 let zhuganProbability = [1,1,1,4,4,5,5,6,7,7,7,7,5,5,5,5,5,5,5,5,5,0,0,0,0,0,0,0,0]//猪肝 let zhulanProbability = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,15,15,15,10,10,10,10]//竹篮子 export default class DiaoYuConfigManage { public static diaoyuCommonIndex = 0; public static diaoyuAdIndex = 0; public static commonIndexFix = 3; public static adIndexFix = 1; public static DiaoYuConfigs = null; static ConfigJsons = [ {id:0, tableName:'DiaoyuYuer', tableFile:'DiaoyuYuer', data:Array}, ] public static getCurGoodList(){ // console.log('diaoyuConfig==',this.DiaoYuConfigs) //将任务/剧情道具替换掉最后的商品 let daoYeList = InterfaceManager.getDaoyeList() let replaceGoodsTab = [] for(let i=0;i倒货商人不够的道具->都有就不给,没有就给道具 let goodArrayNew = InterfaceManager.changeList('Diaoyu', result ,true,isAD) return goodArrayNew } return result } }