Inital Commit
This commit is contained in:
Executable → Regular
+10
-3
@@ -119,7 +119,7 @@ namespace Server.Items
|
||||
{
|
||||
m_BagOfSendingHue = value;
|
||||
|
||||
switch ( value )
|
||||
switch (value)
|
||||
{
|
||||
case BagOfSendingHue.Yellow:
|
||||
Hue = 0x8A5;
|
||||
@@ -135,7 +135,7 @@ namespace Server.Items
|
||||
}
|
||||
public static BagOfSendingHue RandomHue()
|
||||
{
|
||||
switch ( Utility.Random(3) )
|
||||
switch (Utility.Random(3))
|
||||
{
|
||||
case 0:
|
||||
return BagOfSendingHue.Yellow;
|
||||
@@ -206,7 +206,7 @@ namespace Server.Items
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
switch ( version )
|
||||
switch (version)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
@@ -260,6 +260,13 @@ namespace Server.Items
|
||||
if (m_Bag.Deleted)
|
||||
return;
|
||||
|
||||
// Block usage anywhere in Felucca
|
||||
if (from.Map == Map.Felucca)
|
||||
{
|
||||
from.SendMessage("A mysterious force prevents the bag from working in Felucca.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (from.Region.IsPartOf<Regions.Jail>())
|
||||
{
|
||||
from.SendMessage("You may not do that in jail.");
|
||||
|
||||
Reference in New Issue
Block a user