1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 23:41:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Weapons/LGBTWeapon.gd
T
fallingshrimp c6ff68541b refactor: 调整武器和召唤物属性及配置
- 移除LGBTFlag的最大生命值设置
- 调整HJM武器的伤害和时间系数
- 修改Arrow子弹的轨迹参数
- 将BulletBase的伤害计算从initialDamage改为baseDamage
- 简化LGBTWeapon的召唤参数
- 提升Bow武器的攻击力和降低能量消耗
- 调整HJM武器的属性和描述
- 更新Rooster角色的武器配置
2025-11-29 21:39:56 +08:00

20 lines
628 B
GDScript

@tool
extends Weapon
class_name LGBTWeapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["angle"] /= 1 + 0.025 * to * soulLevel
origin["count"] = soulLevel + 1
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"))
summon.atk = readStore("atk")
summon.maxTraceTime = readStore("trace") * 1000
summon.tracePower = readStore("power")
summon.count = readStore("count")
summon.angle = readStore("angle")
return true