mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 23:11:54 +08:00
aa3f34ca74
增加格挡武器的攻击力从20提升至35 添加冲刺速度随气力增加的机制 为格挡和攻击添加新的视觉特效和音效 调整格挡子弹的碰撞检测形状 优化特效控制器逻辑确保正确释放资源
21 lines
614 B
GDScript
21 lines
614 B
GDScript
@tool
|
|
extends Weapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["atk"] += 5 * to * soulLevel
|
|
origin["count"] += 1 * (soulLevel - 1)
|
|
origin["max"] += 2 * (soulLevel - 1)
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
for bullet in BulletBase.generate(
|
|
ComponentManager.getBullet("Parrier"),
|
|
entity,
|
|
entity.texture.global_position,
|
|
entity.texture.global_position.angle_to_point(get_global_mouse_position()),
|
|
):
|
|
if bullet is ParrierBullet:
|
|
bullet.atk = readStore("atk")
|
|
bullet.maxParryTimes = readStore("count")
|
|
bullet.maxBallCount = readStore("max")
|
|
return true
|