mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
e912a58969
增加核弹的基础攻击力和范围,降低能量消耗但增加冷却时间 更新公鸡角色的武器配置,将核弹作为默认武器
15 lines
527 B
GDScript
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
|