to go
4 M' @/ H1 E! h" i prices
' l1 R4 Y5 R0 J7 b/ O, y' N enlarge-market9 R& a. [8 ~% C3 A5 ^; R! T
supervision
% l! }* A( p% }* r( i* ^ move-turtles3 |" J7 g# f& u. Y0 D
new-producer. X1 x0 X, l- @& m/ n
check-death _! K9 ~& n' u0 Z
tick
6 A+ I3 V0 T! r" C+ i3 I do-plots* g3 r( K5 `+ k( h1 k& j" M0 ~1 b
end" \* S B& M; h, r0 ^
to move-turtles- E+ H( e' L9 R1 X% e) ?
pcs[" R( a: W# }7 |2 s2 X% x
ifelse counter > 0
s0 e) `; h* p: |4 V1 C [ set counter counter - 1
! I0 u% b# R4 X. h/ E9 L set money money - cost1]
& K0 e$ L x$ D; U [ right random 360
3 [7 [- {2 Y, \/ t' q" T repeat 1 [rt random 3605 g/ {+ t$ |8 c
forward 1 v4 y5 z b; @/ ~% r) A
if pcolor = grey [
/ N2 v* z: k4 `6 o& v ? set pcolor yellow - 2
, G+ F8 Z9 m6 q. _, ~ set quantity(quantity + 1)]]
6 r: h$ l e7 U3 @; ^* ^8 d set money(1 - exposure-rate / 100)*(money + jiage * quantity)) Q3 n$ C2 b r2 [8 A$ l2 a
set money money - cost1]- c) E" ^# I4 `- y$ o' E
]( w w6 m( P; F" K$ v' U) C$ @' o" p
ask pes
: f b$ Q* O; E7 A& Q [right random 360
- D/ k4 E) M+ K# C1 }2 A, @5 h forward 1! F" p9 ?& q8 r# E% b
set money money + jiage * quantity
0 q7 |. o' |; i" u set money money - cost2]
# m @* I [) S) J6 G- oend |