fix: Fixes missing EJ houses in catalog (#925)

This commit is contained in:
Stefano Merotta 2022-02-04 18:33:12 +01:00 committed by GitHub
parent 6fef622715
commit 01a41732f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View file

@ -32,3 +32,4 @@
.DS_Store
/packages/*
/Distribution/Configuration/server-access.json

View file

@ -103,8 +103,9 @@ namespace Server.Items
{
case 1: // Classic Houses
{
// TODO: Add flag to use ClassicHouses or EJ
m_From.SendGump(new HousePlacementListGump(m_From, HousePlacementEntry.HousesEJ));
var entry = Core.EJ ? HousePlacementEntry.HousesEJ : HousePlacementEntry.ClassicHouses;
m_From.SendGump(new HousePlacementListGump(m_From, entry));
break;
}
case 2: // 2-Story Customizable Houses
@ -318,7 +319,7 @@ namespace Server.Items
{
m_Table = new Dictionary<Type, object>();
FillTable(ClassicHouses);
FillTable(Core.EJ ? HousesEJ : ClassicHouses);
FillTable(TwoStoryFoundations);
FillTable(ThreeStoryFoundations);
}