fix: Fixes NPE in champ titles (#1434)
This commit is contained in:
parent
51ecee6caa
commit
6547239fa6
4 changed files with 6 additions and 9 deletions
|
|
@ -1598,7 +1598,6 @@
|
|||
{ "type": "ABauble" },
|
||||
{ "type": "AbscessTail" },
|
||||
{ "type": "AcidProofRope" },
|
||||
{ "type": "AcidSlime" },
|
||||
{ "type": "AlbinoCourtesanFish" },
|
||||
{ "type": "AlbinoFrog" },
|
||||
{ "type": "AlchemistsBandage" },
|
||||
|
|
@ -2078,7 +2077,6 @@
|
|||
{ "type": "PlayerBBSouth" },
|
||||
{ "type": "PlayingCards" },
|
||||
{ "type": "PlayingCards2" },
|
||||
{ "type": "PoolOfAcid" },
|
||||
{ "type": "PortraitOfTheBride" },
|
||||
{ "type": "PotionKeg" },
|
||||
{ "type": "PottedCactusDeed" },
|
||||
|
|
|
|||
|
|
@ -352,7 +352,7 @@ public partial class ChampionTitleContext
|
|||
for (var i = 0; i < ChampionSpawnInfo.Table.Length; i++)
|
||||
{
|
||||
ref var title = ref GetTitleValueRef(ChampionSpawnInfo.Table[i].Type);
|
||||
if (Unsafe.IsNullRef(ref title))
|
||||
if (Unsafe.IsNullRef(ref title) || title == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,9 +4,7 @@ namespace Server.Engines.MLQuests
|
|||
{
|
||||
private static MLQuestPersistence m_Instance;
|
||||
|
||||
private MLQuestPersistence()
|
||||
: base(1) =>
|
||||
Movable = false;
|
||||
private MLQuestPersistence() : base(1) => Movable = false;
|
||||
|
||||
public MLQuestPersistence(Serial serial) : base(serial) => m_Instance = this;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,9 +13,6 @@ namespace Server.Mobiles
|
|||
Body = Core.UOR ? Utility.Random(125, 2) : 0x190;
|
||||
Hue = Core.UOR ? 0 : Race.Human.RandomSkinHue();
|
||||
|
||||
EquipItem(new Robe(Utility.RandomMetalHue()));
|
||||
EquipItem(new WizardsHat(Utility.RandomMetalHue()));
|
||||
|
||||
SetStr(81, 105);
|
||||
SetDex(191, 215);
|
||||
SetInt(126, 150);
|
||||
|
|
@ -44,6 +41,10 @@ namespace Server.Mobiles
|
|||
|
||||
VirtualArmor = 16;
|
||||
PackReg(23);
|
||||
|
||||
EquipItem(new Robe(Utility.RandomMetalHue()));
|
||||
EquipItem(new WizardsHat(Utility.RandomMetalHue()));
|
||||
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
EquipItem(new Shoes());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue