1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 00:11:54 +08:00

feat(武器): 新增道教石像武器及无为子弹

添加道教石像武器资源文件、脚本和场景配置
实现无为子弹的碰撞检测和动画效果
调整树武器的伤害计算方式,现在基于格挡率
优化游戏波次配置,调整敌人数量和出现时机
修复初始选择面板在发布模式下的逻辑问题
This commit is contained in:
2026-04-02 22:39:29 +08:00
parent 4727e26218
commit 01ab16ed9f
16 changed files with 275 additions and 19 deletions
+2 -2
View File
@@ -21,13 +21,13 @@ func spawn():
eff.texture.sprite_frames = frames
eff.shot()
func succeedToHit(_dmg: float, entity: EntityBase):
if parryiedTimes < maxParryTimes:
if parryiedTimes < maxParryTimes && MathTool.rate(parryRate):
parryiedTimes += 1
var effSpawn = entity.texture.global_position
var eff = EffectController.create(ComponentManager.getEffect("ParryEntity"), effSpawn)
eff.rotation = position.angle_to_point(effSpawn)
eff.shot()
entity.impluse((effSpawn - position).normalized() * 600)
entity.impluse((effSpawn - position).normalized() * 450)
func hitBullet(bullet: BulletBase): # 当前子弹与其他子弹相撞
if BulletTool.canDamage(bullet, launcher): # 其他子弹可以使当前子弹的发射者受伤吗?
if parryiedTimes < maxParryTimes && MathTool.rate(parryRate): # 一个刀光最多格挡多少个敌方子弹?
+2
View File
@@ -0,0 +1,2 @@
extends BulletBase
class_name WuweiBullet