mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 07:21:54 +08:00
6f8b2fec90
更新多个武器的伤害值、能量消耗、冷却时间等数值平衡 修复武器描述文本中的错误并统一显示格式 为部分武器添加缺失的tease文本和可见性设置 优化武器配置文件的调试标记和能量显示
22 lines
591 B
GDScript
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
|