mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
7f52f4b805
移除火扫弹的独立脚本和火罐效果,改为直接在子弹中实现 火山武器改为三段伤害机制并调整基础伤害值 添加子弹基础伤害乘数数组支持多段伤害 更新相关场景和资源配置以匹配新机制
17 lines
495 B
GDScript
17 lines
495 B
GDScript
@tool
|
|
extends Weapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
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")
|