mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
3a32d2af25
- 为BigLaser和PurpleCrystal武器添加@tool注解 - 重构LGBTWeapon的攻击逻辑,支持多角度子弹发射 - 更新LGBT武器的配置属性和描述模板 - 将Rooster角色的武器从BigLaser替换为LGBT武器
12 lines
400 B
GDScript
12 lines
400 B
GDScript
@tool
|
|
extends Weapon
|
|
class_name PurpleCrystalWeapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["atk"] += 5 * to
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
var weaponPos = entity.findWeaponAnchor("normal")
|
|
BulletBase.generate(preload("res://components/Bullets/PurpleCrystal.tscn"), entity, weaponPos, (get_global_mouse_position() - weaponPos).angle())
|
|
return true
|