This commit is contained in:
2025-10-16 23:40:12 +08:00
parent d486d87676
commit 559ddfb653
8 changed files with 267 additions and 562 deletions

View File

@@ -1,6 +1,6 @@
import { _decorator, Component, Node, ProgressBar, v3, Vec3 } from 'cc';
import { HeroViewComp } from './HeroViewComp';
import { BuffAttr,SKILL_CONST, SkillSet, SType, TGroup, } from '../common/config/SkillSet';
import { Attrs, SkillSet, SType, TGroup, } from '../common/config/SkillSet';
import { ecs } from 'db://oops-framework/libs/ecs/ECS';
import { GameEvent } from '../common/config/GameEvent';
import { FacSet } from '../common/config/BoxSet';
@@ -102,7 +102,7 @@ export class SkillConComp extends CCComp {
check_wfuny(){
let random = Math.random()*100
if(random < this.HeroView.Attrs[BuffAttr.WFUNY]){
if(random < this.HeroView.Attrs[Attrs.WFUNY]){
return true
}
return false
@@ -160,11 +160,7 @@ export class SkillConComp extends CCComp {
Object.values(this._timers).forEach(clearTimeout);
}
get_count(count:number,view:HeroViewComp){
let re=count+view.wfuny
if(re<1) re=1
return re
}
reset() {
this.clear_timer();
}