From f9e3b0f2764118775215bd9e153e74fd14ad383c Mon Sep 17 00:00:00 2001 From: mmoriame Date: Wed, 17 Jul 2013 18:06:53 +0200 Subject: [PATCH] adding bee-keepers in centroid --- Source/main.nlogo | 4 ++-- Source/vmodel.nls | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Source/main.nlogo b/Source/main.nlogo index b520c8c..56d156b 100644 --- a/Source/main.nlogo +++ b/Source/main.nlogo @@ -234,7 +234,7 @@ PENS SLIDER 133 50 -171 +166 247 season-uncertainty season-uncertainty @@ -249,7 +249,7 @@ VERTICAL SLIDER 215 50 -253 +248 246 d-max d-max diff --git a/Source/vmodel.nls b/Source/vmodel.nls index 73055db..5374754 100644 --- a/Source/vmodel.nls +++ b/Source/vmodel.nls @@ -21,12 +21,10 @@ to setup-beekeepers [ let amount-of-bk file-read let location-bk file-read - show amount-of-bk create-beekeepers amount-of-bk [ set shape "person" set size 1 - show location-bk - move-to one-of patches with [ county-name = location-bk ] + move-to one-of centroids-on patches with [ county-name = location-bk ] if trace-on [ set color red pd ] ] ] file-close