You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.7 KiB
54 lines
1.7 KiB
1 week ago
|
import Common5 from "../../Platform/th/Common5";
|
||
|
// import ChengHaoManager from "./ChengHaoManager";
|
||
|
// import InterfaceManager from "./InterfaceManager";
|
||
|
|
||
|
let Proportion = 0.01
|
||
|
export default class GuWanManager {
|
||
|
|
||
|
public static isVideo = false
|
||
|
|
||
|
public static getGuwanList() {
|
||
|
// let guwanConfigs = Common5.guwanConfigs;
|
||
|
// let configs = []
|
||
|
// let valueDate = ChengHaoManager.getChenghaoMangheConfig()
|
||
|
// for(let value of guwanConfigs){
|
||
|
// let earnMoney = InterfaceManager.getAllIndustryMoneyInterface()
|
||
|
// let moneyNum = Math.floor((valueDate.BonusbaseNum+earnMoney*Common5.earnMoneySecond)*Proportion*value.ProportionIndex)
|
||
|
|
||
|
// value.buyPrice = Math.floor(moneyNum/3)
|
||
|
// let salePrices = value.salePrices
|
||
|
|
||
|
// let randJia = Common5.getRandomNum(40, 90+1)
|
||
|
// let jiahuoPrice = value.buyPrice*(randJia/100)
|
||
|
// value.jiahuoPrice = jiahuoPrice
|
||
|
// for(let i = 0;i<salePrices.length;i++){
|
||
|
// if(i == 0){
|
||
|
// let rand = Common5.getRandomNum(-20, 11)
|
||
|
// let saleM = value.buyPrice*(1+rand/100)
|
||
|
// salePrices[i] = saleM
|
||
|
// }else if(i == 1){
|
||
|
// let rand = Common5.getRandomNum(80, 101)
|
||
|
// let saleM = value.buyPrice*(1+rand/100)
|
||
|
// salePrices[i] = saleM
|
||
|
// }else if(i == 2){
|
||
|
// salePrices[i] = moneyNum
|
||
|
// }
|
||
|
|
||
|
// }
|
||
|
|
||
|
// }
|
||
|
|
||
|
return Common5.guwanConfigs
|
||
|
}
|
||
|
|
||
|
public static setIsVideo(isVideo) {
|
||
|
this.isVideo = isVideo
|
||
|
}
|
||
|
|
||
|
public static getIsVideo() {
|
||
|
return this.isVideo
|
||
|
}
|
||
|
|
||
|
// update (dt) {}
|
||
|
}
|