提交开宝箱

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-01-11 02:46:36 +08:00
parent d0d80bb9ad
commit 05777799a3
51 changed files with 7665 additions and 2502 deletions

View File

@@ -15,6 +15,7 @@ import NOV2DSimple from "../../../../../extensions/ngame/assets/ngame/util/colli
import NOVBase from "../../../../../extensions/ngame/assets/ngame/util/collide/OV/NOVBase";
import { BoxCollider2D } from "cc";
import { Vec3 } from "cc";
import GAttribute from "../values/attribute/GAttribute";
const { ccclass, property } = _decorator;
export enum GRoleAnimEvent{
@@ -204,7 +205,7 @@ export default abstract class GRoleBase<T> extends GObject<T>{
}
//生效数值
onEffectiveValue(...values:GAttributeBase[]){
onEffectiveValues(...values:GAttributeBase[]){
this.values.reset();
values.forEach(value => {
@@ -217,6 +218,17 @@ export default abstract class GRoleBase<T> extends GObject<T>{
}
//生效属性
onEffectiveValue(data:GAttribute){
this.values.reset(data);
this.values.update();
//赋值血量
this.blood = this.fullBlood = this.values.onBlood();
}
}