to go
; @4 y1 V) Z% q' ]/ l4 Y+ i4 ] prices
3 p. P# o% k$ W enlarge-market; ?& y* n% }/ O* r* o$ A) T
supervision
( u% W0 p) Y |; Z move-turtles$ Z) n. \, g5 f" E/ L) W
new-producer
0 I0 m2 J, z4 u check-death
% C# ~2 X f- s tick: l' S1 W5 f3 Z/ ^
do-plots' U3 H2 K. ?* p# B# m8 n
end
$ |' T P: {; c4 Pto move-turtles# B! M p; S6 C: [7 I2 a% A
pcs[
$ t6 h; V# f/ B' ^9 t) I ifelse counter > 0' [* K4 X4 b3 J" S
[ set counter counter - 1
4 a+ {9 K) x$ d set money money - cost1]
% K* R! j& o B% j5 w* A' h [ right random 360; u1 c( L# E3 A, W- V9 d% r
repeat 1 [rt random 360
! ^. ~7 g! ], O2 X- @ forward 16 ]1 o4 V9 z% \3 l* ]
if pcolor = grey [ S: \, b/ p! V+ R
set pcolor yellow - 27 V s/ [9 ^* M6 Z8 e
set quantity(quantity + 1)]]3 |6 v0 ?5 y u" B' f3 I7 |
set money(1 - exposure-rate / 100)*(money + jiage * quantity)+ N U+ z& I2 E& e/ f* l5 Y
set money money - cost1]
u9 @3 E8 X# U. b ]( C. j# L Y* y/ e8 v- u; F
ask pes0 f, N6 n+ l: S6 y
[right random 360
" \" k: a6 D% w" X) O forward 11 a9 b6 S# L$ s" H& F$ V4 ]
set money money + jiage * quantity+ A5 Z8 x, s4 l2 G. C# {* m
set money money - cost2]' D5 }' @* L4 e4 o- ~
end |