mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-08 20:57:13 +08:00
feat(武器): 为火山武器添加幻影攻击功能
在火山武器的第4段攻击时发射多支火山幻影,造成额外伤害。修改了动画、伤害计算和武器描述,包括: - 添加count和dmg5属性控制幻影数量和伤害 - 调整幻影动画效果和速度 - 更新武器描述模板和显示文本
This commit is contained in:
@@ -7,6 +7,8 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["dmg2"] += 0.03 * to * soulLevel
|
||||
origin["dmg3"] += 0.03 * to * soulLevel
|
||||
origin["dmg4"] += 0.03 * to * soulLevel
|
||||
origin["dmg5"] += 0.04 * to * soulLevel
|
||||
origin["count"] = 1 * soulLevel + 1
|
||||
origin["atk"] += 1 * to * soulLevel
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
@@ -20,3 +22,5 @@ func attack(entity: EntityBase):
|
||||
bullet.baseDamage = readStore("atk")
|
||||
bullet.rotates = readStore("rotate")
|
||||
bullet.damageMultipliers = [readStore("dmg1"), readStore("dmg2"), readStore("dmg3"), readStore("dmg4")]
|
||||
bullet.count = readStore("count")
|
||||
bullet.dmg5 = readStore("dmg5")
|
||||
|
||||
Reference in New Issue
Block a user