mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
基础的数值计算
This commit is contained in:
@@ -24,6 +24,7 @@ import { GOnHookPet, GOnHookPets } from "../../../../extensions/ngame/assets/nga
|
||||
import GOnHookManager from "../../manager/battle/mode/GOnHookManager";
|
||||
import GRoleOnHookCreepsExpand from "../base/role/expand/OnHook/GRoleOnHookCreepsExpand";
|
||||
import { ModeRenderEvent } from "../../ui/Consts/Game/ModeRender";
|
||||
import GPetAttribute from "../base/values/attribute/role/GPetAttribute";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
//挂机模式状态
|
||||
@@ -251,6 +252,10 @@ export default class GOnHookMode extends GBaseMode<{},{}>{
|
||||
//向宠物添加 OnHook 扩展
|
||||
let expand = role.node.addComponent(GRoleOnHookPlayerExpand);
|
||||
expand.petId = petId;
|
||||
|
||||
//添加宠物属性
|
||||
role.onEffectiveValue(new GPetAttribute(info));
|
||||
|
||||
}
|
||||
|
||||
//生成野怪
|
||||
@@ -262,6 +267,16 @@ export default class GOnHookMode extends GBaseMode<{},{}>{
|
||||
let expand = role.node.addComponent(GRoleOnHookCreepsExpand);
|
||||
expand.creeps = creeps;
|
||||
|
||||
//添加野怪属性
|
||||
role.onEffectiveValue(new GPetAttribute({
|
||||
petId:0,
|
||||
petPlayerId:0,
|
||||
petTbId:creeps.petTbId,
|
||||
petLevel:0,
|
||||
petStar:0,
|
||||
petStarExp:0,
|
||||
}));
|
||||
|
||||
}
|
||||
|
||||
//生成宠物
|
||||
|
Reference in New Issue
Block a user