Full Version : Farmable Crops
xmlspawner >>XMLSpawner - Discussion >>Farmable Crops


<< Prev | Next >>

Haazen- 08-02-2006
In the FarmableCrops.cs, there is this code to remove the item from the spawner after it is deleted on a timer.
CODE
 public void Unlink()
 {
  SpawnEntry se = this.Spawner as SpawnEntry;

  if ( se != null )
  {
   this.Spawner.Remove( this );
   this.Spawner = null;
  }

 }


I see that XMLSpawner has SpawnEntry so am I safe to assume that this code will do what it is intended using XMLSpawners?

Thanks Again.

ArteGordon- 08-02-2006
That is actually used by the built in region spawning system under RunUO 2.0 and is not used by individual spawners.
I just recently noticed this and so I have to look it over to see whether support needs to be added to v3.14 but is not in yet.
Since xmlspawner basically takes care of all of that automatically under its current region spawning system, it is not clear that additional support needs to be added.