mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-10 21:57:12 +08:00
fix(武器): 修正魔法导弹法杖的生成数量问题
将魔法导弹法杖的生成数量从随机1~3枚固定为1枚,并更新相关描述文本。同时调整了测试用的波次配置,将调试模式下的波次改为测试BOSS波次。
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user