mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-05 03:07:12 +08:00
feat(Meowmere): 调整武器和子弹属性并优化动画
- 为Meowmere子弹添加穿透属性 - 调整武器伤害计算和子子弹伤害 - 更新武器描述模板和数值显示 - 修改子弹碰撞体大小和位置 - 优化武器动画和旋转效果 - 调整角色武器库中的武器顺序
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
extends BulletBase
|
||||
|
||||
func register():
|
||||
penerate = 1
|
||||
func ai():
|
||||
PresetBulletAI.lockLauncher(self, launcher, true)
|
||||
PresetBulletAI.lockLauncher(self, launcher, true)
|
||||
|
||||
@@ -2,12 +2,14 @@
|
||||
extends Weapon
|
||||
|
||||
func update(to, origin, _entity):
|
||||
origin["atk"] += 7 * to * soulLevel
|
||||
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"):
|
||||
BulletBase.generate(ComponentManager.getBullet("RainbowCat"), entity, weaponPos, weaponPos.angle_to_point(get_global_mouse_position()))
|
||||
for j in BulletBase.generate(ComponentManager.getBullet("RainbowCat"), entity, weaponPos, weaponPos.angle_to_point(get_global_mouse_position())):
|
||||
j.damage = readStore("childatk")
|
||||
|
||||
Reference in New Issue
Block a user