1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-07 04:07:13 +08:00

fix(武器): 修正魔法导弹法杖的生成数量问题

将魔法导弹法杖的生成数量从随机1~3枚固定为1枚,并更新相关描述文本。同时调整了测试用的波次配置,将调试模式下的波次改为测试BOSS波次。
This commit is contained in:
2026-04-18 08:35:48 +08:00
parent 2dd47a4f3e
commit 24051ce9e2
3 changed files with 21 additions and 18 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ static var WAVE_MOWING = [
]
static var WAVE_EMPTY = []
static var waveReleaseConfig = [WAVE_TESTBOSS_ALL, 1]
static var waveDebugConfig = [WAVE_NORMAL, 1]
static var waveDebugConfig = [WAVE_TESTBOSS_ALL, 1]
static var current: int = startWith(waveReleaseConfig[1]) if WorldManager.isRelease() else startWith(waveDebugConfig[1])
static var data = waveReleaseConfig[0] if WorldManager.isRelease() else waveDebugConfig[0]
+14 -15
View File
@@ -13,21 +13,20 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
return origin
func loopStart(entity: EntityBase):
for i in randi_range(1, readStore("count")):
for bullet in BulletBase.generate(
ComponentManager.getBullet("MagicMissle"),
entity,
get_global_mouse_position() + Vector2.from_angle(randf_range(0, 2 * PI)) * readStore("track"),
0
):
if bullet is MagicMissleBullet:
bullet.look_at(get_global_mouse_position())
bullet.rotation += PI / 2
bullet.speedV2 += Vector2.from_angle(bullet.rotation) * sqrt((readStore("G") * readStore("cursor-m") / readStore("track") ** 2) * readStore("track")) / 120
bullet.roundBullets = roundBullets
bullet.baseDamage = readStore("atk")
bullet.powerScale = readStore("count")
roundBullets.append(bullet)
for bullet in BulletBase.generate(
ComponentManager.getBullet("MagicMissle"),
entity,
get_global_mouse_position() + Vector2.from_angle(randf_range(0, 2 * PI)) * readStore("track"),
0
):
if bullet is MagicMissleBullet:
bullet.look_at(get_global_mouse_position())
bullet.rotation += PI / 2
bullet.speedV2 += Vector2.from_angle(bullet.rotation) * sqrt((readStore("G") * readStore("cursor-m") / readStore("track") ** 2) * readStore("track")) / 120
bullet.roundBullets = roundBullets
bullet.baseDamage = readStore("atk")
bullet.powerScale = readStore("count")
roundBullets.append(bullet)
return true
func loopExit(_entity: EntityBase):
for bullet in roundBullets: