This commit is contained in:
mark 2009-09-06 02:06:07 +00:00
parent 4ee6ca5951
commit 06e5c8b732
70 changed files with 2798 additions and 286 deletions

View file

@ -122,6 +122,16 @@ namespace Server.SkillHandlers
return String.Format( "<div align=right>{0}%</div>", val );
}
#region Mondain's Legacy
private static string FormatDamage( int min, int max )
{
if ( min <= 0 || max <= 0 )
return "<div align=right>---</div>";
return String.Format( "<div align=right>{0}-{1}</div>", min, max );
}
#endregion
private const int LabelColor = 0x24E5;
public AnimalLoreGump( BaseCreature c ) : base( 250, 50 )
@ -255,6 +265,14 @@ namespace Server.SkillHandlers
AddHtmlLocalized( 153, 240, 160, 18, 1061650, LabelColor, false, false ); // Energy
AddHtml( 320, 240, 35, 18, FormatElement( c.EnergyDamage ), false, false );
#region Mondain's Legacy
if ( Core.ML )
{
AddHtmlLocalized( 153, 258, 160, 18, 1076750, LabelColor, false, false ); // Base Damage
AddHtml( 300, 258, 55, 18, FormatDamage( c.DamageMin, c.DamageMax ), false, false );
}
#endregion
AddButton( 340, 358, 5601, 5605, 0, GumpButtonType.Page, page + 1 );
AddButton( 317, 358, 5603, 5607, 0, GumpButtonType.Page, page - 1 );
}
@ -278,8 +296,18 @@ namespace Server.SkillHandlers
AddHtmlLocalized( 153, 222, 160, 18, 1044061, LabelColor, false, false ); // Anatomy
AddHtml( 320, 222, 35, 18, FormatSkill( c, SkillName.Anatomy ), false, false );
AddHtmlLocalized( 153, 240, 160, 18, 1044090, LabelColor, false, false ); // Poisoning
AddHtml( 320, 240, 35, 18, FormatSkill( c, SkillName.Poisoning ), false, false );
#region Mondain's Legacy
if ( c is CuSidhe )
{
AddHtmlLocalized( 153, 240, 160, 18, 1044077, LabelColor, false, false ); // Healing
AddHtml( 320, 240, 35, 18, FormatSkill( c, SkillName.Healing ), false, false );
}
else
{
AddHtmlLocalized( 153, 240, 160, 18, 1044090, LabelColor, false, false ); // Poisoning
AddHtml( 320, 240, 35, 18, FormatSkill( c, SkillName.Poisoning ), false, false );
}
#endregion
AddImage( 128, 260, 2086 );
AddHtmlLocalized( 147, 258, 160, 18, 3001032, 200, false, false ); // Lore & Knowledge

View file

@ -20,7 +20,7 @@ namespace Server.SkillHandlers
src.SendLocalizedMessage( 500819 );//Where will you search?
src.Target = new InternalTarget();
return TimeSpan.FromSeconds( 1.0 );
return TimeSpan.FromSeconds( 6.0 );
}
private class InternalTarget : Target

View file

@ -150,10 +150,10 @@ namespace Server.SkillHandlers
m_Thief.SendLocalizedMessage( 1010586 ); // YOU STOLE THE SIGIL!!! (woah, calm down now)
if ( sig.LastMonolith != null )
if ( sig.LastMonolith != null && sig.LastMonolith.Sigil != null ) {
sig.LastMonolith.Sigil = null;
sig.LastStolen = DateTime.Now;
sig.LastStolen = DateTime.Now;
}
return sig;
}