From d739771c1a7d787bb61df5c4d8750c4e15985a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Sat, 9 May 2026 21:06:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=89=E8=90=BD=E7=B3=BB=E7=BB=9F):=20?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=95=8C=E4=BA=BA=E7=AD=89=E7=BA=A7=E8=B0=83?= =?UTF-8?q?=E6=95=B4boss=E6=8E=89=E8=90=BD=E7=89=A9=E5=93=81=E6=95=B0?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将boss掉落的晶体数量上限从固定20改为15+等级,钻石数量上限从固定3改为等于等级 --- scripts/Statemachine/EntityBase.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Statemachine/EntityBase.gd b/scripts/Statemachine/EntityBase.gd index 905b5c6..f3df792 100644 --- a/scripts/Statemachine/EntityBase.gd +++ b/scripts/Statemachine/EntityBase.gd @@ -416,7 +416,7 @@ func tryDie(by: BulletBase = null): fields[FieldStore.Entity.MAX_HEALTH] * randf_range(1 - GameRule.beachballOffset, 1 + GameRule.beachballOffset), position + MathTool.sampleInCircle(GameRule.itemDroppedSpawnOffset) ) - for i in randi_range(0, 20 if isBoss else 5): + for i in randi_range(0, (15 + level) if isBoss else 5): ItemDropped.generate( ItemStore.ItemType.CRYSTAL, 5 if isBoss else 1, @@ -425,7 +425,7 @@ func tryDie(by: BulletBase = null): if isBoss: ItemDropped.generate( ItemStore.ItemType.DIAMOND, - randi_range(1, 3), + randi_range(1, level), position + MathTool.sampleInCircle(GameRule.itemDroppedSpawnOffset) ) if isBoss: