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/PurpleCrystal.gd
T
fallingshrimp 3a32d2af25 feat(武器系统): 重构LGBT武器并添加工具模式支持
- 为BigLaser和PurpleCrystal武器添加@tool注解
- 重构LGBTWeapon的攻击逻辑,支持多角度子弹发射
- 更新LGBT武器的配置属性和描述模板
- 将Rooster角色的武器从BigLaser替换为LGBT武器
2025-09-06 08:23:57 +08:00

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