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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ namespace Server.Regions
|
|||
|
||||
public int ID{ get{ return m_ID; } }
|
||||
public BaseRegion Region{ get{ return m_Region; } }
|
||||
Region ISpawner.Region{ get{ return m_Region; } }
|
||||
public Point3D HomeLocation{ get{ return m_Home; } }
|
||||
public int HomeRange{ get{ return m_Range; } }
|
||||
public Direction Direction{ get{ return m_Direction; } }
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ using Server;
|
|||
|
||||
namespace Server.Regions
|
||||
{
|
||||
[TypeAlias( "Server.Regions.SpawnPersistance" )]
|
||||
public class SpawnPersistence : Item
|
||||
{
|
||||
private static SpawnPersistence m_Instance;
|
||||
|
|
@ -66,4 +67,4 @@ namespace Server.Regions
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue