mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
fix(武器): 调整DaoStatue伤害计算逻辑和描述
feat(游戏流程): 添加初始选择界面自动触发开始按钮逻辑 refactor(战斗系统): 分离调试和发布版的波次配置 style(资源): 更新图片导入配置为VRAM压缩格式 chore: 忽略zip文件并修复.gitignore格式
This commit is contained in:
@@ -24,6 +24,8 @@ func beforeOpen(_args: Array = []):
|
||||
if WorldManager.isRelease():
|
||||
clearWeapons()
|
||||
title2.hide()
|
||||
if !title1.visible:
|
||||
startBtn.pressed.emit()
|
||||
)
|
||||
else:
|
||||
initialFeedSelection.add_child(card)
|
||||
@@ -32,6 +34,8 @@ func beforeOpen(_args: Array = []):
|
||||
if WorldManager.isRelease():
|
||||
clearFeeds()
|
||||
title1.hide()
|
||||
if !title2.visible:
|
||||
startBtn.pressed.emit()
|
||||
)
|
||||
|
||||
func clearFeeds():
|
||||
|
||||
@@ -58,10 +58,11 @@ static var WAVE_MOWING = [
|
||||
Wave.create("MTY", 1, 5, false, 0, INF, 1),
|
||||
]
|
||||
static var WAVE_EMPTY = []
|
||||
static var waveConfig = [WAVE_TESTBOSS_ALL, 1]
|
||||
static var waveReleaseConfig = [WAVE_TESTBOSS_ALL, 1]
|
||||
static var waveDebugConfig = [WAVE_MOWING, 1]
|
||||
|
||||
static var current: int = startWith(1) if WorldManager.isRelease() else startWith(waveConfig[1])
|
||||
static var data = WAVE_NORMAL if WorldManager.isRelease() else waveConfig[0]
|
||||
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]
|
||||
|
||||
static func create(
|
||||
entity_: String,
|
||||
|
||||
@@ -8,6 +8,7 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["rate3"] *= soulLevel
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
var parryCounter = entity.getOrCreateCycleTimer("parry", 2000, 100)
|
||||
for bullet in BulletBase.generate(
|
||||
ComponentManager.getBullet("Wuwei"),
|
||||
entity,
|
||||
@@ -18,5 +19,12 @@ func attack(entity: EntityBase):
|
||||
bullet.baseDamage = readStore("atk")
|
||||
bullet.baseDamage *= max(-0.99, readStore("rate2") * ((1.0 - entity.fields[FieldStore.Entity.ATTACK_SPEED]) * 100)) + 1
|
||||
bullet.baseDamage *= max(-0.99, readStore("rate1") * (entity.fields[FieldStore.Entity.MAX_HEALTH] - entity.health)) + 1
|
||||
bullet.baseDamage *= max(-0.99, readStore("rate3") * len(entity.getOrCreateCycleTimer("parry", 2000, 100).bullets)) + 1
|
||||
var atkAll = 0
|
||||
for bulle in parryCounter.bullets:
|
||||
if bulle is ParryBallBullet:
|
||||
atkAll += bulle.atk
|
||||
bullet.baseDamage *= max(-0.99, readStore("rate3") * atkAll) + 1
|
||||
for bulle in parryCounter.bullets:
|
||||
if bulle is ParryBallBullet:
|
||||
bulle.tryDestroy()
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user