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/Meowmere.gd
T
fallingshrimp 1a6a47da74 feat(Meowmere): 调整武器和子弹属性并优化动画
- 为Meowmere子弹添加穿透属性
- 调整武器伤害计算和子子弹伤害
- 更新武器描述模板和数值显示
- 修改子弹碰撞体大小和位置
- 优化武器动画和旋转效果
- 调整角色武器库中的武器顺序
2025-09-21 15:32:38 +08:00

16 lines
655 B
GDScript

@tool
extends Weapon
func update(to, origin, _entity):
origin["atk"] += 3 * to * soulLevel
origin["count"] = 1 * soulLevel
origin["childatk"] = 2 * to * soulLevel
return origin
func attack(entity: EntityBase):
var weaponPos = entity.findWeaponAnchor("normal")
for i in BulletBase.generate(ComponentManager.getBullet("Meowmere"), entity, weaponPos, weaponPos.angle_to_point(get_global_mouse_position())):
i.damage = readStore("atk")
for i in readStore("count"):
for j in BulletBase.generate(ComponentManager.getBullet("RainbowCat"), entity, weaponPos, weaponPos.angle_to_point(get_global_mouse_position())):
j.damage = readStore("childatk")