From 03ea7099b617a694c86ba65794dff47d17aa101e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=8Exl?= <1911159016@qq.com> Date: Fri, 22 Mar 2024 22:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=94=9F=E6=88=90=E5=AE=9D?= =?UTF-8?q?=E7=AE=B1=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DungeonShooting_Godot/src/framework/map/RandomPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DungeonShooting_Godot/src/framework/map/RandomPool.cs b/DungeonShooting_Godot/src/framework/map/RandomPool.cs index 3328785e..ece110c9 100644 --- a/DungeonShooting_Godot/src/framework/map/RandomPool.cs +++ b/DungeonShooting_Godot/src/framework/map/RandomPool.cs @@ -114,7 +114,7 @@ public class RandomPool private void FillRewardRoom(RoomPreinstall preinstall) { var wave = GetOrCreateWave(preinstall, 0); - var mark = CreateMark(ActivityType.Treasure, 0, (preinstall.RoomInfo.Waypoints + new Vector2(0.5f, 0.5f)) * GameConfig.TileCellSize); + var mark = CreateMark(ActivityType.Treasure, 0, preinstall.GetSpecialMark(SpecialMarkType.Box).Position); mark.Id = "treasure_box0001"; wave.Add(mark); }