Kenko's Serado fix. (http://runuo.com/forums/showthread.php?t=75889)
Sotho Tal Ker's BaseHat treasure fix (http://runuo.com/forums/showthread.php?t=76341). Thanks to Carmina for submitting the patches.
This commit is contained in:
parent
a2be513b24
commit
f74af73c5a
4 changed files with 55 additions and 7 deletions
|
|
@ -153,7 +153,23 @@ namespace Server.Items
|
|||
|
||||
DropItem( item );
|
||||
}
|
||||
else if ( item is BaseJewel )
|
||||
else if( item is BaseHat )
|
||||
{
|
||||
BaseHat hat = (BaseHat)item;
|
||||
|
||||
if( Core.AOS )
|
||||
{
|
||||
int attributeCount;
|
||||
int min, max;
|
||||
|
||||
GetRandomAOSStats( out attributeCount, out min, out max );
|
||||
|
||||
BaseRunicTool.ApplyAttributesTo( hat, attributeCount, min, max );
|
||||
}
|
||||
|
||||
DropItem( item );
|
||||
}
|
||||
else if( item is BaseJewel )
|
||||
{
|
||||
int attributeCount;
|
||||
int min, max;
|
||||
|
|
@ -204,4 +220,4 @@ namespace Server.Items
|
|||
m_Name = Utility.Intern( reader.ReadString() );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -190,7 +190,23 @@ namespace Server.Items
|
|||
|
||||
cont.DropItem( item );
|
||||
}
|
||||
else if ( item is BaseJewel )
|
||||
else if( item is BaseHat )
|
||||
{
|
||||
BaseHat hat = (BaseHat)item;
|
||||
|
||||
if( Core.AOS )
|
||||
{
|
||||
int attributeCount;
|
||||
int min, max;
|
||||
|
||||
GetRandomAOSStats( out attributeCount, out min, out max );
|
||||
|
||||
BaseRunicTool.ApplyAttributesTo( hat, attributeCount, min, max );
|
||||
}
|
||||
|
||||
cont.DropItem( item );
|
||||
}
|
||||
else if( item is BaseJewel )
|
||||
{
|
||||
int attributeCount;
|
||||
int min, max;
|
||||
|
|
@ -505,4 +521,4 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue