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:
parent
20ae1b3989
commit
1030bb7675
14 changed files with 1043 additions and 735 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue