mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-11-11 08:38:45 +00:00
开源...
This commit is contained in:
@@ -79,8 +79,8 @@ export default abstract class GRoleBase<T> extends GObject<T>{
|
||||
this._values = value;
|
||||
}
|
||||
|
||||
//添加避障
|
||||
ov:NOVBase;
|
||||
// //添加避障
|
||||
// ov:NOVBase;
|
||||
|
||||
get():this{
|
||||
if(this.isDie) return null;
|
||||
@@ -89,8 +89,8 @@ export default abstract class GRoleBase<T> extends GObject<T>{
|
||||
|
||||
onSyncLoad(){
|
||||
|
||||
//避障
|
||||
this.ov = new NOV2DSimple(this.node.getComponent(BoxCollider2D));
|
||||
// //避障
|
||||
// this.ov = new NOV2DSimple(this.node.getComponent(BoxCollider2D));
|
||||
|
||||
if(!this.spine) this.spine = this.node.getComponent(JNSkeleton);
|
||||
//如果没有生成则直接销毁
|
||||
|
||||
@@ -32,7 +32,7 @@ export default class GPetAttribute extends GAttributeBase{
|
||||
});
|
||||
|
||||
//计算升级成长属性
|
||||
let level = this.pet.petLevel; //宠物等级
|
||||
let level = 1 + this.pet.petStar; //宠物等级
|
||||
let grow = TD.TbGRoleUpGrow.get(this.pet.petId) || TD.TbGRoleUpGrow.get(0); //成长
|
||||
|
||||
TD.TbGAttribute.getDataList().forEach(attr => {
|
||||
|
||||
@@ -6,7 +6,7 @@ import GAttributeBase from "../GAttributeBase";
|
||||
export default class GPetEquipAttribute extends GAttributeBase{
|
||||
|
||||
//宠物信息
|
||||
equips:PetEquip[];
|
||||
equips:PetEquip[] = [];
|
||||
|
||||
constructor(equips:PetEquip[]){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user