mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-10 13:47:12 +08:00
feat(角色): 为角色添加默认武器并调整死亡逻辑
为HCN、Lynx和MuyangDog角色添加默认武器 移除发布模式下自动添加紫色水晶武器的逻辑 调整死亡逻辑,使召唤物也能被正确释放
This commit is contained in:
@@ -139,7 +139,6 @@ func _ready():
|
||||
if WorldManager.isRelease():
|
||||
for i in weaponStore.get_children():
|
||||
i.queue_free()
|
||||
weaponStore.add_child(ComponentManager.getWeapon("PurpleCrystal").instantiate())
|
||||
for i in weaponStore.get_children():
|
||||
i.hide()
|
||||
weapons.append(i)
|
||||
@@ -448,7 +447,7 @@ func tryDie(by: BulletBase = null):
|
||||
UIState.showTip("[b]%s[/b] 已被打败!" % displayName, TipBox.MessageType.CONGRATULATION)
|
||||
elif isPlayer():
|
||||
UIState.showTip("[b]%s[/b] 似了😭。" % displayName, TipBox.MessageType.ERROR)
|
||||
if !isPlayer():
|
||||
if !isPlayer() || isSummon():
|
||||
queue_free()
|
||||
func tryHeal(count: float):
|
||||
playSound("heal")
|
||||
|
||||
Reference in New Issue
Block a user