1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 23:41: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
+5 -4
View File
@@ -41,10 +41,11 @@ func allHad(entity: EntityBase) -> bool:
func apply(entity: EntityBase):
var allHave = allHad(entity)
if allHave:
for i in range(min(costs.size(), costCounts.size())):
var item = costs[i]
var count = countOf(i)
entity.inventory[item] -= count
if !freeToBuy:
for i in range(min(costs.size(), costCounts.size())):
var item = costs[i]
var count = countOf(i)
entity.inventory[item] -= count
for i in range(min(fields.size(), fieldValues.size())):
var field = fields[i]
var value = fieldValues[i]