dd 56卡牌栏 为role 专有物品,不在有针对小兵的 卡牌技能, 小兵的强化靠role,没有驻场 技能,role 修改为多技能
This commit is contained in:
@@ -149,9 +149,9 @@ export class MapMonsterComp extends CCComp {
|
||||
let m2:any = RandomManager.instance.getRandomByObjectList(this.mission_list[this.monster_level],1)
|
||||
// console.log("刷怪",m)
|
||||
var scene = smc.map.MapView.scene;
|
||||
let pos:Vec3 = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE)
|
||||
let pos1:Vec3 = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE+60)
|
||||
let pos2:Vec3 = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE-60)
|
||||
let pos:Vec3 = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE+RandomManager.instance.getRandomInt(-40,40, 1))
|
||||
let pos1:Vec3 = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE+RandomManager.instance.getRandomInt(40,130, 1))
|
||||
let pos2:Vec3 = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE-RandomManager.instance.getRandomInt(40,130, 1))
|
||||
|
||||
let monster_layer = scene.entityLayer!.node!
|
||||
let monster_layer1 = scene.entityLayer1!.node!;
|
||||
@@ -168,17 +168,17 @@ export class MapMonsterComp extends CCComp {
|
||||
}
|
||||
set_layer(start:number=0){
|
||||
var scene = smc.map.MapView.scene;
|
||||
let pos:Vec3 = v3(start,BoxSet.GAME_LINE)
|
||||
let pos:Vec3 = v3(start,BoxSet.GAME_LINE+RandomManager.instance.getRandomInt(-40,40, 1));
|
||||
let x = RandomManager.instance.getRandomInt(0,2, 2);
|
||||
let monster_layer = scene.entityLayer!.node!
|
||||
switch (x) {
|
||||
case 1:
|
||||
monster_layer = scene.entityLayer1!.node!;
|
||||
pos.y=pos.y+80;
|
||||
pos.y=pos.y+RandomManager.instance.getRandomInt(40,130, 1);
|
||||
break;
|
||||
case 2:
|
||||
monster_layer= scene.entityLayer2!.node!;
|
||||
pos.y=pos.y-80;
|
||||
pos.y=pos.y-RandomManager.instance.getRandomInt(40,130, 1);
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user