some stupidity fixes, some other stuffs
This commit is contained in:
parent
71e80d5949
commit
235ce238cd
9 changed files with 172 additions and 26 deletions
|
|
@ -20,11 +20,6 @@ namespace Server.Items
|
|||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
Fishing.System.BeginHarvesting( from, this );
|
||||
|
||||
Item item = from.FindItemOnLayer( Layer.OneHanded );
|
||||
|
||||
if( item != null )
|
||||
from.RemoveItem( item );
|
||||
}
|
||||
|
||||
public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list )
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ namespace Server.Items
|
|||
{
|
||||
public class SoulStone : Item
|
||||
{
|
||||
public override int LabelNumber { get { return 1030899; } } // soulstone
|
||||
|
||||
private int m_ActiveItemID;
|
||||
private int m_InactiveItemID;
|
||||
|
||||
|
|
@ -874,4 +876,86 @@ namespace Server.Items
|
|||
|
||||
public bool ShowUsesRemaining{ get{ return true; } set{} }
|
||||
}
|
||||
|
||||
[Flipable]
|
||||
public class BlueSoulstone : SoulStone
|
||||
{
|
||||
[Constructable]
|
||||
public BlueSoulstone()
|
||||
: this( null )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public BlueSoulstone( string account )
|
||||
: base( account, 0x2ADC, 0x2ADD )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public BlueSoulstone( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public void Flip()
|
||||
{
|
||||
switch( ItemID )
|
||||
{
|
||||
case 0x2ADC: ItemID = 0x2AEC; break;
|
||||
case 0x2ADD: ItemID = 0x2AED; break;
|
||||
case 0x2AEC: ItemID = 0x2ADC; break;
|
||||
case 0x2AED: ItemID = 0x2ADD; break;
|
||||
}
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
public class RedSoulstone : SoulStone
|
||||
{
|
||||
[Constructable]
|
||||
public RedSoulstone()
|
||||
: this( null )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public RedSoulstone( string account )
|
||||
: base( account, 0x32F3, 0x32F4 )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public RedSoulstone( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue