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

feat(武器): 添加咸亨记账簿武器及茴香豆子弹

实现新的HXD武器系统,包括:
- 咸亨记账簿武器,可发射反弹的茴香豆子弹
- 茴香豆子弹能在敌人间反弹并造成伤害
- 添加相关资源文件及场景配置
- 将新武器添加到公鸡角色的武器库中
This commit is contained in:
2026-02-02 09:40:18 +08:00
parent 636e976ce8
commit dd479b0d7b
15 changed files with 289 additions and 3 deletions
+17
View File
@@ -0,0 +1,17 @@
@tool
extends Weapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 1 * to * soulLevel
return origin
func attack(entity: EntityBase):
for i in readStore("atk"):
for bullet in BulletBase.generate(
ComponentManager.getBullet("HXD"),
entity,
entity.findWeaponAnchor("normal"),
entity.findWeaponAnchor("normal").angle_to_point(get_global_mouse_position()) + deg_to_rad(randf_range(-1, 1) * 40)
):
if bullet is HXDBullet:
bullet.maxBouncedTime = readStore("atk")
bullet.baseDamage = readStore("atk")
+1
View File
@@ -0,0 +1 @@
uid://0xfj35jvi7ym