1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Weapons/NuclearBomb.gd
T
fallingshrimp e912a58969 feat(武器): 调整核弹武器属性和角色配置
增加核弹的基础攻击力和范围,降低能量消耗但增加冷却时间
更新公鸡角色的武器配置,将核弹作为默认武器
2025-09-30 17:01:44 +08:00

15 lines
527 B
GDScript

@tool
extends Weapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 50 * to * soulLevel
origin["radius"] += 15 * to * soulLevel
return origin
func attack(entity: EntityBase):
var weaponPos = entity.findWeaponAnchor("normal")
for j in BulletBase.generate(ComponentManager.getBullet("NuclearBomb"), entity, weaponPos, weaponPos.angle_to_point(get_global_mouse_position())):
var bullet: NuclearBomb = j
bullet.damage = readStore("atk")
bullet.radius = readStore("radius")
return true