mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
baa4f2d725
修改HJM武器的攻击计算方式,从乘法改为加法 优化召唤物的移动速度和追踪距离 调整武器的基础属性和UI显示 增加子弹生成逻辑和伤害设置 更新武器配置和描述文本
13 lines
368 B
GDScript
13 lines
368 B
GDScript
@tool
|
|
extends Weapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["time"] /= 1 + 0.05 * to * soulLevel
|
|
origin["atk"] += 2 * to * soulLevel
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
var summon = entity.summon(ComponentManager.getSummon("HJM"))
|
|
summon.atk = readStore("atk")
|
|
summon.attackTime = readStore("time") * 1000
|
|
return true
|