1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-01 17:01:53 +08:00

feat: 新增光标刃轮武器及相关资源

添加光标刃轮武器系统,包括:
- 武器脚本和场景配置
- 子弹动画和特效
- 相关音效和贴图资源
- 武器升级逻辑
- 角色初始武器配置调整
This commit is contained in:
2026-03-07 09:05:36 +08:00
parent d5a05f8ac9
commit ca82cbed12
24 changed files with 540 additions and 20 deletions
+5
View File
@@ -0,0 +1,5 @@
extends BulletBase
class_name CursorKnifeBullet
func ai():
PresetBulletAI.forward(self , rotation)
@@ -0,0 +1 @@
uid://c337id4kvvj58
+18
View File
@@ -0,0 +1,18 @@
@tool
extends Weapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 2 * to * soulLevel
origin["speed"] += 0.004 * to * soulLevel
return origin
func attack(entity: EntityBase):
attackSpeed = 1 + readStore("speed")
for bullet in BulletBase.generate(
ComponentManager.getBullet("CursorKnife"),
entity,
get_global_mouse_position(),
entity.position.angle_to_point(get_global_mouse_position())
):
if bullet is CursorKnifeBullet:
bullet.baseDamage = readStore("atk")
return true
@@ -0,0 +1 @@
uid://jyalew2bgcnk