调整生成宝箱位置

This commit is contained in:
小李xl 2024-03-22 22:18:43 +08:00
parent 8f4a5c6d7e
commit 03ea7099b6

View File

@ -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);
}