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/LGBTWeapon.gd
T
fallingshrimp 6c7778309d feat(武器系统): 增强武器描述模板功能并添加调试选项
为武器系统添加数据类型支持,包括数值、百分比和角度显示格式
添加debugRebuild选项用于编辑器调试
移除调试用的print语句
更新LGBT武器的场景配置和描述显示
2025-09-06 08:17:10 +08:00

13 lines
409 B
GDScript

@tool
extends Weapon
class_name LGBTWeapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 5 * to
origin["time"] /= 1.1
return origin
func attack(entity: EntityBase):
var weaponPos = entity.findWeaponAnchor("normal")
BulletBase.generate(preload("res://components/Bullets/BigLaser.tscn"), entity, weaponPos, (get_global_mouse_position() - weaponPos).angle())
return true