export default class HorseData { resId: number; name: string; level: number = 0; race: number = 0; roleId: number; score: number = 2000; offsetY: number = 30; // 是否為擴展部分 isExtend(part: string): boolean { if (part == "b1" || part == "b2" || part == "b3" || part == "f1") { return true; } return false; } //坐騎影子地址 getRoleyzURL(dir:number,action:string):string{ if (this.resId==9211){ return ""; } if(this.resId==9211||this.resId==9221||this.resId==9222||this.resId==9241||this.resId==9511||this.resId==9521||this.resId==9541||this.resId==9341){ action="stand"; } return "/ccbtex/shadow/"+this.resId+"_"+action+"_"+dir+"_sw"; } //坐騎影子大小 getzuoqiyzscale(dir:number,action:string):number{ if(this.resId==9541){ if(dir==3){ return 1.7; }else if(dir==5||dir==7||dir==8){ return 1; } return 1.9; }else if(this.resId==9222){ if(dir==5||dir==7){ return 2.85; } return 2.2; }else if(this.resId==9111){ if(dir==5||dir==7||dir==8){ return 2.8; } return 2; }else if(this.resId==9231){ return 2.2; }else if(this.resId==9422){ if(dir==5||dir==7){ if(action=='stand'){ return 1.8 } } return 2.2; }else if(this.resId==9121){ if(dir == 3){ if (action=='run'){ return 2.4; } } return 2.2; }else if(this.resId==9341){ return 2.8; }else if(this.resId==9331){ if(dir==1){ if(action=='stand'){ return 2.8; } }else if(dir==8){ if(action=='run'){ return 2.1 } }else if(dir==5){ if(action=='run'){ return 1.95 }else{ return 2.8; } } return 2.6; }else if(this.resId==9441||this.resId==9321){ if(dir==5||dir==7||dir==8){ return 2; } return 2.6; } return 2; } getClipURL(dir: number, action: string, part: string, resId: number): string { // if(this.resId==9222&&this.roleId==2003||this.roleId==2013||this.roleId==2033){ // resId = 9221 // if (action == "run") { // action = "stand"; // } // if (part == "b2") return ""; // if (part == "b") part = "rd2"; // if (part == "b3") return ""; // if (part == "f") part = "rd1"; // if (part == "f1") return ""; // } // if(this.resId==9411&&this.roleId==4008||this.roleId==4018||this.roleId==4038){ // resId = 9412 // if (part == "b2") return ""; // if (part == "b") part = "rd2"; // if (part == "b3") return ""; // if (part == "f") part = "rd1"; // if (part == "f1") return ""; // } // 白馬 if (this.resId == 9111) { if (this.isExtend(part)) { return ""; } } // 大象 else if (this.resId == 9121) { if (this.isExtend(part)) { return ""; } if (dir == 3) { if (part == "f") { return ""; } } } // 貓熊 else if (this.resId == 9131) { if (this.isExtend(part)) { return ""; } } // 黃金猊 else if (this.resId == 9141) { if (this.isExtend(part)) { return ""; } } // 葫蘆 else if (this.resId == 9211) { if (action == "run") { action = "stand"; } if (dir == 1) { if (part == "f" || part == "f1") { return ""; } } else if (dir == 3) { if (part == "b2" || part == "b3") { return ""; } } } // 蓮花 else if (this.resId == 9222) { if (this.isExtend(part)) { return ""; } if (action == "run") { action = "stand"; } } // 仙車 else if (this.resId == 9231) { if (this.isExtend(part)) { return ""; } } // 風凰 else if (this.resId == 9241) { if (this.isExtend(part)) { return ""; } if (action == "run") { action = "stand"; } } // 黑熊 else if (this.resId == 9311) { if (this.isExtend(part)) { return ""; } } // 巨魔獅 else if (this.resId == 9321) { if (this.isExtend(part)) { return ""; } } // 奔雷 else if (this.resId == 9331) { if (this.isExtend(part)) { return ""; } } // 大風鳥 else if (this.resId == 9341) { if (this.isExtend(part)) { return ""; } if (action == "run") { action = "stand"; } } // 嬰鯉 else if (this.resId == 9411) { if (this.isExtend(part)) { return ""; } } // 鬼貓 else if (this.resId == 9421) { // if (this.isExtend(part)) { // return ""; // } } // 幽靈馬 else if (this.resId == 9431) { // if (this.isExtend(part)) { // return ""; // } } // 夢魘 else if (this.resId == 9441) { // if (this.isExtend(part)) { // return ""; // } } // 避水驄 else if (this.resId == 9511) { if (action == "run") action = "stand"; if (part == "b") return ""; if (part == "b2") part = "rd2"; if (part == "b3") return ""; if (part == "f") part = "rd1"; if (part == "f1") return ""; } // 何羅魚 else if (this.resId == 9521) { if (action == "run") action = "stand"; if (part == "b") return ""; if (part == "b2") part = "rd2"; if (part == "b3") part = "rd3"; if (part == "f") part = "rd1"; if (part == "f1") return ""; } // 白玉魨 else if (this.resId == 9531) { if (part == "b") return ""; if (part == "b2") part = "rd2"; if (part == "b3") return ""; if (part == "f") part = "rd1"; if (part == "f1") return ""; } // 文鰩 else if (this.resId == 9541) { if (action == "run") action = "stand"; if (part == "b") return ""; if (part == "b2") part = "rd2"; if (part == "b3") part = "rd3"; if (part == "f") part = "rd1"; if (part == "f1") return ""; } return "/horse/" + resId + "/" + action + "_" + dir + "_" + part; } getRoleURL(dir: number, action: string): string { // 仙族無run if (this.roleId == 2003 || this.roleId == 2004) { action = "stand"; } // 仙族一轉無run if (this.roleId == 2013 || this.roleId == 2014) { action = "stand"; } // 仙族三轉無run if (this.roleId == 2033 || this.roleId == 2034) { action = "stand"; } return "/horse/" + this.roleId + "/" + action + "_" + dir; } //坐騎染色素材 getRolersURL(dir: number, action: string): string { // 仙族無run if (this.roleId == 2003 ||this.roleId == 2004 ||this.roleId == 2013 ||this.roleId == 2014 ||this.roleId == 2033 ||this.roleId == 2034) { action = "stand"; } return "/horsers/" + this.roleId + "/" + action + "_" + dir + "_sh"; } getRoleyzOffset(dir: number, action: string): cc.Vec3 { // 巨魔獅 if (this.resId == 9321) { if (action == "run") { return cc.v3(0, 45, 0); } } return cc.v3(0, 0, 0); } getRoleOffset(dir: number, action: string): cc.Vec3 { // 白馬 if (this.resId == 9111) { if (dir == 1) { if (action == "stand") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(0, 130, 0); } else if (this.roleId == 1031) { return cc.v3(0, 70, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(10, 130, 0); } else if (this.roleId == 1032) { return cc.v3(10, 60, 0); } } else if (action == "run") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(0, 130, 0); } else if (this.roleId == 1031) { return cc.v3(0, 70, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(10, 130, 0); } else if (this.roleId == 1032) { return cc.v3(10, 60, 0); } } } else if (dir == 3) { if (action == "stand") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(0, 130, 0); } else if (this.roleId == 1031) { return cc.v3(0, 70, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(-10, 130, 0); } else if (this.roleId == 1032) { return cc.v3(-10, 60, 0); } } else if (action == "run") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(0, 130, 0); } else if (this.roleId == 1031) { return cc.v3(0, 70, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(-10, 130, 0); } else if (this.roleId == 1032) { return cc.v3(-10, 60, 0); } } } } // 大象 if (this.resId == 9121) { if (dir == 1) { if (action == "stand") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(-20, 185, 0); } else if (this.roleId == 1031) { return cc.v3(-20, 130, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(-20, 185, 0); } else if (this.roleId == 1032) { return cc.v3(-20, 115, 0); } } else if (action == "run") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(-20, 185, 0); } else if (this.roleId == 1031) { return cc.v3(-20, 130, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(-20, 185, 0); } else if (this.roleId == 1032) { return cc.v3(-20, 115, 0); } } } else if (dir == 3) { if (action == "stand") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(20, 165, 0); } else if (this.roleId == 1031) { return cc.v3(20, 110, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(20, 155, 0); } else if (this.roleId == 1032) { return cc.v3(20, 85, 0); } } else if (action == "run") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(20, 165, 0); } else if (this.roleId == 1031) { return cc.v3(20, 110, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(20, 155, 0); } else if (this.roleId == 1032) { return cc.v3(20, 85, 0); } } } } // 貓熊 else if (this.resId == 9131) { if (dir == 1) { if (action == "stand") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(-10, 120, 0); } else if (this.roleId == 1031) { return cc.v3(-10, 50, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(-10, 120, 0); } else if (this.roleId == 1032) { return cc.v3(-10, 50, 0); } } else if (action == "run") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(-10, 110, 0); } else if (this.roleId == 1031) { return cc.v3(-10, 50, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(-10, 110, 0); } else if (this.roleId == 1032) { return cc.v3(-10, 40, 0); } } } else if (dir == 3) { if (action == "stand") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(10, 110, 0); } else if (this.roleId == 1031) { return cc.v3(10, 50, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(10, 110, 0); } else if (this.roleId == 1032) { return cc.v3(10, 40, 0); } } else if (action == "run") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(10, 100, 0); } else if (this.roleId == 1031) { return cc.v3(10, 40, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(10, 100, 0); } else if (this.roleId == 1032) { return cc.v3(0, 30, 0); } } } } // 黃金猊 else if (this.resId == 9141) { if (dir == 1) { if (action == "stand") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(-20, 130, 0); } else if (this.roleId == 1031) { return cc.v3(-20, 70, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(-10, 130, 0); } else if (this.roleId == 1032) { return cc.v3(-10, 60, 0); } } else if (action == "run") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(-20, 130, 0); } else if (this.roleId == 1031) { return cc.v3(-20, 70, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(-20, 130, 0); } else if (this.roleId == 1032) { return cc.v3(-20, 60, 0); } } } else if (dir == 3) { if (action == "stand") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(20, 110, 0); } else if (this.roleId == 1031) { return cc.v3(20, 50, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(20, 110, 0); } else if (this.roleId == 1032) { return cc.v3(20, 40, 0); } } else if (action == "run") { if (this.roleId == 1001 || this.roleId == 1011) { return cc.v3(20, 110, 0); } else if (this.roleId == 1031) { return cc.v3(20, 50, 0); } else if (this.roleId == 1002 || this.roleId == 1012) { return cc.v3(20, 110, 0); } else if (this.roleId == 1032) { return cc.v3(20, 40, 0); } } } } // 葫蘆 else if (this.resId == 9211) { if (dir == 1) { if (this.roleId == 2003 || this.roleId == 2013) { return cc.v3(60, 70, 0); } else if (this.roleId == 2033) { return cc.v3(60, 20, 0); } else if (this.roleId == 2004 || this.roleId == 2014) { return cc.v3(60, 70, 0); } else if (this.roleId == 2034) { return cc.v3(60, 90, 0); } } else { if (this.roleId == 2003 || this.roleId == 2013) { return cc.v3(-70, 130, 0); } else if (this.roleId == 2033) { return cc.v3(-70, 80, 0); } else if (this.roleId == 2004 || this.roleId == 2014) { return cc.v3(-70, 130, 0); } else if (this.roleId == 2034) { return cc.v3(-70, 150, 0); } } } // 蓮花 else if (this.resId == 9222) { if (dir == 1) { if (this.roleId == 2003 || this.roleId == 2013) { return cc.v3(-5, 40, 0); } else if (this.roleId == 2033) { return cc.v3(-5, -10, 0); } else if (this.roleId == 2004 || this.roleId == 2014) { return cc.v3(-5, 40, 0); } else if (this.roleId == 2034) { return cc.v3(-5, 60, 0); } } else { if (this.roleId == 2003 || this.roleId == 2013) { return cc.v3(5, 40, 0); } else if (this.roleId == 2033) { return cc.v3(5, -10, 0); } else if (this.roleId == 2004 || this.roleId == 2014) { return cc.v3(5, 40, 0); } else if (this.roleId == 2034) { return cc.v3(5, 60, 0); } } } // 仙車 else if (this.resId == 9231) { if (dir == 1) { if (this.roleId == 2003 || this.roleId == 2013) { return cc.v3(-30, 70, 0); } else if (this.roleId == 2033) { return cc.v3(-30, 20, 0); } else if (this.roleId == 2004 || this.roleId == 2014) { return cc.v3(-30, 70, 0); } else if (this.roleId == 2034) { return cc.v3(-30, 90, 0); } } else { if (this.roleId == 2003 || this.roleId == 2013) { return cc.v3(40, 60, 0); } else if (this.roleId == 2033) { return cc.v3(40, 10, 0); } else if (this.roleId == 2004 || this.roleId == 2014 || this.roleId == 2014) { return cc.v3(40, 60, 0); } else if (this.roleId == 2034) { return cc.v3(40, 80, 0); } } } // 鳳凰 else if (this.resId == 9241) { if (dir == 1) { if (this.roleId == 2003 || this.roleId == 2013) { return cc.v3(0, 70, 0); } else if (this.roleId == 2033) { return cc.v3(0, 20, 0); } else if (this.roleId == 2004 || this.roleId == 2014) { return cc.v3(0, 70, 0); } else if (this.roleId == 2034) { return cc.v3(0, 90, 0); } } else { if (this.roleId == 2003 || this.roleId == 2013) { return cc.v3(-10, 70, 0); } else if (this.roleId == 2033) { return cc.v3(-10, 20, 0); } else if (this.roleId == 2004 || this.roleId == 2014) { return cc.v3(-10, 70, 0); } else if (this.roleId == 2034) { return cc.v3(-10, 90, 0); } } } // 黑熊 else if (this.resId == 9311) { if (dir == 1) { if (this.roleId == 3005) { return cc.v3(-30, 175, 0); } else if (this.roleId == 3015) { return cc.v3(-10, 135, 0); } else if (this.roleId == 3035) { return cc.v3(-10, 65, 0); } else if (this.roleId == 3006 || this.roleId == 3016) { return cc.v3(0, 125, 0); } else if (this.roleId == 3036) { return cc.v3(0, 65, 0); } } else { if (this.roleId == 3005) { return cc.v3(0, 160, 0); } else if (this.roleId == 3015) { return cc.v3(10, 120, 0); } else if (this.roleId == 3035) { return cc.v3(10, 50, 0); } else if (this.roleId == 3006 || this.roleId == 3016) { return cc.v3(0, 110, 0); } else if (this.roleId == 3036) { return cc.v3(0, 50, 0); } } } // 巨魔獅 else if (this.resId == 9321) { if (dir == 1) { if (this.roleId == 3005) { return cc.v3(-20, 160, 0); } else if (this.roleId == 3015) { return cc.v3(0, 120, 0); } else if (this.roleId == 3035) { return cc.v3(0, 50, 0); } else if (this.roleId == 3006 || this.roleId == 3016) { return cc.v3(0, 110, 0); } else if (this.roleId == 3036) { return cc.v3(0, 50, 0); } } else { if (this.roleId == 3005) { return cc.v3(-25, 145, 0); } else if (this.roleId == 3015) { return cc.v3(-5, 105, 0); } else if (this.roleId == 3035) { return cc.v3(-5, 35, 0); } else if (this.roleId == 3006 || this.roleId == 3016) { return cc.v3(-25, 100, 0); } else if (this.roleId == 3036) { return cc.v3(-25, 50, 0); } } } // 奔雷 else if (this.resId == 9331) { if (dir == 1) { if (this.roleId == 3005) { return cc.v3(-35, 160, 0); } else if (this.roleId == 3015) { return cc.v3(-15, 120, 0); } else if (this.roleId == 3035) { return cc.v3(-15, 50, 0); } else if (this.roleId == 3006 || this.roleId == 3016) { return cc.v3(0, 110, 0); } else if (this.roleId == 3036) { return cc.v3(0, 50, 0); } } else { if (this.roleId == 3005) { return cc.v3(-25, 145, 0); } else if (this.roleId == 3015) { return cc.v3(-5, 85, 0); } else if (this.roleId == 3035) { return cc.v3(-5, 15, 0); } else if (this.roleId == 3006 || this.roleId == 3016) { return cc.v3(-25, 75, 0); } else if (this.roleId == 3036) { return cc.v3(-25, 15, 0); } } } // 大風鳥 else if (this.resId == 9341) { if (dir == 1) { if (this.roleId == 3005) { return cc.v3(-20, 140, 0); } else if (this.roleId == 3015) { return cc.v3(0, 100, 0); } else if (this.roleId == 3035) { return cc.v3(0, 30, 0); } else if (this.roleId == 3006 || this.roleId == 3016) { return cc.v3(0, 90, 0); } else if (this.roleId == 3036) { return cc.v3(0, 30, 0); } } else { if (this.roleId == 3005) { return cc.v3(-25, 145, 0); } else if (this.roleId == 3015) { return cc.v3(-5, 105, 0); } else if (this.roleId == 3035) { return cc.v3(-5, 35, 0); } else if (this.roleId == 3006 || this.roleId == 3016) { return cc.v3(-25, 95, 0); } else if (this.roleId == 3036) { return cc.v3(-25, 30, 0); } } } // 嬰鯉 else if (this.resId == 9411) { if (dir == 1) { if (this.roleId == 4007 || this.roleId == 4017) { return cc.v3(10, 80, 0); } else if (this.roleId == 4037) { return cc.v3(10, 20, 0); } else if (this.roleId == 4008 || this.roleId == 4018) { return cc.v3(10, 80, 0); } else if (this.roleId == 4038) { return cc.v3(10, 20, 0); } } else { if (this.roleId == 4007 || this.roleId == 4017) { return cc.v3(-10, 100, 0); } else if (this.roleId == 4037) { return cc.v3(-10, 40, 0); } else if (this.roleId == 4008 || this.roleId == 4018) { return cc.v3(-10, 100, 0); } else if (this.roleId == 4038) { return cc.v3(-10, 40, 0); } } } // 鬼貓 else if (this.resId == 9421) { if (dir == 1) { if (this.roleId == 4007 || this.roleId == 4017) { return cc.v3(0, 90, 0); } else if (this.roleId == 4037) { return cc.v3(0, 30, 0); } else if (this.roleId == 4008 || this.roleId == 4018) { return cc.v3(0, 90, 0); } else if (this.roleId == 4038) { return cc.v3(0, 30, 0); } } else { if (this.roleId == 4007 || this.roleId == 4017) { return cc.v3(0, 100, 0); } else if (this.roleId == 4037) { return cc.v3(0, 40, 0); } else if (this.roleId == 4008 || this.roleId == 4018) { return cc.v3(0, 100, 0); } else if (this.roleId == 4038) { return cc.v3(0, 40, 0); } } } // 幽靈馬 else if (this.resId == 9431) { if (dir == 1) { if (this.roleId == 4007 || this.roleId == 4017) { return cc.v3(-10, 150, 0); } else if (this.roleId == 4037) { return cc.v3(-10, 90, 0); } else if (this.roleId == 4008 || this.roleId == 4018) { return cc.v3(-10, 150, 0); } else if (this.roleId == 4038) { return cc.v3(-10, 90, 0); } } else { if (this.roleId == 4007 || this.roleId == 4017) { return cc.v3(10, 135, 0); } else if (this.roleId == 4037) { return cc.v3(10, 75, 0); } else if (this.roleId == 4008 || this.roleId == 4018) { return cc.v3(10, 135, 0); } else if (this.roleId == 4038) { return cc.v3(10, 75, 0); } } } // 夢魘 else if (this.resId == 9441) { if (dir == 1) { if (this.roleId == 4007 || this.roleId == 4017) { if (action == "stand") { return cc.v3(-20, 90, 0); } else { return cc.v3(-20, 80, 0); } } else if (this.roleId == 4037) { if (action == "stand") { return cc.v3(-20, 30, 0); } else { return cc.v3(-20, 20, 0); } } else if (this.roleId == 4008 || this.roleId == 4018) { if (action == "stand") { return cc.v3(-20, 90, 0); } else { return cc.v3(-20, 80, 0); } } else if (this.roleId == 4038) { if (action == "stand") { return cc.v3(-20, 30, 0); } else { return cc.v3(-20, 20, 0); } } } else { if (this.roleId == 4007 || this.roleId == 4017) { if (action == "stand") { return cc.v3(0, 70, 0); } else { return cc.v3(0, 80, 0); } } else if (this.roleId == 4037) { if (action == "stand") { return cc.v3(0, 10, 0); } else { return cc.v3(0, 20, 0); } } else if (this.roleId == 4008 || this.roleId == 4018) { if (action == "stand") { return cc.v3(0, 70, 0); } else { return cc.v3(0, 80, 0); } } else if (this.roleId == 4038) { if (action == "stand") { return cc.v3(0, 10, 0); } else { return cc.v3(0, 20, 0); } } } } // 避水驄 else if (this.resId == 9511) { if (dir == 1) { if (this.roleId == 1101) { return cc.v3(-32, 175, 0); } else if (this.roleId == 1102 || this.roleId == 1112) { return cc.v3(-35, 175, 0); } else if (this.roleId == 1111 || this.roleId == 1131 || this.roleId == 1132) { return cc.v3(-25, 175, 0); } } else { if (this.roleId == 1101 || this.roleId == 1111 || this.roleId == 1131) { return cc.v3(15, 165, 0); } else if (this.roleId == 1102 || this.roleId == 1112 || this.roleId == 1132) { return cc.v3(10, 165, 0); } } } // 何羅魚 else if (this.resId == 9521) { if (dir == 1) { if (this.roleId == 1101 || this.roleId == 1111 || this.roleId == 1131) { return cc.v3(10, 88, 0); } else if (this.roleId == 1102 || this.roleId == 1112 || this.roleId == 1132) { return cc.v3(15, 92, 0); } } else { if (this.roleId == 1101 || this.roleId == 1111 || this.roleId == 1131) { return cc.v3(0, 100, 0); } else if (this.roleId == 1102 || this.roleId == 1112 || this.roleId == 1132) { return cc.v3(-10, 105, 0); } } } // 白玉魨 else if (this.resId == 9531) { if (dir == 1) { if (this.roleId == 1101 || this.roleId == 1111 || this.roleId == 1131) { return cc.v3(-10, 125, 0); } else if (this.roleId == 1102 || this.roleId == 1112 || this.roleId == 1132) { return cc.v3(-20, 120, 0); } } else { if (this.roleId == 1101 || this.roleId == 1111 || this.roleId == 1131) { return cc.v3(0, 120, 0); } else if (this.roleId == 1102 || this.roleId == 1112 || this.roleId == 1132) { return cc.v3(-10, 125, 0); } } } // 文鰩 else if (this.resId == 9541) { if (dir == 1) { if (this.roleId == 1101 || this.roleId == 1111 || this.roleId == 1131) { return cc.v3(5, 100, 0); } else if (this.roleId == 1102 || this.roleId == 1112 || this.roleId == 1132) { return cc.v3(10, 100, 0); } } else { if (this.roleId == 1101 || this.roleId == 1111 || this.roleId == 1131) { return cc.v3(-20, 110, 0); } else if (this.roleId == 1102 || this.roleId == 1112 || this.roleId == 1132) { return cc.v3(-15, 110, 0); } } } return cc.v3(0, 135, 0); } getOffset(dir: number, action: string, part: string): cc.Vec3 { if (this.resId == 9121) { if (part == "f") { return cc.v3(0, -20, 0); } } else if (this.resId == 9141) { if (dir == 1) { if (action == "run") { return cc.v3(10, 0, 0); } } else if (dir == 3) { if (action == "run") { return cc.v3(-15, 5, 0); } } } else if (this.resId == 9321) { if (action == "run") { if (dir == 1) { return cc.v3(-10, 40, 0); } else { if (part == "b") { return cc.v3(-40, 50, 0); } else { return cc.v3(-50, 50, 0); } } } } else if (this.resId == 9331) { return cc.v3(0, 30, 0); } else if (this.resId == 9421) { if (action == "run") { if (dir == 1) { return cc.v3(20, -15, 0); } else { return cc.v3(-20, 15, 0); } } } else if (this.resId == 9521) { if (dir == 3) { if (part == "b3") return cc.v3(12.5, -8, 0); if (part == "f") return cc.v3(11, -1, 0); } } else if (this.resId == 9541) { if (dir == 1) { if (part == "f") return cc.v3(-11, 3, 0); } } return cc.v3(0, 0, 0); } }