Permalink
Browse files

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

  • Loading branch information...
1 parent fffd2f3 commit 238a886bd087fd7235df17b2b4ecc6bfd5bc9318 @anthonypesce committed Jun 18, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 rulesets/mason/world/tasks/Pioneeringconstruction.py
@@ -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

0 comments on commit 238a886

Please sign in to comment.