mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
Fix quest issues, and metaprority not being priority.
This commit is contained in:
parent
76f3d7d731
commit
c9c81d721e
5 changed files with 668 additions and 669 deletions
|
@ -40,7 +40,7 @@ namespace HISP.Game.Items
|
|||
|
||||
public static DroppedItem[] GetItemsAt(int x, int y)
|
||||
{
|
||||
|
||||
|
||||
DroppedItem[] droppedItems = droppedItemsList.ToArray();
|
||||
List<DroppedItem> items = new List<DroppedItem>();
|
||||
for(int i = 0; i < droppedItems.Length; i++)
|
||||
|
@ -64,7 +64,7 @@ namespace HISP.Game.Items
|
|||
public static void Update()
|
||||
{
|
||||
DespawnItems();
|
||||
GenerateItems();
|
||||
GenerateItems(false);
|
||||
}
|
||||
public static void RemoveDroppedItem(DroppedItem item)
|
||||
{
|
||||
|
@ -135,7 +135,7 @@ namespace HISP.Game.Items
|
|||
droppedItemsList.Add(droppedItem);
|
||||
Database.AddDroppedItem(droppedItem);
|
||||
}
|
||||
public static void GenerateItems()
|
||||
public static void GenerateItems(bool randomizeDespawnTime)
|
||||
{
|
||||
|
||||
Logger.InfoPrint("Generating items, (this may take awhile on a fresh database!)");
|
||||
|
@ -148,8 +148,9 @@ namespace HISP.Game.Items
|
|||
{
|
||||
|
||||
count++;
|
||||
|
||||
int despawnTimer = GameServer.RandomNumberGenerator.Next(900, 1500);
|
||||
int despawnTimer = 1500;
|
||||
if(randomizeDespawnTime)
|
||||
despawnTimer = GameServer.RandomNumberGenerator.Next(900, 1500);
|
||||
|
||||
if (item.SpawnParamaters.SpawnInZone != null)
|
||||
{
|
||||
|
@ -330,7 +331,7 @@ namespace HISP.Game.Items
|
|||
public static void Init()
|
||||
{
|
||||
ReadFromDatabase();
|
||||
GenerateItems();
|
||||
GenerateItems(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue