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

feat(武器系统): 为BigLaser武器添加执行伤害和升华选项

- 在ObstacleBase和EntityBase中添加getHealthPercent方法用于获取生命值百分比
- 修改bulletHit方法支持伤害覆盖参数
- 为BigLaser武器添加5个升华选项,包括临界斩杀效果
- 实现damageOverride方法根据目标生命值动态调整伤害
- 修复store数值可能为负数的问题
This commit is contained in:
2026-05-10 14:58:05 +08:00
parent a0372f0867
commit 6b7801e1ce
6 changed files with 66 additions and 7 deletions
+2
View File
@@ -44,6 +44,8 @@ func takeDamage(damage: float):
func tryDie():
die()
queue_free()
func getHealthPercent():
return health / healthMax
func die():
pass