mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(游戏内容): 添加能量方块角色和矢量核心武器
添加新的能量方块角色实体及其相关资源文件 新增矢量核心武器卡牌配置 调整彩虹糖的数值平衡 修改波次生成逻辑,允许Boss波次生成小怪 修复红水晶子弹在发射者无效时的崩溃问题
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
extends EntityBase
|
||||
class_name EnergyBlockEntity
|
||||
|
||||
func register():
|
||||
fields[FieldStore.Entity.MAX_HEALTH] = 5000
|
||||
hit.connect(
|
||||
func(damage: float, bullet: BulletBase, _crit: bool):
|
||||
bullet.launcher.storeEnergy(damage)
|
||||
)
|
||||
attackCooldownMap[0] = 0
|
||||
func ai():
|
||||
tryAttack(0)
|
||||
func attack(type: int):
|
||||
if type == 0:
|
||||
var track = getTrackingAnchor()
|
||||
var bullet = BulletTool.findClosetBulletCanDamage(track, get_tree(), self , 200)
|
||||
if is_instance_valid(bullet):
|
||||
BulletBase.generate(ComponentManager.getBullet("Parrier"), self , track, track.angle_to_point(bullet.position))
|
||||
@@ -0,0 +1 @@
|
||||
uid://du30qanswie6y
|
||||
Reference in New Issue
Block a user