mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
74285b3ccc
- 提高攻击伤害系数从0.05到0.075 - 降低自身伤害系数从0.05到0.025 - 更新基础生命值消耗从1.0到2.0 - 移除能量需求相关配置 - 更新描述文本以匹配当前数值
21 lines
575 B
GDScript
21 lines
575 B
GDScript
@tool
|
|
extends Weapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["atk"] += 0.075 * to * soulLevel
|
|
origin["count"] = 1 * soulLevel
|
|
origin["self"] += 0.025 * to
|
|
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")
|