dd
This commit is contained in:
@@ -10,6 +10,8 @@ import { RewardSet } from "../common/config/RewardSet";
|
||||
import { GameSet } from "../common/config/BoxSet";
|
||||
import { GameMap } from "./GameMap";
|
||||
import { MapModelComp } from "./model/MapModelComp";
|
||||
import { Talent } from "../Role/Talent";
|
||||
import { Talents } from "../common/config/TalentSet";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
/** 视图层对象 */
|
||||
@@ -42,7 +44,9 @@ export class CardControllerComp extends CCComp {
|
||||
oops.message.on("minssion_defeat", this.do_minssion_defeat, this)
|
||||
}
|
||||
start() {
|
||||
|
||||
}
|
||||
|
||||
show_info(uuid:number,type:number){
|
||||
// console.log("show_info",uuid)
|
||||
let node =this.node.getChildByName("item_box")
|
||||
@@ -188,7 +192,7 @@ export class CardControllerComp extends CCComp {
|
||||
coin_add(dt: number) {
|
||||
smc.vm_data.gold.time += dt;
|
||||
if (smc.vm_data.gold.time >= smc.vm_data.gold.cd) {
|
||||
let coin =(GameSet.COIN_ADD*smc.vm_data.mission.coin_reward_add*(1+smc.vm_data.talent[6].bonus*smc.vm_data.talent[6].lv)).toFixed(0)
|
||||
let coin =(GameSet.COIN_ADD*smc.vm_data.mission.coin_reward_add*(1+Talents[1006].bonus*smc.vm_data.talent[1006].lv)).toFixed(0)
|
||||
smc.vm_data.mission.coin += parseFloat(coin)
|
||||
smc.vm_data.gold.time = 0;
|
||||
}
|
||||
@@ -204,6 +208,13 @@ export class CardControllerComp extends CCComp {
|
||||
this.node.getChildByName("bar").getChildByName("hero_btn").setScale(1,1)
|
||||
this.node.getChildByName("bar").getChildByName("home_btn").setScale(1,1)
|
||||
}
|
||||
mission_start(){
|
||||
this.node.getChildByName("bar").active=false;
|
||||
this.node.getChildByName("mission_home").active=false
|
||||
this.node.getChildByName("mission").active=true
|
||||
smc.vm_data.mission.play = true;
|
||||
oops.message.dispatchEvent("mission_start")
|
||||
}
|
||||
to_home(){
|
||||
this.node.getChildByName("mission_home").active=false
|
||||
this.node.getChildByName("hero_home").active=false
|
||||
|
||||
Reference in New Issue
Block a user