1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Weapons/LGBTWeapon.gd
T
fallingshrimp 287f29695d feat(武器系统): 优化LGBT武器和召唤物行为
- 增加LGBT武器的冷却时间从0.1到1000
- 召唤物现在会继承召唤者位置
- 优化子弹追踪逻辑和生命周期
- 修复召唤物AI行为和玩家状态检测
- 调整召唤物属性和攻击冷却时间
2025-11-06 22:42:01 +08:00

16 lines
483 B
GDScript

@tool
extends Weapon
class_name LGBTWeapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 5 * to * soulLevel
origin["power"] += 0.05 * to * soulLevel
origin["trace"] += 0.25 * to * soulLevel
return origin
func attack(entity: EntityBase):
var summon = entity.summon(ComponentManager.getSummon("LGBTFlag"), true)
summon.atk = readStore("atk")
summon.maxTraceTime = readStore("trace") * 1000
summon.tracePower = readStore("power")
return true