Permalink
Browse files

Mobiles cluster around civ home.

  • Loading branch information...
1 parent 6f8cd9a commit 067722b21b0f74ebad47bf10703903ae6d833693 @windmillium committed Dec 29, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/main/scala/Mobile.scala
  2. +1 −1 src/main/scala/World.scala
@@ -140,7 +140,7 @@ class Mobile(species:MobileSpecies) extends WithID[Mobile] with Attackable {
val rnd = new scala.util.Random
val x = rnd.nextInt(10) - 5
val y = rnd.nextInt(10) - 5
- val newCoord = block.coord+(x,y,0)
+ val newCoord = civilization.home.coord+(x,y,0)
val tBlock = block.blockAt(newCoord)
if(tBlock != None && this.job == None)
this.task = Some(new MoveToTask(this,tBlock.get,0))
@@ -47,7 +47,7 @@ class World( val height: Int, val depth: Int = 1) {
val wilderness = new Civilization("Wilderness")
loadObjectTemplates
- createWorld(20,40,1)
+ createWorld(40,20,1)
seedPlantsAndAnimals
def startWeb = {

0 comments on commit 067722b

Please sign in to comment.