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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user