Renames equiped to equipped. (#1)
This commit is contained in:
parent
a21a48d1a2
commit
bb8f09752f
15 changed files with 32 additions and 32 deletions
|
|
@ -184,7 +184,7 @@ namespace Server
|
|||
/// </summary>
|
||||
Update = 0x00000001,
|
||||
/// <summary>
|
||||
/// Resend the item only if it is equiped.
|
||||
/// Resend the item only if it is equipped.
|
||||
/// </summary>
|
||||
EquipOnly = 0x00000002,
|
||||
/// <summary>
|
||||
|
|
@ -203,9 +203,9 @@ namespace Server
|
|||
/// </summary>
|
||||
MoveToCorpse,
|
||||
/// <summary>
|
||||
/// The item should remain equiped.
|
||||
/// The item should remain equipped.
|
||||
/// </summary>
|
||||
RemainEquiped,
|
||||
RemainEquipped,
|
||||
/// <summary>
|
||||
/// The item should be placed into the owners backpack.
|
||||
/// </summary>
|
||||
|
|
@ -1188,22 +1188,22 @@ namespace Server
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overridable. Method checked to see if this item may be equiped while casting a spell. By default, this returns false. It is overriden on spellbook and spell channeling weapons or shields.
|
||||
/// Overridable. Method checked to see if this item may be equipped while casting a spell. By default, this returns false. It is overriden on spellbook and spell channeling weapons or shields.
|
||||
/// </summary>
|
||||
/// <returns>True if it may, false if not.</returns>
|
||||
/// <example>
|
||||
/// <code>
|
||||
/// public override bool AllowEquipedCast( Mobile from )
|
||||
/// public override bool AllowEquippedCast( Mobile from )
|
||||
/// {
|
||||
/// if ( from.Int >= 100 )
|
||||
/// return true;
|
||||
///
|
||||
/// return base.AllowEquipedCast( from );
|
||||
/// return base.AllowEquippedCast( from );
|
||||
/// }</code>
|
||||
///
|
||||
/// When placed in an Item script, the item may be cast when equiped if the <paramref name="from" /> has 100 or more intelligence. Otherwise, it will drop to their backpack.
|
||||
/// When placed in an Item script, the item may be cast when equipped if the <paramref name="from" /> has 100 or more intelligence. Otherwise, it will drop to their backpack.
|
||||
/// </example>
|
||||
public virtual bool AllowEquipedCast( Mobile from )
|
||||
public virtual bool AllowEquippedCast( Mobile from )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -1242,7 +1242,7 @@ namespace Server
|
|||
public virtual DeathMoveResult OnParentDeath( Mobile parent )
|
||||
{
|
||||
if ( !Movable )
|
||||
return DeathMoveResult.RemainEquiped;
|
||||
return DeathMoveResult.RemainEquipped;
|
||||
else if ( parent.KeepsItemsOnDeath )
|
||||
return DeathMoveResult.MoveToBackpack;
|
||||
else if ( CheckBlessed( parent ) )
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ namespace Server.Items
|
|||
|
||||
public override DeathMoveResult OnParentDeath( Mobile parent )
|
||||
{
|
||||
return DeathMoveResult.RemainEquiped;
|
||||
return DeathMoveResult.RemainEquipped;
|
||||
}
|
||||
|
||||
public BankBox( Mobile owner ) : base( 0xE7C )
|
||||
|
|
|
|||
|
|
@ -73,12 +73,12 @@ namespace Server
|
|||
}
|
||||
}
|
||||
|
||||
public class EquipedSkillMod : SkillMod
|
||||
public class EquippedSkillMod : SkillMod
|
||||
{
|
||||
private Item m_Item;
|
||||
private Mobile m_Mobile;
|
||||
|
||||
public EquipedSkillMod( SkillName skill, bool relative, double value, Item item, Mobile mobile )
|
||||
public EquippedSkillMod( SkillName skill, bool relative, double value, Item item, Mobile mobile )
|
||||
: base( skill, relative, value )
|
||||
{
|
||||
m_Item = item;
|
||||
|
|
@ -497,7 +497,7 @@ namespace Server
|
|||
public delegate bool AllowBeneficialHandler( Mobile from, Mobile target );
|
||||
public delegate bool AllowHarmfulHandler( Mobile from, Mobile target );
|
||||
|
||||
public delegate Container CreateCorpseHandler( Mobile from, HairInfo hair, FacialHairInfo facialhair, List<Item> initialContent, List<Item> equipedItems );
|
||||
public delegate Container CreateCorpseHandler( Mobile from, HairInfo hair, FacialHairInfo facialhair, List<Item> initialContent, List<Item> equippedItems );
|
||||
|
||||
public delegate int AOSStatusHandler( Mobile from, int index );
|
||||
|
||||
|
|
@ -1900,7 +1900,7 @@ namespace Server
|
|||
|
||||
public virtual void ClearHand( Item item )
|
||||
{
|
||||
if( item != null && item.Movable && !item.AllowEquipedCast( this ) )
|
||||
if( item != null && item.Movable && !item.AllowEquippedCast( this ) )
|
||||
{
|
||||
Container pack = this.Backpack;
|
||||
|
||||
|
|
@ -6101,7 +6101,7 @@ namespace Server
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overridable. Virtual event invoked when <paramref name="item" /> is <see cref="AddItem">added</see> from the Mobile, such as when it is equiped.
|
||||
/// Overridable. Virtual event invoked when <paramref name="item" /> is <see cref="AddItem">added</see> from the Mobile, such as when it is equipped.
|
||||
/// <seealso cref="Items" />
|
||||
/// <seealso cref="OnItemRemoved" />
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue