mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
062219c5b9
添加新的哈基米(HJM)召唤物,包括动画资源、攻击逻辑和武器配置。主要变更: - 新增HJM召唤物脚本和场景,包含6帧动画 - 添加HJM专属子弹类型HJMAttack - 修改SummonBase基类添加atk属性 - 调整武器系统支持召唤物攻击 - 优化子弹系统支持召唤者追踪 - 降低LGBT旗帜召唤物的生命值
20 lines
641 B
GDScript
20 lines
641 B
GDScript
@tool
|
|
extends Weapon
|
|
class_name LGBTWeapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["angle"] /= 1 + 0.02 * to * soulLevel
|
|
origin["count"] += 1 * soulLevel
|
|
origin["atk"] += 2 * to * soulLevel
|
|
origin["power"] += 0.005 * to * soulLevel
|
|
origin["trace"] += 0.05 * to * soulLevel
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
var summon = entity.summon(ComponentManager.getSummon("LGBTFlag"), true, false)
|
|
summon.atk = readStore("atk")
|
|
summon.maxTraceTime = readStore("trace") * 1000
|
|
summon.tracePower = readStore("power")
|
|
summon.count = readStore("count")
|
|
summon.angle = readStore("angle")
|
|
return true
|