This reverts commit 179cb50557.
This commit is contained in:
parent
179cb50557
commit
c2ecc76457
588 changed files with 16260 additions and 10926 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Server.Accounting;
|
||||
using Server.ContextMenus;
|
||||
using Server.Items;
|
||||
using Server.Network;
|
||||
|
|
@ -283,16 +284,22 @@ namespace Server.Mobiles
|
|||
break;
|
||||
|
||||
if (!Core.ML && amount > 5000 || Core.ML && amount > 60000)
|
||||
{
|
||||
Say(500381); // Thou canst not withdraw so much at one time!
|
||||
}
|
||||
else if (pack?.Deleted != false || !(pack.TotalWeight < pack.MaxWeight) ||
|
||||
!(pack.TotalItems < pack.MaxItems))
|
||||
{
|
||||
Say(1048147); // Your backpack can't hold anything else.
|
||||
}
|
||||
else if (amount > 0)
|
||||
{
|
||||
BankBox box = e.Mobile.FindBankNoCreate();
|
||||
|
||||
if (box == null || !Withdraw(e.Mobile, amount))
|
||||
{
|
||||
Say(500384); // Ah, art thou trying to fool me? Thou hast not so much gold!
|
||||
}
|
||||
else
|
||||
{
|
||||
pack.DropItem(new Gold(amount));
|
||||
|
|
@ -358,9 +365,13 @@ namespace Server.Mobiles
|
|||
break;
|
||||
|
||||
if (amount < 5000)
|
||||
{
|
||||
Say(1010006); // We cannot create checks for such a paltry amount of gold!
|
||||
}
|
||||
else if (amount > 1000000)
|
||||
{
|
||||
Say(1010007); // Our policies prevent us from creating checks worth that much!
|
||||
}
|
||||
else
|
||||
{
|
||||
BankCheck check = new BankCheck(amount);
|
||||
|
|
|
|||
|
|
@ -50,7 +50,10 @@ namespace Server.Mobiles
|
|||
else
|
||||
AddItem(new Boots(lowHue));
|
||||
|
||||
HairItemID = Utility.RandomBool() ? 0x203B : 0x203C;
|
||||
if (Utility.RandomBool())
|
||||
HairItemID = 0x203B;
|
||||
else
|
||||
HairItemID = 0x203C;
|
||||
|
||||
HairHue = Race.RandomHairHue();
|
||||
|
||||
|
|
@ -71,4 +74,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -68,4 +68,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -77,4 +77,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -66,4 +66,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -78,4 +78,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -71,4 +71,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -26,7 +26,12 @@ namespace Server.Mobiles
|
|||
|
||||
public override bool ClickTitle => false; // Do not display 'the seeker of adventure' when single-clicking
|
||||
|
||||
public override string[] GetPossibleDestinations() => Core.ML ? m_MLDestinations : m_Dungeons;
|
||||
public override string[] GetPossibleDestinations()
|
||||
{
|
||||
if (Core.ML)
|
||||
return m_MLDestinations;
|
||||
return m_Dungeons;
|
||||
}
|
||||
|
||||
private static int GetRandomHue()
|
||||
{
|
||||
|
|
@ -84,4 +89,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@ using System.Text;
|
|||
using Server.Gumps;
|
||||
using Server.Items;
|
||||
using Server.Network;
|
||||
using Server.Prompts;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
|
|
@ -19,7 +20,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
private static GlobalTownCrierEntryList m_Instance;
|
||||
|
||||
public static GlobalTownCrierEntryList Instance => m_Instance ??= new GlobalTownCrierEntryList();
|
||||
public static GlobalTownCrierEntryList Instance => m_Instance ?? (m_Instance = new GlobalTownCrierEntryList());
|
||||
|
||||
public bool IsEmpty => Entries == null || Entries.Count == 0;
|
||||
|
||||
|
|
@ -49,7 +50,8 @@ namespace Server.Mobiles
|
|||
|
||||
public TownCrierEntry AddEntry(string[] lines, TimeSpan duration)
|
||||
{
|
||||
Entries ??= new List<TownCrierEntry>();
|
||||
if (Entries == null)
|
||||
Entries = new List<TownCrierEntry>();
|
||||
|
||||
TownCrierEntry tce = new TownCrierEntry(lines, duration);
|
||||
|
||||
|
|
@ -382,7 +384,8 @@ namespace Server.Mobiles
|
|||
|
||||
public TownCrierEntry AddEntry(string[] lines, TimeSpan duration)
|
||||
{
|
||||
Entries ??= new List<TownCrierEntry>();
|
||||
if (Entries == null)
|
||||
Entries = new List<TownCrierEntry>();
|
||||
|
||||
TownCrierEntry tce = new TownCrierEntry(lines, duration);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue