改了 好多
This commit is contained in:
@@ -9,7 +9,7 @@ import { HeroModelComp } from "../hero/HeroModelComp";
|
||||
import { HeroViewComp } from "../hero/HeroViewComp";
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
import { HeroSkillList, SkillSet } from "../common/config/SkillSet";
|
||||
import { cardType, getRandomCardUUID, SuperCards } from "../common/config/CardSet";
|
||||
import { cardType, getRandomCardUUID, Quality, SuperCards } from "../common/config/CardSet";
|
||||
import { EquipInfo } from "../common/config/Equips";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
@@ -105,7 +105,17 @@ export class CardComp extends CCComp {
|
||||
|
||||
show_skill(uuid:number){
|
||||
let show=this.node.getChildByName("show")
|
||||
show.getChildByName("name").getComponent(Label).string=SkillSet[uuid].name
|
||||
show.getChildByName("name").getChildByName("name").getComponent(Label).string=SkillSet[uuid].name
|
||||
show.getChildByName("q1").active=SkillSet[uuid].quality==Quality.WHITE
|
||||
show.getChildByName("q2").active=SkillSet[uuid].quality==Quality.GREEN
|
||||
show.getChildByName("q3").active=SkillSet[uuid].quality==Quality.BLUE
|
||||
show.getChildByName("q4").active=SkillSet[uuid].quality==Quality.PURPLE
|
||||
show.getChildByName("q5").active=SkillSet[uuid].quality==Quality.ORANGE
|
||||
show.getChildByName("mask").getChildByName("q1").active=SkillSet[uuid].quality==Quality.WHITE
|
||||
show.getChildByName("mask").getChildByName("q2").active=SkillSet[uuid].quality==Quality.GREEN
|
||||
show.getChildByName("mask").getChildByName("q3").active=SkillSet[uuid].quality==Quality.BLUE
|
||||
show.getChildByName("mask").getChildByName("q4").active=SkillSet[uuid].quality==Quality.PURPLE
|
||||
show.getChildByName("mask").getChildByName("q5").active=SkillSet[uuid].quality==Quality.ORANGE
|
||||
this.do_card_bg_show()
|
||||
var icon_path = "game/skills/skill_icon"
|
||||
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||
@@ -117,15 +127,25 @@ export class CardComp extends CCComp {
|
||||
show_hero(uuid:number){
|
||||
let show=this.node.getChildByName("show")
|
||||
this.do_card_bg_show()
|
||||
show.getChildByName("ap").active=true
|
||||
show.getChildByName("hp").active=true
|
||||
show.getChildByName("name").getComponent(Label).string=HeroInfo[uuid].name
|
||||
show.getChildByName("ap").getChildByName("num").getComponent(Label).string=HeroInfo[uuid].ap.toString()
|
||||
show.getChildByName("hp").getChildByName("num").getComponent(Label).string=HeroInfo[uuid].hp.toString()
|
||||
// show.getChildByName("ap").active=true
|
||||
// show.getChildByName("hp").active=true
|
||||
show.getChildByName("name").getChildByName("name").getComponent(Label).string=HeroInfo[uuid].name
|
||||
// show.getChildByName("ap").getChildByName("num").getComponent(Label).string=HeroInfo[uuid].ap.toString()
|
||||
// show.getChildByName("hp").getChildByName("num").getComponent(Label).string=HeroInfo[uuid].hp.toString()
|
||||
// show.getChildByName("type").getChildByName("war").active=HeroInfo[uuid].type==0
|
||||
// show.getChildByName("type").getChildByName("bow").active=HeroInfo[uuid].type==1
|
||||
// show.getChildByName("type").getChildByName("mag").active=HeroInfo[uuid].type==2
|
||||
// show.getChildByName("lv").getChildByName("num").getComponent(Label).string=HeroInfo[uuid].lv.toString()
|
||||
show.getChildByName("q1").active=HeroInfo[uuid].quality==Quality.WHITE
|
||||
show.getChildByName("q2").active=HeroInfo[uuid].quality==Quality.GREEN
|
||||
show.getChildByName("q3").active=HeroInfo[uuid].quality==Quality.BLUE
|
||||
show.getChildByName("q4").active=HeroInfo[uuid].quality==Quality.PURPLE
|
||||
show.getChildByName("q5").active=HeroInfo[uuid].quality==Quality.ORANGE
|
||||
show.getChildByName("mask").getChildByName("q1").active=HeroInfo[uuid].quality==Quality.WHITE
|
||||
show.getChildByName("mask").getChildByName("q2").active=HeroInfo[uuid].quality==Quality.GREEN
|
||||
show.getChildByName("mask").getChildByName("q3").active=HeroInfo[uuid].quality==Quality.BLUE
|
||||
show.getChildByName("mask").getChildByName("q4").active=HeroInfo[uuid].quality==Quality.PURPLE
|
||||
show.getChildByName("mask").getChildByName("q5").active=HeroInfo[uuid].quality==Quality.ORANGE
|
||||
var icon_path = "game/heros/herois"
|
||||
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||
const sprite = show.getChildByName("mask").getChildByName("hero").getComponent(Sprite);
|
||||
@@ -137,7 +157,17 @@ export class CardComp extends CCComp {
|
||||
show_equip(uuid:number){
|
||||
let show=this.node.getChildByName("show")
|
||||
this.do_card_bg_show()
|
||||
show.getChildByName("name").getComponent(Label).string=EquipInfo[uuid].name
|
||||
show.getChildByName("q1").active=EquipInfo[uuid].quality==Quality.WHITE
|
||||
show.getChildByName("q2").active=EquipInfo[uuid].quality==Quality.GREEN
|
||||
show.getChildByName("q3").active=EquipInfo[uuid].quality==Quality.BLUE
|
||||
show.getChildByName("q4").active=EquipInfo[uuid].quality==Quality.PURPLE
|
||||
show.getChildByName("q5").active=EquipInfo[uuid].quality==Quality.ORANGE
|
||||
show.getChildByName("mask").getChildByName("q1").active=EquipInfo[uuid].quality==Quality.WHITE
|
||||
show.getChildByName("mask").getChildByName("q2").active=EquipInfo[uuid].quality==Quality.GREEN
|
||||
show.getChildByName("mask").getChildByName("q3").active=EquipInfo[uuid].quality==Quality.BLUE
|
||||
show.getChildByName("mask").getChildByName("q4").active=EquipInfo[uuid].quality==Quality.PURPLE
|
||||
show.getChildByName("mask").getChildByName("q5").active=EquipInfo[uuid].quality==Quality.ORANGE
|
||||
show.getChildByName("name").getChildByName("name").getComponent(Label).string=EquipInfo[uuid].name
|
||||
var icon_path = "game/heros/equips"
|
||||
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||
const sprite = show.getChildByName("mask").getChildByName("equip").getComponent(Sprite);
|
||||
@@ -148,7 +178,19 @@ export class CardComp extends CCComp {
|
||||
show_func(uuid:number){
|
||||
let show=this.node.getChildByName("show")
|
||||
this.do_card_bg_show()
|
||||
show.getChildByName("name").getComponent(Label).string=SuperCards[uuid].name
|
||||
show.getChildByName("q1").active=SuperCards[uuid].quality==Quality.WHITE
|
||||
show.getChildByName("q2").active=SuperCards[uuid].quality==Quality.GREEN
|
||||
show.getChildByName("q3").active=SuperCards[uuid].quality==Quality.BLUE
|
||||
show.getChildByName("q4").active=SuperCards[uuid].quality==Quality.PURPLE
|
||||
show.getChildByName("q5").active=SuperCards[uuid].quality==Quality.ORANGE
|
||||
show.getChildByName("mask").getChildByName("q1").active=SuperCards[uuid].quality==Quality.WHITE
|
||||
show.getChildByName("mask").getChildByName("q2").active=SuperCards[uuid].quality==Quality.GREEN
|
||||
show.getChildByName("mask").getChildByName("q3").active=SuperCards[uuid].quality==Quality.BLUE
|
||||
show.getChildByName("mask").getChildByName("q4").active=SuperCards[uuid].quality==Quality.PURPLE
|
||||
show.getChildByName("mask").getChildByName("q5").active=SuperCards[uuid].quality==Quality.ORANGE
|
||||
show.getChildByName("name").getChildByName("name").getComponent(Label).string=SuperCards[uuid].name
|
||||
|
||||
|
||||
var icon_path = "game/heros/cards"
|
||||
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
|
||||
const sprite = show.getChildByName("mask").getChildByName("func").getComponent(Sprite);
|
||||
@@ -162,32 +204,24 @@ export class CardComp extends CCComp {
|
||||
show.getChildByName("ap").active=false
|
||||
show.getChildByName("hp").active=false
|
||||
show.getChildByName("mask").getChildByName("skill").active=false
|
||||
show.getChildByName("mask").getChildByName("s_bg").active=false
|
||||
show.getChildByName("mask").getChildByName("equip").active=false
|
||||
show.getChildByName("mask").getChildByName("e_bg").active=false
|
||||
show.getChildByName("mask").getChildByName("hero").active=false
|
||||
show.getChildByName("mask").getChildByName("h_bg").active=false
|
||||
show.getChildByName("mask").getChildByName("func").active=false
|
||||
show.getChildByName("mask").getChildByName("f_bg").active=false
|
||||
switch(this.c_type){
|
||||
case cardType.HERO:
|
||||
show.getChildByName("mask").getChildByName("hero").active=true
|
||||
show.getChildByName("mask").getChildByName("h_bg").active=true
|
||||
show.getChildByName("type").getChildByName("name").getComponent(Label).string="英雄"
|
||||
break
|
||||
case cardType.SKILL:
|
||||
show.getChildByName("mask").getChildByName("skill").active=true
|
||||
show.getChildByName("mask").getChildByName("s_bg").active=true
|
||||
show.getChildByName("type").getChildByName("name").getComponent(Label).string="技能"
|
||||
break
|
||||
case cardType.EQUIP:
|
||||
show.getChildByName("mask").getChildByName("equip").active=true
|
||||
show.getChildByName("mask").getChildByName("e_bg").active=true
|
||||
show.getChildByName("type").getChildByName("name").getComponent(Label).string="装备"
|
||||
break
|
||||
case cardType.SPECIAL:
|
||||
show.getChildByName("mask").getChildByName("func").active=true
|
||||
show.getChildByName("mask").getChildByName("f_bg").active=true
|
||||
show.getChildByName("type").getChildByName("name").getComponent(Label).string="特效"
|
||||
break
|
||||
}
|
||||
@@ -202,7 +236,7 @@ export class CardComp extends CCComp {
|
||||
// return "替换"
|
||||
// }
|
||||
// }
|
||||
return "选择"
|
||||
return "购买"
|
||||
}
|
||||
use_card(){
|
||||
switch(this.c_type){
|
||||
|
||||
@@ -32,13 +32,14 @@ export class CardsCompComp extends CCComp {
|
||||
this.on(GameEvent.HeroSkillSelect, this.addToQueue, this);
|
||||
this.on(GameEvent.HeroSelect, this.addToQueue, this);
|
||||
this.on(GameEvent.CardRefresh, this.addToQueue, this);
|
||||
this.on(GameEvent.FuncSelect, this.addToQueue, this);
|
||||
this.on(GameEvent.MissionEnd, this.clear_cards, this);
|
||||
this.on(GameEvent.HeroSkillSelectEnd, this.close_cards, this);
|
||||
this.on(GameEvent.CardsClose, this.close_cards, this);
|
||||
|
||||
this.card1=this.node.getChildByName("card1")
|
||||
this.card2=this.node.getChildByName("card2")
|
||||
this.card3=this.node.getChildByName("card3")
|
||||
this.on(GameEvent.EquipSelect, this.addToQueue, this);
|
||||
this.card1=this.node.getChildByName("cards").getChildByName("card1")
|
||||
this.card2=this.node.getChildByName("cards").getChildByName("card2")
|
||||
this.card3=this.node.getChildByName("cards").getChildByName("card3")
|
||||
// this.card4=this.node.getChildByName("card4")
|
||||
this.card1c=this.card1.getComponent(CardComp)
|
||||
this.card2c=this.card2.getComponent(CardComp)
|
||||
@@ -116,11 +117,15 @@ export class CardsCompComp extends CCComp {
|
||||
console.log("[CardsComp]:显示技能选择卡牌")
|
||||
this.hero_skill_select()
|
||||
break
|
||||
case GameEvent.CardRefresh:
|
||||
console.log("[CardsComp]:显示随机刷新卡牌")
|
||||
case GameEvent.FuncSelect:
|
||||
console.log("[CardsComp]:显示功能卡牌")
|
||||
this.node.getChildByName("Button").active=true
|
||||
this.func_select()
|
||||
break
|
||||
case GameEvent.EquipSelect:
|
||||
console.log("[CardsComp]:显示装备选择卡牌")
|
||||
this.equip_select()
|
||||
break
|
||||
}
|
||||
this.show()
|
||||
}
|
||||
@@ -144,8 +149,8 @@ export class CardsCompComp extends CCComp {
|
||||
show(){
|
||||
// 设置初始状态
|
||||
smc.mission.pause=true
|
||||
this.node.getChildByName("Button").setPosition(v3(0, this.node.getChildByName("Button").getPosition().y, 0))
|
||||
this.node.getChildByName("top").setPosition(v3(0, this.node.getChildByName("top").getPosition().y, 0))
|
||||
// this.node.getChildByName("Button").setPosition(v3(0, this.node.getChildByName("Button").getPosition().y, 0))
|
||||
// this.node.getChildByName("top").setPosition(v3(0, this.node.getChildByName("top").getPosition().y, 0))
|
||||
this.node.setPosition(v3(0, 0, 0));
|
||||
this.node.setScale(v3(0, 0, 1));
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ export class FightConComp extends Component {
|
||||
private aoe_timer: number = 0; // 技能执行计时器
|
||||
private readonly AOE_INTERVAL: number = 0.4; // 执行间隔,单位秒
|
||||
|
||||
aoe_pos:Vec3=new Vec3(-280,300,0)
|
||||
aoe_pos:Vec3=new Vec3(-280,20,0)
|
||||
aoe_target_pos:Vec3=new Vec3(180,0,0)
|
||||
buff_pos:Vec3=new Vec3(-280,100,0)
|
||||
debuff_pos:Vec3=new Vec3(-280,100,0)
|
||||
@@ -185,9 +185,10 @@ export class FightConComp extends Component {
|
||||
}else{
|
||||
target_pos= new Vec3(targets[0].get(HeroViewComp).node.position.x,0,0)
|
||||
}
|
||||
|
||||
let start_pos=new Vec3(-280,50,0)
|
||||
// console.log("[Skill]:node=>",start_pos)
|
||||
skill.load(
|
||||
this.aoe_pos,
|
||||
start_pos,
|
||||
this.node,
|
||||
data.s_uuid,
|
||||
target_pos,
|
||||
|
||||
@@ -48,15 +48,42 @@ export class MissionComp extends CCComp {
|
||||
|
||||
private on_mon_wave_update(){
|
||||
smc.vmdata.mission_data.current_wave++
|
||||
console.log("[任务系统] 当前波次 :",smc.vmdata.mission_data.current_wave)
|
||||
switch(smc.vmdata.mission_data.current_wave){
|
||||
case FightSet.FRIEND_WAVE_UP:
|
||||
let wave=smc.vmdata.mission_data.current_wave
|
||||
if(wave==FightSet.FRIEND_WAVE_UP){
|
||||
console.log("[任务系统] FRIEND_WAVE_UP 英雄选择 :",wave,FightSet.FRIEND_WAVE_UP)
|
||||
this.to_hero_select()
|
||||
break
|
||||
case 2:
|
||||
break
|
||||
case 3:
|
||||
}
|
||||
if(wave==FightSet.BOSS_WAVE_UP_1){
|
||||
console.log("[任务系统] BOSS_WAVE_UP_1 装备选择 :",wave,FightSet.BOSS_WAVE_UP_1)
|
||||
}
|
||||
if(wave==FightSet.BOSS_WAVE_UP_2){
|
||||
console.log("[任务系统] BOSS_WAVE_UP_2 装备选择 :",wave,FightSet.BOSS_WAVE_UP_2)
|
||||
}
|
||||
if(wave==FightSet.BOSS_WAVE_UP_3){
|
||||
console.log("[任务系统] BOSS_WAVE_UP_3 装备选择 :",wave,FightSet.BOSS_WAVE_UP_3)
|
||||
}
|
||||
if(wave==FightSet.EQUIP_WAVE_UP_1){
|
||||
console.log("[任务系统] EQUIP_WAVE_UP_1 装备选择 :",wave,FightSet.EQUIP_WAVE_UP_1)
|
||||
}
|
||||
if(wave==FightSet.EQUIP_WAVE_UP_2){
|
||||
console.log("[任务系统] EQUIP_WAVE_UP_2 装备选择 :",wave,FightSet.EQUIP_WAVE_UP_2)
|
||||
}
|
||||
if(wave==FightSet.EQUIP_WAVE_UP_3){
|
||||
console.log("[任务系统] EQUIP_WAVE_UP_3 装备选择 :",wave,FightSet.EQUIP_WAVE_UP_3)
|
||||
}
|
||||
if(wave==FightSet.SKILL_WAVE_UP_1){
|
||||
console.log("[任务系统] SKILL_WAVE_UP_1 技能选择 :",wave,FightSet.SKILL_WAVE_UP_1)
|
||||
oops.message.dispatchEvent(GameEvent.HeroSkillSelect)
|
||||
}
|
||||
if(wave==FightSet.SKILL_WAVE_UP_2){
|
||||
console.log("[任务系统] SKILL_WAVE_UP_2 技能选择 :",wave,FightSet.SKILL_WAVE_UP_2)
|
||||
oops.message.dispatchEvent(GameEvent.HeroSkillSelect)
|
||||
}
|
||||
if(wave==FightSet.SKILL_WAVE_UP_3){
|
||||
console.log("[任务系统] SKILL_WAVE_UP_3 技能选择 :",wave,FightSet.SKILL_WAVE_UP_3)
|
||||
oops.message.dispatchEvent(GameEvent.HeroSkillSelect)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
async mission_start(){
|
||||
@@ -74,7 +101,7 @@ export class MissionComp extends CCComp {
|
||||
}
|
||||
to_ready(){
|
||||
console.log("英雄技能选择")
|
||||
oops.message.dispatchEvent(GameEvent.HeroSkillSelect)
|
||||
// oops.message.dispatchEvent(GameEvent.HeroSkillSelect)
|
||||
}
|
||||
|
||||
to_hero_select(){
|
||||
@@ -133,7 +160,26 @@ export class MissionComp extends CCComp {
|
||||
mission_data.gold-=(mission_data.refresh_gold+mission_data.buff_refresh_gold)
|
||||
|
||||
}
|
||||
|
||||
call_equip_card(){
|
||||
let mission_data=smc.vmdata.mission_data
|
||||
if(mission_data.gold < (mission_data.refresh_gold+mission_data.buff_refresh_gold)){
|
||||
oops.gui.toast("金币不足", false);
|
||||
return
|
||||
}
|
||||
oops.message.dispatchEvent(GameEvent.EquipSelect)
|
||||
mission_data.gold-=(mission_data.refresh_gold+mission_data.buff_refresh_gold)
|
||||
|
||||
}
|
||||
call_func_card(){
|
||||
let mission_data=smc.vmdata.mission_data
|
||||
if(mission_data.gold < (mission_data.refresh_gold+mission_data.buff_refresh_gold)){
|
||||
oops.gui.toast("金币不足", false);
|
||||
return
|
||||
}
|
||||
oops.message.dispatchEvent(GameEvent.FuncSelect)
|
||||
mission_data.gold-=(mission_data.refresh_gold+mission_data.buff_refresh_gold)
|
||||
|
||||
}
|
||||
private cleanComponents() {
|
||||
ecs.query(ecs.allOf(HeroViewComp)).forEach(entity => {entity.remove(HeroViewComp);entity.destroy()});
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import { HeroViewComp } from "../hero/HeroViewComp";
|
||||
import { oops } from "db://oops-framework/core/Oops";
|
||||
import { HeroPos } from "../common/config/heroSet";
|
||||
import { FightSet } from "../common/config/Mission";
|
||||
import { FriendModelComp } from "../hero/FriendModel";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
/** 视图层对象 */
|
||||
@@ -21,7 +22,7 @@ export class MissionHeroCompComp extends CCComp {
|
||||
Friend_is_dead:boolean=false
|
||||
current_hero_uuid:number=0
|
||||
onLoad(){
|
||||
this.on(GameEvent.UseHeroCard,this.call_friend,this)
|
||||
this.on(GameEvent.UseHeroCard,this.call_hero,this)
|
||||
this.on(GameEvent.ChangeATK_EQUIP_SPECIAL_ATTR,this.change_equip_qpecial_attr,this)
|
||||
this.on(GameEvent.FightReady,this.fight_ready,this)
|
||||
|
||||
@@ -113,21 +114,20 @@ export class MissionHeroCompComp extends CCComp {
|
||||
// }
|
||||
|
||||
|
||||
// call_hero(event: string, args: any){
|
||||
// // this.node.getChildByName("location").active=false
|
||||
// // console.log("call_hero",args)
|
||||
// // let fight_pos=args
|
||||
// // this.timer.reset()
|
||||
// // let hero_list =HeroList
|
||||
// // let x=RandomManager.instance.getRandomInt(0,hero_list.length,1)
|
||||
// // // let uuid=args.uuid
|
||||
// // // console.log("call_hero",uuid)
|
||||
// this.addHero(args.uuid)
|
||||
// }
|
||||
call_hero(event: string, args: any){
|
||||
// this.node.getChildByName("location").active=false
|
||||
// console.log("call_hero",args)
|
||||
// let fight_pos=args
|
||||
// this.timer.reset()
|
||||
// let hero_list =HeroList
|
||||
// let x=RandomManager.instance.getRandomInt(0,hero_list.length,1)
|
||||
// // let uuid=args.uuid
|
||||
// // console.log("call_hero",uuid)
|
||||
this.addHero(args.uuid)
|
||||
}
|
||||
|
||||
/** 添加英雄 */
|
||||
private addHero(uuid:number=1001,freind_pos:number=0) {
|
||||
console.log("call_hero addHero",uuid)
|
||||
private addHero(uuid:number=1001,freind_pos:number=1) {
|
||||
let info:any=this.get_info_and_remove(freind_pos,uuid)
|
||||
// let info:any={ap:0,hp:0,lv:0}
|
||||
let hero = ecs.getEntity<Hero>(Hero);
|
||||
@@ -138,27 +138,22 @@ export class MissionHeroCompComp extends CCComp {
|
||||
}
|
||||
|
||||
get_info_and_remove(fight_pos:number,uuid:number){
|
||||
let info:any={ap:0,hp:0,lv:0}
|
||||
let heros=ecs.query(ecs.allOf(HeroModelComp))
|
||||
for(let hero of heros){
|
||||
let info:any={ap:0,hp:0,lv:1,crt:0,crt_d:0,dod:0,dod_no:false,crt_no:false}
|
||||
let heros=ecs.query(ecs.allOf(FriendModelComp))
|
||||
if(heros.length>0){
|
||||
let hero = heros[0]
|
||||
let hv = hero.get(HeroViewComp)
|
||||
if(hv.fight_pos==fight_pos&&!hv.is_master){
|
||||
// let AP_UP_RATE = hv.hero_uuid === uuid ? FightSet.AP_UPDATE_RATE : FightSet.AP_CHANGE_RATE;
|
||||
// let heroUpData = HeroUpInfo[hv.hero_uuid] || {}
|
||||
// let o_ap_rate = heroUpData.ap_up_rate || 0 //被替换 升级的英雄额外被替换攻击增长比率
|
||||
// let o_ap = heroUpData.ap_up || 0 //被替换 升级的英雄额外被替换攻击增长值
|
||||
// let s_ap_rate = (HeroUpInfo[uuid] || {}).ap_up_rate || 0 //替换 升级的英雄额外替换攻击增长比率
|
||||
// let s_ap = (HeroUpInfo[uuid] || {}).ap_up || 0 //替换 升级的英雄额外替换攻击增长值
|
||||
// let o_hp_up = heroUpData.hp_up || 0 //被替换 升级的英雄额外被替换血量增长值
|
||||
// let s_hp_up = (HeroUpInfo[uuid] || {}).hp_up || 0 //替换 升级的英雄额外替换血量增长值
|
||||
// info.ap=Math.floor(hv.ap*(AP_UP_RATE+o_ap_rate+s_ap_rate)/100+o_ap+s_ap)
|
||||
// info.hp=Math.floor(o_hp_up+s_hp_up)
|
||||
info.ap=hv.ap
|
||||
info.hp=hv.hp_max
|
||||
info.lv=hv.lv
|
||||
hero.destroy()
|
||||
return info
|
||||
}
|
||||
info.ap=hv.ap
|
||||
info.hp=hv.hp_max
|
||||
info.lv=hv.lv
|
||||
info.crt=hv.crt
|
||||
info.crt_d=hv.crt_d
|
||||
info.dod=hv.dod
|
||||
info.dod_no=hv.dod_no
|
||||
info.crt_no=hv.crt_no
|
||||
hero.destroy()
|
||||
return info
|
||||
|
||||
}
|
||||
return info
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user