1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00

feat(SevenSoul): 增强七魂武器功能并修复子弹伤害逻辑

为七魂武器添加攻击力属性并调整伤害和治疗机制
修复子弹工具中空引用检查缺失的问题
移除子弹基类中冗余的空检查逻辑
更新武器描述以反映新功能
调整子弹粒子效果和伤害计算方式
This commit is contained in:
2025-11-30 15:46:18 +08:00
parent 2006087495
commit 7ab849129f
7 changed files with 25 additions and 23 deletions
+8 -2
View File
@@ -4,9 +4,15 @@ extends Weapon
func attack(entity: EntityBase):
playSound("attack")
for i in 6:
for j in BulletBase.generate(ComponentManager.getBullet("SevenSoul"), entity, entity.texture.global_position, 0):
j.index = i
for bullet in BulletBase.generate(ComponentManager.getBullet("SevenSoul"), entity, entity.texture.global_position, 0):
if bullet is SevenSoulBullet:
bullet.index = i
bullet.baseDamage = readStore("atk")
bullet.energyCollect = readStore("dmg")
bullet.healAmount = readStore("heal")
await TickTool.millseconds(15000 / 6.0)
func update(to, origin, _entity):
origin["atk"] += 1 * to * soulLevel
origin["dmg"] += 0.02 * to * soulLevel
origin["heal"] += 0.1 * to * soulLevel
return origin