refactor(game): 统一游戏地平线高度并优化技能目标选择
将GameSet中的GAME_LINE从0调整为120,并在英雄和怪物位置配置中使用该常量 简化SACastSystem中的目标选择逻辑,移除未使用的治疗和BUFF目标选择方法 使用BoxSet.GAME_LINE作为技能目标的默认Y坐标
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { v3 } from "cc"
|
||||
import { FacSet } from "./GameSet"
|
||||
import { BoxSet, FacSet } from "./GameSet"
|
||||
import { smc } from "../SingletonModuleComp"
|
||||
import { BuffConf } from "./SkillSet"
|
||||
|
||||
@@ -46,23 +46,23 @@ export const getMonList = ()=>{
|
||||
}
|
||||
|
||||
export const HeroPos={
|
||||
0:{pos:v3(-240,120,0)},
|
||||
1:{pos:v3(0,120,0)},
|
||||
2:{pos:v3(0,120,0)},
|
||||
0:{pos:v3(-240,BoxSet.GAME_LINE,0)},
|
||||
1:{pos:v3(0,BoxSet.GAME_LINE,0)},
|
||||
2:{pos:v3(0,BoxSet.GAME_LINE,0)},
|
||||
}
|
||||
export const MonSet = {
|
||||
0:{pos:v3(240,130,0)},
|
||||
1:{pos:v3(240,110,0)},
|
||||
2:{pos:v3(300,130,0)},
|
||||
3:{pos:v3(300,110,0)},
|
||||
4:{pos:v3(320,130,0)},
|
||||
5:{pos:v3(320,110,0)},
|
||||
6:{pos:v3(360,130,0)},
|
||||
7:{pos:v3(360,110,0)},
|
||||
8:{pos:v3(400,130,0)},
|
||||
9:{pos:v3(400,110,0)},
|
||||
10:{pos:v3(440,130,0)},
|
||||
11:{pos:v3(440,110,0)},
|
||||
0:{pos:v3(240,BoxSet.GAME_LINE+10,0)},
|
||||
1:{pos:v3(240,BoxSet.GAME_LINE-10,0)},
|
||||
2:{pos:v3(300,BoxSet.GAME_LINE+10,0)},
|
||||
3:{pos:v3(300,BoxSet.GAME_LINE-10,0)},
|
||||
4:{pos:v3(320,BoxSet.GAME_LINE+10,0)},
|
||||
5:{pos:v3(320,BoxSet.GAME_LINE-10,0)},
|
||||
6:{pos:v3(360,BoxSet.GAME_LINE+10,0)},
|
||||
7:{pos:v3(360,BoxSet.GAME_LINE-10,0)},
|
||||
8:{pos:v3(400,BoxSet.GAME_LINE+10,0)},
|
||||
9:{pos:v3(400,BoxSet.GAME_LINE-10,0)},
|
||||
10:{pos:v3(440,BoxSet.GAME_LINE+10,0)},
|
||||
11:{pos:v3(440,BoxSet.GAME_LINE-10,0)},
|
||||
}
|
||||
|
||||
export enum MonStart {
|
||||
|
||||
Reference in New Issue
Block a user