added the 2012 masks, update for new info about the masks, correction
This commit is contained in:
parent
cec4e0e9fa
commit
83f377cc83
6 changed files with 166 additions and 21 deletions
|
|
@ -0,0 +1,77 @@
|
|||
using System;
|
||||
//using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
[TypeAlias( "Server.Items.ClownMask", "Server.Items.DaemonMask", "Server.Items.PlagueMask" )]
|
||||
public class BasePaintedMask : Item
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get
|
||||
{
|
||||
if( m_Staffer != null )
|
||||
{
|
||||
return String.Format( "{0} hand painted by {1}", MaskName, m_Staffer );
|
||||
}
|
||||
|
||||
return MaskName;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual string MaskName { get { return "A Mask"; } }
|
||||
|
||||
private string m_Staffer;
|
||||
|
||||
private static string[] m_Staffers =
|
||||
{
|
||||
"Ryan",
|
||||
"Mark",
|
||||
"Krrios",
|
||||
"EOS",
|
||||
"Athena",
|
||||
"EoS",
|
||||
"Xavier"
|
||||
};
|
||||
|
||||
public BasePaintedMask( int itemid )
|
||||
: this( m_Staffers[ Utility.Random( m_Staffers.Length ) ], itemid )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public BasePaintedMask( string staffer, int itemid )
|
||||
: base( itemid + Utility.Random( 2 ) )
|
||||
{
|
||||
m_Staffer = staffer;
|
||||
|
||||
Utility.Intern( m_Staffer );
|
||||
}
|
||||
|
||||
public BasePaintedMask( Serial serial ) : base( serial )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( ( int )1 ); // version
|
||||
writer.Write( ( string )m_Staffer );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if( version == 1 )
|
||||
{
|
||||
m_Staffer = Utility.Intern( reader.ReadString() );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,20 +1,19 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Items
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
public class ClownMask : Item
|
||||
public class PaintedEvilClownMask : BasePaintedMask
|
||||
{
|
||||
public override string DefaultName { get { return "Clown Mask"; } }
|
||||
public override string MaskName { get { return "Evil Clown Mask"; } }
|
||||
|
||||
[Constructable]
|
||||
public ClownMask()
|
||||
: base( Utility.RandomBool() ? 0x4A8E : 0x4A8F )
|
||||
public PaintedEvilClownMask( )
|
||||
: base( 0x4a90 )
|
||||
{
|
||||
}
|
||||
|
||||
public ClownMask( Serial serial )
|
||||
public PaintedEvilClownMask( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,20 +1,19 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Items
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
public class DaemonMask : Item
|
||||
public class PaintedDaemonMask : BasePaintedMask
|
||||
{
|
||||
public override string DefaultName { get { return "Daemon Mask"; } }
|
||||
public override string MaskName { get { return "Daemon Mask"; } }
|
||||
|
||||
[Constructable]
|
||||
public DaemonMask()
|
||||
: base( Utility.RandomBool() ? 0x4A92: 0x4A93 )
|
||||
public PaintedDaemonMask()
|
||||
: base( 0x4a92 )
|
||||
{
|
||||
}
|
||||
|
||||
public DaemonMask( Serial serial )
|
||||
public PaintedDaemonMask( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
|
@ -34,3 +33,4 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,19 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Items
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
public class PlagueMask : Lantern
|
||||
public class PaintedPlagueMask : BasePaintedMask
|
||||
{
|
||||
public override string DefaultName { get { return "Plague Mask"; } }
|
||||
public override string MaskName { get { return "Plague Mask"; } }
|
||||
|
||||
[Constructable]
|
||||
public PlagueMask()
|
||||
: base( Utility.RandomBool() ? 0x4A8E : 0x4A8F )
|
||||
public PaintedPlagueMask()
|
||||
: base( 0x4A8E )
|
||||
{
|
||||
}
|
||||
|
||||
public PlagueMask( Serial serial )
|
||||
public PaintedPlagueMask( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
|
|
|||
35
Scripts/Holiday Stuff/Halloween/2012/Items/EvilJesterMask.cs
Normal file
35
Scripts/Holiday Stuff/Halloween/2012/Items/EvilJesterMask.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
public class PaintedEvilJesterMask : BasePaintedMask
|
||||
{
|
||||
public override string MaskName { get { return "Evil Jester Mask"; } }
|
||||
|
||||
[Constructable]
|
||||
public PaintedEvilJesterMask()
|
||||
: base( 0x4BA5 )
|
||||
{
|
||||
}
|
||||
|
||||
public PaintedEvilJesterMask( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( ( int )0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
35
Scripts/Holiday Stuff/Halloween/2012/Items/PorcelainMask.cs
Normal file
35
Scripts/Holiday Stuff/Halloween/2012/Items/PorcelainMask.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
public class PaintedPorcelainMask : BasePaintedMask
|
||||
{
|
||||
public override string MaskName { get { return "Porcelain Mask"; } }
|
||||
|
||||
[Constructable]
|
||||
public PaintedPorcelainMask()
|
||||
: base( 0x4BA7 )
|
||||
{
|
||||
}
|
||||
|
||||
public PaintedPorcelainMask( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( ( int )1 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue