mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
23e19bb0b5
新增火山阴影子弹类型,优化火山武器的攻击效果和动画 调整火山武器的伤害、冷却时间和旋转属性 移除多余的生命值属性,简化武器逻辑 优化狐狸爪子弹的追踪速度和碰撞体积 删除公鸡角色的多余武器配置
18 lines
532 B
GDScript
18 lines
532 B
GDScript
@tool
|
|
extends Weapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["atk"] += 3 * to * soulLevel
|
|
origin["rotate"] += 0.015 * to * soulLevel
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
for j in BulletBase.generate(
|
|
ComponentManager.getBullet("Volcano"),
|
|
entity,
|
|
entity.findWeaponAnchor("normal"),
|
|
entity.position.angle_to_point(entity.get_global_mouse_position()), false, false, true, true
|
|
):
|
|
var bullet: Volcano = j
|
|
bullet.damage = readStore("atk")
|
|
bullet.rotates = readStore("rotate")
|