Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -3,51 +3,51 @@ using Server.Mobiles;
|
|||
|
||||
namespace Server.Gumps
|
||||
{
|
||||
public class ConfirmBreakCrystalGump : BaseConfirmGump
|
||||
{
|
||||
public override int LabelNumber => 1075084; // This statuette will be destroyed when its trapped creature is summoned. The creature will be bonded to you but will disappear if released. <br><br>Do you wish to proceed?
|
||||
public class ConfirmBreakCrystalGump : BaseConfirmGump
|
||||
{
|
||||
private BaseImprisonedMobile m_Item;
|
||||
|
||||
private BaseImprisonedMobile m_Item;
|
||||
public ConfirmBreakCrystalGump(BaseImprisonedMobile item)
|
||||
{
|
||||
m_Item = item;
|
||||
}
|
||||
|
||||
public ConfirmBreakCrystalGump( BaseImprisonedMobile item )
|
||||
{
|
||||
m_Item = item;
|
||||
}
|
||||
public override int LabelNumber =>
|
||||
1075084; // This statuette will be destroyed when its trapped creature is summoned. The creature will be bonded to you but will disappear if released. <br><br>Do you wish to proceed?
|
||||
|
||||
public override void Confirm( Mobile from )
|
||||
{
|
||||
if ( m_Item == null || m_Item.Deleted )
|
||||
return;
|
||||
public override void Confirm(Mobile from)
|
||||
{
|
||||
if (m_Item == null || m_Item.Deleted)
|
||||
return;
|
||||
|
||||
BaseCreature summon = m_Item.Summon;
|
||||
BaseCreature summon = m_Item.Summon;
|
||||
|
||||
if ( summon != null )
|
||||
{
|
||||
if ( !summon.SetControlMaster( from ) )
|
||||
{
|
||||
summon.Delete();
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendLocalizedMessage( 1049666 ); // Your pet has bonded with you!
|
||||
if (summon != null)
|
||||
{
|
||||
if (!summon.SetControlMaster(from))
|
||||
{
|
||||
summon.Delete();
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendLocalizedMessage(1049666); // Your pet has bonded with you!
|
||||
|
||||
summon.MoveToWorld( from.Location, from.Map );
|
||||
summon.IsBonded = true;
|
||||
summon.MoveToWorld(from.Location, from.Map);
|
||||
summon.IsBonded = true;
|
||||
|
||||
summon.Skills.Wrestling.Base = 100;
|
||||
summon.Skills.Tactics.Base = 100;
|
||||
summon.Skills.MagicResist.Base = 100;
|
||||
summon.Skills.Anatomy.Base = 100;
|
||||
summon.Skills.Wrestling.Base = 100;
|
||||
summon.Skills.Tactics.Base = 100;
|
||||
summon.Skills.MagicResist.Base = 100;
|
||||
summon.Skills.Anatomy.Base = 100;
|
||||
|
||||
Effects.PlaySound( summon.Location, summon.Map, summon.BaseSoundID );
|
||||
Effects.SendLocationParticles( EffectItem.Create( summon.Location, summon.Map, EffectItem.DefaultDuration ), 0x3728, 1, 10, 0x26B6 );
|
||||
Effects.PlaySound(summon.Location, summon.Map, summon.BaseSoundID);
|
||||
Effects.SendLocationParticles(EffectItem.Create(summon.Location, summon.Map, EffectItem.DefaultDuration),
|
||||
0x3728, 1, 10, 0x26B6);
|
||||
|
||||
m_Item.Release( from, summon );
|
||||
m_Item.Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
m_Item.Release(from, summon);
|
||||
m_Item.Delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue