From a6db96da5733fb253b91576cb9c0c39e951f2b0b Mon Sep 17 00:00:00 2001 From: ephphatha Date: Sun, 12 Jun 2022 12:02:31 +1000 Subject: [PATCH] Test betrayer portal position is set on dlvl 15 --- test/drlg_l4_test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/drlg_l4_test.cpp b/test/drlg_l4_test.cpp index 1615d8ec4..00644604e 100644 --- a/test/drlg_l4_test.cpp +++ b/test/drlg_l4_test.cpp @@ -63,14 +63,22 @@ TEST(Drlg_l4, CreateL4Dungeon_diablo_15_1583642716) TestCreateDungeon(15, 1583642716, ENTRY_PREV); EXPECT_EQ(ViewPosition, Point(87, 69)); + Quests[Q_BETRAYER]._qactive = QUEST_ACTIVE; + TestCreateDungeon(15, 1583642716, ENTRY_MAIN); // Betrayer quest does not change level gen + EXPECT_EQ(ViewPosition, Point(44, 26)); + EXPECT_EQ(Quests[Q_BETRAYER].position, Point(34, 24)) << "Ensure the portal to lazarus has a spawn position if the player has activated the quest"; + LoadExpectedLevelData("diablo/15-1583642716-changed.dun"); + Quests[Q_BETRAYER]._qactive = QUEST_DONE; Quests[Q_DIABLO]._qactive = QUEST_ACTIVE; TestCreateDungeon(15, 1583642716, ENTRY_MAIN); EXPECT_EQ(ViewPosition, Point(44, 26)); + EXPECT_EQ(Quests[Q_BETRAYER].position, Point(34, 24)) << "Not really required? current bugfix sets this position anyway"; TestCreateDungeon(15, 1583642716, ENTRY_PREV); EXPECT_EQ(ViewPosition, Point(87, 69)); + EXPECT_EQ(Quests[Q_BETRAYER].position, Point(34, 24)) << "Not really required? current bugfix sets this position anyway"; } TEST(Drlg_l4, CreateL4Dungeon_diablo_15_1256511996)