|
|
|
@ -15,27 +15,27 @@ import TaskManager from "../JuQingChat/TaskManager" |
|
|
|
|
//mishuType 0秘书1队友 ,lockLevel上个队友的级别需要多少级
|
|
|
|
|
//mishuType 0秘书1队友 ,lockLevel上个队友的级别需要多少级
|
|
|
|
|
let configData = [ |
|
|
|
|
{mishuId:0, addPercent:2.0, spineName:'右一',spineName2:'待机', mishuLevel:0, mishuType:0, name:'云欣',selfLevel:0, selfLevelStr:'',lockLevel:0, lockLevelStr:'茜滢10级时解锁',lockMoney:500 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:1, addPercent:1.5, spineName:'左一',spineName2:'待机', mishuLevel:0, mishuType:0, name:'茜滢',selfLevel:100, selfLevelStr:'主角100级时解锁',lockLevel:0, lockLevelStr:'云欣10级时解锁',lockMoney:1200 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:2, addPercent:2.5, spineName:'中间1',spineName2:'中间1', mishuLevel:0, mishuType:0, name:'媱安',selfLevel:150, selfLevelStr:'主角150级时解锁',lockLevel:0, lockLevelStr:'云欣10级时解锁',lockMoney:30000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:3, addPercent:3.0, spineName:'中间2',spineName2:'中间2', mishuLevel:0, mishuType:0, name:'诗涵',selfLevel:200, selfLevelStr:'主角200级时解锁',lockLevel:0, lockLevelStr:'媱安10级时解锁',lockMoney:300000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:4, addPercent:3.0, spineName:'中间4',spineName2:'中间4', mishuLevel:0, mishuType:0, name:'婉仪',selfLevel:300, selfLevelStr:'主角300级时解锁',lockLevel:0, lockLevelStr:'诗涵10级时解锁',lockMoney:2000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:5, addPercent:3.5, spineName:'中间3',spineName2:'中间3', mishuLevel:0, mishuType:0, name:'诺依',selfLevel:400, selfLevelStr:'主角400级时解锁',lockLevel:0, lockLevelStr:'婉仪10级时解锁',lockMoney:100000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:6, addPercent:4.0, spineName:'最后1',spineName2:'最后1', mishuLevel:0, mishuType:0, name:'晴萱',selfLevel:500, selfLevelStr:'主角500级时解锁',lockLevel:0, lockLevelStr:'诺依10级时解锁',lockMoney:1000000000 , isLock:true, isSign:false , isNeedTask:-1}, |
|
|
|
|
{mishuId:7, addPercent:4.5, spineName:'最后2',spineName2:'最后2', mishuLevel:0, mishuType:0, name:'蕾蕾',selfLevel:600, selfLevelStr:'主角600级时解锁',lockLevel:0, lockLevelStr:'晴萱10级时解锁',lockMoney:10000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:8, addPercent:5.0, spineName:'最后6',spineName2:'最后6', mishuLevel:0, mishuType:0, name:'水萌',selfLevel:700, selfLevelStr:'主角700级时解锁',lockLevel:0, lockLevelStr:'蕾蕾10级时解锁',lockMoney:1000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:9, addPercent:6.0, spineName:'最后3',spineName2:'最后3', mishuLevel:0, mishuType:0, name:'可微',selfLevel:800, selfLevelStr:'主角800级时解锁',lockLevel:0, lockLevelStr:'水萌10级时解锁',lockMoney:10000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:10, addPercent:8.0, spineName:'最后4',spineName2:'最后4', mishuLevel:0, mishuType:0, name:'以南',selfLevel:900, selfLevelStr:'主角900级时解锁',lockLevel:0, lockLevelStr:'可微10级时解锁',lockMoney:100000000000000, isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:11, addPercent:10.0, spineName:'秘书2',spineName2:'秘书2', mishuLevel:0, mishuType:0, name:'悦澄',selfLevel:1000, selfLevelStr:'主角1000级时解锁',lockLevel:0, lockLevelStr:'以南10级时解锁',lockMoney:30000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:12, addPercent:15.0, spineName:'最后5',spineName2:'最后5', mishuLevel:0, mishuType:0, name:'夏彤',selfLevel:1100, selfLevelStr:'主角1100级时解锁',lockLevel:0, lockLevelStr:'悦澄10级时解锁',lockMoney:100000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:13, addPercent:50.0, spineName:'秘书4',spineName2:'秘书4', mishuLevel:0, mishuType:0, name:'紫琳',selfLevel:1200, selfLevelStr:'主角1200级时解锁',lockLevel:0, lockLevelStr:'夏彤10级时解锁',lockMoney:5000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:14, addPercent:100.0, spineName:'秘书6',spineName2:'秘书6', mishuLevel:0, mishuType:0, name:'羽婷',selfLevel:1300, selfLevelStr:'主角1300级时解锁',lockLevel:0, lockLevelStr:'紫琳10级时解锁',lockMoney:10000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:15, addPercent:150.0, spineName:'秘书5',spineName2:'秘书5', mishuLevel:0, mishuType:0, name:'梵音',selfLevel:1400, selfLevelStr:'主角1400级时解锁',lockLevel:0, lockLevelStr:'羽婷10级时解锁',lockMoney:100000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:16, addPercent:200.0, spineName:'秘书3',spineName2:'秘书3', mishuLevel:0, mishuType:0, name:'诗锦',selfLevel:1500, selfLevelStr:'主角1500级时解锁',lockLevel:0, lockLevelStr:'梵音10级时解锁',lockMoney:10000000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:17, addPercent:300.0, spineName:'秘书1',spineName2:'秘书1', mishuLevel:0, mishuType:0, name:'绮罗',selfLevel:2000, selfLevelStr:'主角2000级时解锁',lockLevel:0, lockLevelStr:'诗锦10级时解锁',lockMoney:300000000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:0, addPercent:2.0, spineName:'右一',spineName2:'待机', mishuLevel:0, mishuType:0, name:'云欣',selfLevel:1, selfLevelStr:'',lockLevel:0, lockLevelStr:'茜滢10级时解锁',lockMoney:0 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:1, addPercent:1.5, spineName:'左一',spineName2:'待机', mishuLevel:0, mishuType:0, name:'茜滢',selfLevel:50, selfLevelStr:'主角50级时解锁',lockLevel:0, lockLevelStr:'云欣10级时解锁',lockMoney:25500 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:2, addPercent:2.5, spineName:'中间1',spineName2:'中间1', mishuLevel:0, mishuType:0, name:'媱安',selfLevel:100, selfLevelStr:'主角100级时解锁',lockLevel:0, lockLevelStr:'云欣10级时解锁',lockMoney:60000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:3, addPercent:3.0, spineName:'中间2',spineName2:'中间2', mishuLevel:0, mishuType:0, name:'诗涵',selfLevel:150, selfLevelStr:'主角150级时解锁',lockLevel:0, lockLevelStr:'媱安10级时解锁',lockMoney:180000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:4, addPercent:3.0, spineName:'中间4',spineName2:'中间4', mishuLevel:0, mishuType:0, name:'婉仪',selfLevel:200, selfLevelStr:'主角200级时解锁',lockLevel:0, lockLevelStr:'诗涵10级时解锁',lockMoney:480000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:5, addPercent:3.5, spineName:'中间3',spineName2:'中间3', mishuLevel:0, mishuType:0, name:'诺依',selfLevel:250, selfLevelStr:'主角250级时解锁',lockLevel:0, lockLevelStr:'婉仪10级时解锁',lockMoney:1350000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:6, addPercent:4.0, spineName:'最后1',spineName2:'最后1', mishuLevel:0, mishuType:0, name:'晴萱',selfLevel:300, selfLevelStr:'主角300级时解锁',lockLevel:0, lockLevelStr:'诺依10级时解锁',lockMoney:3600000 , isLock:true, isSign:false , isNeedTask:-1}, |
|
|
|
|
{mishuId:7, addPercent:4.5, spineName:'最后2',spineName2:'最后2', mishuLevel:0, mishuType:0, name:'蕾蕾',selfLevel:350, selfLevelStr:'主角350级时解锁',lockLevel:0, lockLevelStr:'晴萱10级时解锁',lockMoney:9600000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:8, addPercent:5.0, spineName:'最后6',spineName2:'最后6', mishuLevel:0, mishuType:0, name:'水萌',selfLevel:400, selfLevelStr:'主角400级时解锁',lockLevel:0, lockLevelStr:'蕾蕾10级时解锁',lockMoney:25800000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:9, addPercent:6.0, spineName:'最后3',spineName2:'最后3', mishuLevel:0, mishuType:0, name:'可微',selfLevel:450, selfLevelStr:'主角450级时解锁',lockLevel:0, lockLevelStr:'水萌10级时解锁',lockMoney:69000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:10, addPercent:8.0, spineName:'最后4',spineName2:'最后4', mishuLevel:0, mishuType:0, name:'以南',selfLevel:500, selfLevelStr:'主角500级时解锁',lockLevel:0, lockLevelStr:'可微10级时解锁',lockMoney:189000000, isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:11, addPercent:10.0, spineName:'秘书2',spineName2:'秘书2', mishuLevel:0, mishuType:0, name:'悦澄',selfLevel:550, selfLevelStr:'主角550级时解锁',lockLevel:0, lockLevelStr:'以南10级时解锁',lockMoney:510000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:12, addPercent:15.0, spineName:'最后5',spineName2:'最后5', mishuLevel:0, mishuType:0, name:'夏彤',selfLevel:600, selfLevelStr:'主角600级时解锁',lockLevel:0, lockLevelStr:'悦澄10级时解锁',lockMoney:1350000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:13, addPercent:50.0, spineName:'秘书4',spineName2:'秘书4', mishuLevel:0, mishuType:0, name:'紫琳',selfLevel:650, selfLevelStr:'主角650级时解锁',lockLevel:0, lockLevelStr:'夏彤10级时解锁',lockMoney:3600000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:14, addPercent:100.0, spineName:'秘书6',spineName2:'秘书6', mishuLevel:0, mishuType:0, name:'羽婷',selfLevel:700, selfLevelStr:'主角700级时解锁',lockLevel:0, lockLevelStr:'紫琳10级时解锁',lockMoney:9600000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:15, addPercent:150.0, spineName:'秘书5',spineName2:'秘书5', mishuLevel:0, mishuType:0, name:'梵音',selfLevel:750, selfLevelStr:'主角750级时解锁',lockLevel:0, lockLevelStr:'羽婷10级时解锁',lockMoney:26400000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:16, addPercent:200.0, spineName:'秘书3',spineName2:'秘书3', mishuLevel:0, mishuType:0, name:'诗锦',selfLevel:800, selfLevelStr:'主角800级时解锁',lockLevel:0, lockLevelStr:'梵音10级时解锁',lockMoney:69000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:17, addPercent:300.0, spineName:'秘书1',spineName2:'秘书1', mishuLevel:0, mishuType:0, name:'绮罗',selfLevel:850, selfLevelStr:'主角850级时解锁',lockLevel:0, lockLevelStr:'诗锦10级时解锁',lockMoney:192000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
|
|
|
|
|
{mishuId:18,addPercent:50.0, mishuLevel:0, spineName:'工人', spineName2:'animation', mishuType:1, name:'班的多',selfLevel:400, selfLevelStr:'主角400级时解锁',lockLevel:0, lockLevelStr:'主角400级时解锁',lockMoney:5000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:19,addPercent:800.0, mishuLevel:0, spineName:'环卫', spineName2:'animation', mishuType:1, name:'邵干净',selfLevel:600, selfLevelStr:'主角600级时解锁',lockLevel:20, lockLevelStr:'班的多20级时解锁',lockMoney:150000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:18,addPercent:50.0, mishuLevel:0, spineName:'工人', spineName2:'animation', mishuType:1, name:'班的多',selfLevel:1000, selfLevelStr:'主角1000级时解锁',lockLevel:0, lockLevelStr:'主角400级时解锁',lockMoney:5000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:19,addPercent:800.0, mishuLevel:0, spineName:'环卫', spineName2:'animation', mishuType:1, name:'邵干净',selfLevel:1200, selfLevelStr:'主角1200级时解锁',lockLevel:20, lockLevelStr:'班的多20级时解锁',lockMoney:150000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:20,addPercent:5000.0, mishuLevel:0, spineName:'外卖',spineName2:'animation', mishuType:1, name:'宋的快',selfLevel:700, selfLevelStr:'主角700级时解锁',lockLevel:20, lockLevelStr:'邵干净20级时解锁',lockMoney:15000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:21,addPercent:4500000.0, mishuLevel:0, spineName:'发传单',spineName2:'animation', mishuType:1, name:'花传单',selfLevel:1000, selfLevelStr:'主角1000级时解锁',lockLevel:20, lockLevelStr:'宋的快20级时解锁',lockMoney:25000000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
|
{mishuId:22,addPercent:3000000000.0, mishuLevel:0, spineName:'保安',spineName2:'animation', mishuType:1, name:'保平安',selfLevel:1300, selfLevelStr:'主角1300级时解锁',lockLevel:20, lockLevelStr:'花传单20级时解锁',lockMoney:30000000000000000000000000000 , isLock:true, isSign:false , isNeedTask:-1},
|
|
|
|
@ -63,10 +63,10 @@ let peixunShoiyi = [ |
|
|
|
|
|
|
|
|
|
export default class MiShuManager { |
|
|
|
|
public static mishuShouyiStart = [ |
|
|
|
|
50,400,1000,15000,50000, |
|
|
|
|
100000,1000000,6000000,10000000,30000000, |
|
|
|
|
1000000000,6000000000,8000000000,10000000000,50000000000, |
|
|
|
|
100000000000,150000000000000,80000000000000000,2700000,150000000, |
|
|
|
|
211,568,1529,4116,11080, |
|
|
|
|
29822,80269,216052,581523,1565221, |
|
|
|
|
4212930,11339473,30521189,82150469,221115219, |
|
|
|
|
595151078,1601901517,80000000000000000,2700000,150000000, |
|
|
|
|
3000000000,20000000000000,170000000000000000,7000000000000000000000000,400000000000000,0,0,0,0,0, |
|
|
|
|
] |
|
|
|
|
//秘书加成等级 incomeNum每秒收益
|
|
|
|
@ -285,7 +285,7 @@ export default class MiShuManager { |
|
|
|
|
let levelNum = curUserDate.mishuLevel |
|
|
|
|
let lockMoney = this.mishuShouyiStart[mishuId] |
|
|
|
|
|
|
|
|
|
let xishu = 1.1 |
|
|
|
|
let xishu = 1 |
|
|
|
|
shouyiNum = Math.pow(xishu, levelNum) |
|
|
|
|
shouyiNum = Math.floor(lockMoney*shouyiNum) |
|
|
|
|
|
|
|
|
@ -625,22 +625,22 @@ export default class MiShuManager { |
|
|
|
|
if(isHaveRed){ |
|
|
|
|
return isHaveRed |
|
|
|
|
} |
|
|
|
|
let maxLevel = 100 |
|
|
|
|
//可以升级的
|
|
|
|
|
for(let i =0; i<configData.length; i++){ |
|
|
|
|
let userDate = this.getMishuUserDateById(configData[i].mishuId) |
|
|
|
|
//let needLock = MiShuManager.getMishuIsLockById(configData[i].mishuId)
|
|
|
|
|
if(userDate.isLock==false && userDate.mishuLevel<maxLevel){ |
|
|
|
|
// let maxLevel = 100
|
|
|
|
|
// //可以升级的
|
|
|
|
|
// for(let i =0; i<configData.length; i++){
|
|
|
|
|
// let userDate = this.getMishuUserDateById(configData[i].mishuId)
|
|
|
|
|
// //let needLock = MiShuManager.getMishuIsLockById(configData[i].mishuId)
|
|
|
|
|
// if(userDate.isLock==false && userDate.mishuLevel<maxLevel){
|
|
|
|
|
|
|
|
|
|
let spend = this.getlevelUpMoneyById(configData[i].mishuId) |
|
|
|
|
if(User.getMoney()-spend>=0){ |
|
|
|
|
isHaveRed = true |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
// let spend = this.getlevelUpMoneyById(configData[i].mishuId)
|
|
|
|
|
// if(User.getMoney()-spend>=0){
|
|
|
|
|
// isHaveRed = true
|
|
|
|
|
// break
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// }
|
|
|
|
|
return isHaveRed |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|