corrections for more champ spawn replicas. correction for mounted potion animation.

This commit is contained in:
xavier 2011-07-07 23:51:33 +00:00
parent 2e4d48e193
commit 2d7747154c
8 changed files with 51 additions and 9 deletions

View file

@ -4,11 +4,10 @@ using Server.Items;
namespace Server.Items
{
[FlipableAttribute( 0x2250, 0x2251 )]
public class DemonSkull : Item
{
[Constructable]
public DemonSkull() : base( 0x2250 )
public DemonSkull() : base( 0x224e + Utility.Random(4) )
{
}

View file

@ -6,8 +6,33 @@ namespace Server.Items
{
public class Pier : Item
{
/*
* This does not make a lot of sense, being a "Pier"
* and having possible itemids that have nothing
* to do with piers. The three items here are basically
* permutations of the same "drop", or item that
* will be randomly selected when the item drops.
*
* It was either this, or make 2
* new classes named to reflect that they are rocks
* in water, or put them all in one class. Either
* is kind of senseless, so it is what it is.
*
*/
private static int[] m_itemids = new int[]
{
0x3486, 0x348b, 0x3ae
};
[Constructable]
public Pier() : base( 0x03AE )
public Pier()
: base(m_itemids[Utility.Random(3)])
{
}
public Pier(int itemid)
: base(itemid)
{
}

View file

@ -7,7 +7,8 @@ namespace Server.Items
public class WallBlood : Item
{
[Constructable]
public WallBlood() : base( 0x1D95 )
public WallBlood()
: base(Utility.RandomBool() ? 0x1D95 : 0x1D94)
{
}

View file

@ -5,8 +5,19 @@ namespace Server.Items
{
public class Web : Item
{
private static int[] m_itemids = new int[]
{
0x10d7, 0x10d8, 0x10dd
};
[Constructable]
public Web() : base( 0x10DD )
public Web()
: base(m_itemids[Utility.Random(3)])
{
}
[Constructable]
public Web( int itemid ) : base( itemid )
{
}

View file

@ -37,7 +37,8 @@ namespace Server.Items
base.Deserialize( reader );
int version = reader.ReadInt();
if (version < 1)
if (version < 1 && Hue == 1)
{
Hue = 0x455;
}

View file

@ -48,9 +48,10 @@ namespace Server.Items
base.Deserialize( reader );
int version = reader.ReadInt();
if (version < 1)
if (version < 1 && Hue == 0x3f) /* Pigmented? */
{
Hue = 0x1D6;
Hue = 0x2a3;
}
}
}