Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Task now uses move to move lumber from inventory to the world.

  • Loading branch information...
commit 238a886bd087fd7235df17b2b4ecc6bfd5bc9318 1 parent fffd2f3
anthonypesce authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 rulesets/mason/world/tasks/Pioneeringconstruction.py
6 rulesets/mason/world/tasks/Pioneeringconstruction.py
View
@@ -65,17 +65,15 @@ def tick_operation(self, op):
return
chunk_loc = Location(self.character.location.parent)
- chunk_loc.velocity = Vector3D()
chunk_loc.coordinates = self.pos
- chunk_loc.orientation=Quaternion([0,0,0,0])
count = lcount
res=Oplist()
#loops through raw_materials and attempts to place 3 lumber in inventory infront of user
while (count > 0) :
tar = raw_materials.pop()
- move=Operation("move", Entity(tar.id,location=chunk_loc), to=self.target())
- print " ID "+tar.id+"!"
+ move=Operation("move", Entity(tar.id,location=chunk_loc), to=tar)
+ #print " ID "+tar.id+"!"
res.append(move)
count = count - 1
Please sign in to comment.
Something went wrong with that request. Please try again.