fix: Fixes ML Escortables and codegens (#1525)

### Summary
- [X] Adds tot.json to ignore list.
- [X] Fixes bias in escortable random quest selection.
- [X] Adds New Haven specific destination/payment messages for escortable quests.
- [X] Codegens escortables.
This commit is contained in:
Kamron Batman 2023-09-30 14:11:48 -07:00 • committed by GitHub
parent 7d05e3b1cb
commit d55406337f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 2382 additions and 2480 deletions

View file

@ -1091,31 +1091,9 @@ namespace Server.Mobiles
public HonorContext ReceivedHonorContext { get; set; }
public List<MLQuest> MLQuests
{
get
{
if (m_MLQuests == null)
{
if (StaticMLQuester)
{
m_MLQuests = MLQuestSystem.FindQuestList(GetType());
}
else
{
m_MLQuests = ConstructQuestList();
}
if (m_MLQuests == null)
{
// return EmptyList, but don't cache it (run construction again next time)
return MLQuestSystem.EmptyList;
}
}
return m_MLQuests;
}
}
public List<MLQuest> MLQuests =>
// Assign the quests if we don't have one, and if it is still null, return an empty list
(m_MLQuests ??= StaticMLQuester ? MLQuestSystem.FindQuestList(GetType()) : ConstructQuestList()) ?? MLQuestSystem.EmptyList;
public virtual MonsterAbility[] GetMonsterAbilities() => null;