mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-04 01:02:13 +08:00
fix(Characters): 调整Chick角色的攻击冷却时间和激光数量
修改Chick角色的攻击冷却时间配置,提高部分攻击的冷却时间以平衡游戏难度。同时将激光攻击的数量改为随机生成2-4个,增加战斗变化性。将默认波次数据从测试BOSS改为普通波次。
This commit is contained in:
@@ -3,16 +3,14 @@ class_name Chick
|
|||||||
|
|
||||||
@onready var firepot = $"%firepot"
|
@onready var firepot = $"%firepot"
|
||||||
|
|
||||||
const laserCount = 4
|
|
||||||
|
|
||||||
func register():
|
func register():
|
||||||
fields[FieldStore.Entity.MAX_HEALTH] = 1000
|
fields[FieldStore.Entity.MAX_HEALTH] = 1000
|
||||||
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.4
|
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.4
|
||||||
attackCooldownMap[0] = 500
|
attackCooldownMap[0] = 200
|
||||||
attackCooldownMap[1] = 6000
|
attackCooldownMap[1] = 12000
|
||||||
attackCooldownMap[2] = 2000
|
attackCooldownMap[2] = 2000
|
||||||
attackCooldownMap[3] = 500
|
attackCooldownMap[3] = 3000
|
||||||
sprintMultiplier = 45
|
sprintMultiplier = 50
|
||||||
func spawn():
|
func spawn():
|
||||||
texture.play("walk")
|
texture.play("walk")
|
||||||
|
|
||||||
@@ -30,7 +28,8 @@ func attack(type):
|
|||||||
for i in randi_range(10, 20):
|
for i in randi_range(10, 20):
|
||||||
BulletBase.generate(preload("res://components/Bullets/Diamond.tscn"), self, weaponPos + MathTool.randv2_range(20), rotation + deg_to_rad(randf_range(-90, 90)))
|
BulletBase.generate(preload("res://components/Bullets/Diamond.tscn"), self, weaponPos + MathTool.randv2_range(20), rotation + deg_to_rad(randf_range(-90, 90)))
|
||||||
elif type == 1:
|
elif type == 1:
|
||||||
for i in range(laserCount):
|
var laserCount = randi_range(2, 4)
|
||||||
|
for i in laserCount:
|
||||||
BulletBase.generate(preload("res://components/Bullets/ChickLaser.tscn"), self, texture.global_position, deg_to_rad(90 * i))
|
BulletBase.generate(preload("res://components/Bullets/ChickLaser.tscn"), self, texture.global_position, deg_to_rad(90 * i))
|
||||||
elif type == 2:
|
elif type == 2:
|
||||||
var weaponPos = findWeaponAnchor("normal")
|
var weaponPos = findWeaponAnchor("normal")
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ static var WAVE_TESTBOSS_KUKE = [
|
|||||||
Wave.create(preload("res://components/Characters/KukeMC.tscn"), 0, 0, true, 0, INF, 1),
|
Wave.create(preload("res://components/Characters/KukeMC.tscn"), 0, 0, true, 0, INF, 1),
|
||||||
]
|
]
|
||||||
static var WAVE_EMPTY = []
|
static var WAVE_EMPTY = []
|
||||||
static var data = WAVE_TESTBOSS_ALL
|
static var data = WAVE_NORMAL
|
||||||
|
|
||||||
static func customStart():
|
static func customStart():
|
||||||
if false:
|
if false:
|
||||||
|
|||||||
Reference in New Issue
Block a user