1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 07:21:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Weapons/Bow.gd
T
fallingshrimp 6f8b2fec90 feat(武器): 调整多个武器的数值和显示属性
更新多个武器的伤害值、能量消耗、冷却时间等数值平衡
修复武器描述文本中的错误并统一显示格式
为部分武器添加缺失的tease文本和可见性设置
优化武器配置文件的调试标记和能量显示
2026-05-08 18:54:31 +08:00

22 lines
591 B
GDScript

@tool
extends Weapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 0.1 * to * soulLevel
origin["count"] = 1 * soulLevel
origin["self"] += (soulLevel - 1)
return origin
func attack(entity: EntityBase):
entity.takeDamage(readStore("self"))
var weaponPos = entity.findWeaponAnchor("normal")
for i in BulletBase.generate(
ComponentManager.getBullet("Bow"),
entity,
weaponPos,
weaponPos.angle_to_point(get_global_mouse_position())
):
var bullet: Bow = i
bullet.count = readStore("count")
bullet.atk = readStore("atk")
return true