1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 23:41:54 +08:00

refactor(武器系统): 调整水晶武器伤害计算和子弹行为

重构蓝水晶和紫水晶武器的伤害计算方式,将蓝水晶的基础伤害从3降至2
移除紫水晶子弹的分裂和折射功能,将其逻辑移至BulletBase基类
更新相关场景文件中的显示文本和配置参数
调整角色初始武器配置,移除无用音效资源
This commit is contained in:
2025-12-13 10:55:02 +08:00
parent 698b5a5618
commit 33b2b16b70
7 changed files with 47 additions and 43 deletions
-18
View File
@@ -6,21 +6,3 @@ func destroy(_beacuseMap: bool):
var eff = EffectController.create(ComponentManager.getEffect("PurpleCrystalExplosion"), global_position)
eff.rotation = rotation
eff.shot()
func split(index, total, _last):
BulletBase.generate(
ComponentManager.getBullet("PurpleCrystal"),
launcher,
position,
rotation + deg_to_rad(360 / total * index),
true,
isChildRefract
)
func refract(entity, _index, _total, _last):
BulletBase.generate(
ComponentManager.getBullet("PurpleCrystal"),
launcher,
position,
position.angle_to_point(entity.position) if is_instance_valid(entity) else randf_range(0, deg_to_rad(360)),
isChildSplit,
true
)
+2 -1
View File
@@ -2,7 +2,7 @@
extends Weapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 1 * to * soulLevel
origin["atk"] += 2 * to * soulLevel
origin["count"] = 1 + 1 * soulLevel
return origin
func attack(entity: EntityBase):
@@ -15,3 +15,4 @@ func attack(entity: EntityBase):
if j is Diamond2Bullet:
j.baseDamage = readStore("atk")
j.parent = i
return true