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

feat(资源): 添加钻石巧克力和猫头鹰角色资源

新增钻石巧克力(Diamond.tscn)和猫头鹰(MTY.tscn)角色资源及相关图片文件
调整猫和狗的掉落物品数量范围
修改EntityBase.gd中物品掉落数量的计算逻辑
This commit is contained in:
2025-12-07 16:39:43 +08:00
parent c246565795
commit 4fc1daae0d
9 changed files with 152 additions and 3 deletions
+1 -1
View File
@@ -334,7 +334,7 @@ func tryDie(by: BulletBase = null):
var item = drops[drop]
var count = ceil(randf_range(dropCounts[drop].x, dropCounts[drop].y))
for i in range(count):
ItemDropped.generate(item, randi_range(1, int(sqrt(count) * (GameRule.difficulty - GameRule.difficultyRange.x + 1))), position + MathTool.randv2_range(GameRule.itemDroppedSpawnOffset))
ItemDropped.generate(item, randi_range(1, 2 * round(sqrt(GameRule.difficulty - GameRule.difficultyRange.x + 1))), position + MathTool.randv2_range(GameRule.itemDroppedSpawnOffset))
if MathTool.rate(
GameRule.appleDropRate +
by.launcher.fields.get(FieldStore.Entity.DROP_APPLE_RATE) +