BOD book item counts corrected
http://www.uodemise.com/forum/showthread.php?t=121015 Discordance cool down timer http://www.uodemise.com/forum/showthread.php?t=122146 Summoned Hoarde minions dont behave correctly http://www.uodemise.com/forum/showthread.php?t=149555 Fame and karma rewards should be 30% higher in fel http://www.uodemise.com/forum/showthread.php?t=146893 Incorrect skill requirement in tailoring http://www.uodemise.com/forum/showthread.php?t=149095 Mined resources should stack http://www.uodemise.com/forum/showthread.php?t=147055 Runebook behavior http://www.uodemise.com/forum/showthread.php?t=146030 Correct allowed guild name length http://www.uodemise.com/forum/showthread.php?t=148603 Corrections to wool/sheep http://www.uodemise.com/forum/showthread.php?t=150988
This commit is contained in:
parent
4dbb400ce3
commit
4dec86b91d
15 changed files with 252 additions and 61 deletions
|
|
@ -304,8 +304,7 @@ namespace Server.Multis
|
|||
}
|
||||
|
||||
|
||||
if ( m_LockDowns != null )
|
||||
fromLockdowns += m_LockDowns.Count;
|
||||
fromLockdowns += GetLockdowns();
|
||||
|
||||
if ( !NewVendorSystem )
|
||||
{
|
||||
|
|
@ -839,8 +838,7 @@ namespace Server.Multis
|
|||
{
|
||||
int v = 0;
|
||||
|
||||
if ( m_LockDowns != null )
|
||||
v += m_LockDowns.Count;
|
||||
v += GetLockdowns();
|
||||
|
||||
if ( m_Secures != null )
|
||||
v += m_Secures.Count;
|
||||
|
|
@ -2773,14 +2771,36 @@ namespace Server.Multis
|
|||
public ArrayList Bans{ get{ return m_Bans; } set{ m_Bans = value; } }
|
||||
public ArrayList Doors{ get{ return m_Doors; } set{ m_Doors = value; } }
|
||||
|
||||
public int GetLockdowns()
|
||||
{
|
||||
int count = 0;
|
||||
|
||||
if ( m_LockDowns != null )
|
||||
{
|
||||
for ( int i = 0; i < m_LockDowns.Count; ++i )
|
||||
{
|
||||
if ( m_LockDowns[i] is Item )
|
||||
{
|
||||
Item item = (Item)m_LockDowns[i];
|
||||
|
||||
if ( !(item is Container) )
|
||||
count += item.TotalItems;
|
||||
}
|
||||
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
public int LockDownCount
|
||||
{
|
||||
get
|
||||
{
|
||||
int count = 0;
|
||||
|
||||
if ( m_LockDowns != null )
|
||||
count += m_LockDowns.Count;
|
||||
count += GetLockdowns();
|
||||
|
||||
if ( m_Secures != null )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue