1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-06 03:37:13 +08:00

feat(武器): 为乾坤剑添加弹反机制和伤害比例

增加子弹弹反概率和伤害比例属性
修改武器描述以反映新机制
更新子弹碰撞逻辑实现弹反或格挡
This commit is contained in:
2026-03-25 22:15:28 +08:00
parent b3c7efd1f4
commit 88a0a18d7e
4 changed files with 25 additions and 15 deletions
+2
View File
@@ -5,6 +5,7 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 5 * to * soulLevel
origin["count"] += 1 * (soulLevel - 1)
origin["max"] += 2 * (soulLevel - 1)
origin["rate"] += 0.15 * (soulLevel - 1)
return origin
func attack(entity: EntityBase):
for bullet in BulletBase.generate(
@@ -17,4 +18,5 @@ func attack(entity: EntityBase):
bullet.atk = readStore("atk")
bullet.maxParryTimes = readStore("count")
bullet.maxBallCount = readStore("max")
bullet.reflectRate = readStore("rate")
return true