diff --git a/assets/script/game/hero/TalComp.ts b/assets/script/game/hero/TalComp.ts index 08709189..dd777d4f 100644 --- a/assets/script/game/hero/TalComp.ts +++ b/assets/script/game/hero/TalComp.ts @@ -1,5 +1,7 @@ +import { basename } from "path/win32"; import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; -import { BType } from "../common/config/HeroAttrs"; +import { Attrs, BType } from "../common/config/HeroAttrs"; +import { BuffConf } from "../common/config/SkillSet"; import { TalAttrs, talConf, TalEffet, TalTarget, TriType} from "../common/config/TalSet"; import { HeroAttrsComp } from "./HeroAttrsComp"; import { HeroViewComp } from "./HeroViewComp"; @@ -229,11 +231,12 @@ export class TalComp extends ecs.Comp { case TalEffet.C_MSKILL: heroAttrs.addCountTal(TalEffet.C_MSKILL, talent.value + talent.value_add); break; - case TalEffet.BUFF: + case TalEffet.BUFF: //临时buff heroAttrs.addValueTal(talent.uuid, talent.attrs, talent.vType, talent.value + talent.value_add); break; - case TalEffet.ATTR: - heroAttrs.addValueTal(talent.uuid, talent.attrs, talent.vType, talent.value + talent.value_add); + case TalEffet.ATTR: //永久属性 + let b:BuffConf={buff:Attrs[TalAttrs[talent.attrs]],BType:talent.vType,value:talent.value,time:0, chance:100, } + heroAttrs.addBuff(b); break; } }