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

@ -112,7 +112,7 @@ namespace Server.Regions
public override ISpawnable Spawn( SpawnEntry entry )
{
BaseRegion region = entry.Region;
Region region = entry.Region;
Map map = region.Map;
Point3D loc = entry.RandomSpawnLocation( this.Height, this.Land, this.Water );
@ -184,6 +184,7 @@ namespace Server.Regions
if ( creature != null )
{
creature.Home = entry.HomeLocation;
creature.HomeMap = map;
creature.RangeHome = entry.HomeRange;
}
@ -406,4 +407,4 @@ namespace Server.Regions
return false;
}
}
}
}