refactor(skill): 移除溅射伤害设定,溅射以后有特定技能触发

清理不再使用的溅射伤害功能,包括移除SDataCom中的splash字段、Skill和SACastSystem中的相关参数,
以及删除TalSet中的溅射天赋配置
This commit is contained in:
2025-11-25 15:24:38 +08:00
parent 03a8a41980
commit 3edc69deff
4 changed files with 10 additions and 17 deletions

View File

@@ -13,7 +13,6 @@ export class SDataCom extends ecs.Comp {
fac: number = 0; // 0:hero 1:monster
s_uuid:number=0
ext_dmg:number=0 //额外伤害
splash:number=0 //溅射伤害
dmg_ratio:number=1 //伤害比例
hit_count:number=0 //击中数量
reset() {
@@ -24,7 +23,6 @@ export class SDataCom extends ecs.Comp {
this.caster=null
this.hit_count=0
this.ext_dmg=0
this.splash=0
this.dmg_ratio=1
}
}

View File

@@ -29,7 +29,7 @@ export class Skill extends ecs.Entity {
this.addComponents<SMoveDataComp>(SMoveDataComp);
}
load(startPos: Vec3, parent: Node, s_uuid: number, targetPos: Vec3,
caster:HeroViewComp,ext_dmg:number=0,splash:number=0) {
caster:HeroViewComp,ext_dmg:number=0) {
const config = SkillSet[s_uuid];
if (!config) {
@@ -94,7 +94,6 @@ export class Skill extends ecs.Entity {
sDataCom.s_uuid=s_uuid
sDataCom.fac=cAttrsComp.fac
sDataCom.ext_dmg=ext_dmg
sDataCom.splash=splash
}
/** 模块资源释放 */