Upgrades spawners to have parameters/properties and optimized timers (#6)

Upgrades spawners to have:
- [X] Parameter support
- [X] Property support
- [X] Optimized timers
- [X] Support for Proximity Spawners
- [X] Probabilities
This commit is contained in:
Kamron Batman 2018-02-20 22:33:25 -08:00 • committed by GitHub
parent 20ae1b3989
commit 1030bb7675
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1043 additions and 735 deletions

View file

@ -454,7 +454,7 @@ namespace Server.Commands
int indexOf = m_Params[i].IndexOf( '=' );
if ( indexOf >= 0 )
sp.SpawnNames.Add( m_Params[i].Substring( ++indexOf ) );
sp.AddEntry( m_Params[i].Substring( ++indexOf ), 100, 1 );
}
else if ( m_Params[i].StartsWith( "MinDelay" ) )
{
@ -482,7 +482,11 @@ namespace Server.Commands
int indexOf = m_Params[i].IndexOf( '=' );
if ( indexOf >= 0 )
{
sp.Count = Utility.ToInt32( m_Params[i].Substring( ++indexOf ) );
for ( int se = 0;se < sp.Entries.Count; se++ )
sp.Entries[se].SpawnedMaxCount = sp.Count;
}
}
else if ( m_Params[i].StartsWith( "Team" ) )
{