mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 15:31:54 +08:00
49d3a31367
- 添加攻击音效文件 - 修改七魂子弹生成逻辑,从7个改为6个并添加延迟 - 调整子弹生命周期和旋转动画 - 更新武器描述和属性 - 添加新的测试BOSS波浪数据
13 lines
348 B
GDScript
13 lines
348 B
GDScript
@tool
|
|
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
|
|
await TickTool.millseconds(20000 / 6.0)
|
|
func update(to, origin, _entity):
|
|
origin["atk"] += 1 * to * soulLevel
|
|
return origin
|