Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mobiles cluster around civ home.

  • Loading branch information...
commit 067722b21b0f74ebad47bf10703903ae6d833693 1 parent 6f8cd9a
Luke Sheridan authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  src/main/scala/Mobile.scala
  2. +1 −1  src/main/scala/World.scala
2  src/main/scala/Mobile.scala
View
@@ -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))
2  src/main/scala/World.scala
View
@@ -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 = {
Please sign in to comment.
Something went wrong with that request. Please try again.