       if(e.sensed_type === 2) { ctx.strokeStyle = "rgb(150,255,150)"; } // poison
          ctx.beginPath();
          ctx.moveTo(a.op.x, a.op.y);
          ctx.lineTo(a.op.x + sr * Math.sin(a.oangle + e.angle),
                     a.op.y + sr * Math.cos(a.oangle + e.angle));
          ctx.stroke();
        }
      }
      
      // draw items
      ctx.strokeStyle = "rgb(0,0,0)";
      if(!agentView) {
        for(var i=0,n=w.items.length;i<n;i++) {
          var it = w.items[i];
          if(it.type ===