重做 局内经验的利用,加攻 加血,特殊技能,todo:先完成物品设定

This commit is contained in:
2024-11-25 00:02:07 +08:00
parent 5a268cc8f2
commit 2d4d564c1f
31 changed files with 5212 additions and 6212 deletions

View File

@@ -35,13 +35,13 @@ export class CardControllerComp extends CCComp {
// console.log("show_info",uuid)
let node =this.node.getChildByName("item_box")
if(type == 2){
smc.vm_data.item_box.info = smc.sitems[uuid].info
smc.vm_data.item_box.name = smc.sitems[uuid].name
smc.vm_data.item_box.skillcd = smc.sitems[uuid].cd
smc.vm_data.item_box.skillsd = smc.sitems[uuid].sd
smc.vm_data.item_box.atk = smc.sitems[uuid].atk
smc.vm_data.item_box.hp = smc.sitems[uuid].hp
smc.vm_data.item_box.shield = smc.sitems[uuid].shield
smc.vmdata.item_box.info = smc.sitems[uuid].info
smc.vmdata.item_box.name = smc.sitems[uuid].name
smc.vmdata.item_box.skillcd = smc.sitems[uuid].cd
smc.vmdata.item_box.skillsd = smc.sitems[uuid].sd
smc.vmdata.item_box.atk = smc.sitems[uuid].atk
smc.vmdata.item_box.hp = smc.sitems[uuid].hp
smc.vmdata.item_box.shield = smc.sitems[uuid].shield
node.active=true
if(smc.sitems[uuid].shield > 0){
node.getChildByName("data").getChildByName("shield").active=true
@@ -53,7 +53,7 @@ export class CardControllerComp extends CCComp {
}
protected update(dt: number): void {
if(smc.vm_data.game_over||smc.vm_data.game_pause){
if(smc.vmdata.game_over||smc.vmdata.game_pause){
return
}
@@ -74,7 +74,7 @@ export class CardControllerComp extends CCComp {
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;
smc.vmdata.mission.play = true;
// oops.message.dispatchEvent("mission_start")
}
to_home(){