to go* M5 J# _) x) w' f$ ?- U
prices
" l- D6 w, X5 z: z3 \6 h! q enlarge-market+ b& s3 M# A1 r1 ~3 Y, l; w
supervision2 Y# `8 O, k' e# h1 G5 V# Z
move-turtles- [5 M+ T9 O% x8 q, u! Q! c
new-producer1 D2 P3 l% \/ h
check-death
: b: L' L( a. W/ s6 R( O8 X tick5 F4 K( I9 A+ s: J' B# h
do-plots
: y7 t, k% n$ bend5 U7 e U( t. D; N( L* L/ C
to move-turtles
$ l ^3 X' K/ s( E5 Q: ]' A pcs[3 p" @: h6 t1 R4 g5 o4 S
ifelse counter > 0
8 v1 T% T4 Y7 x1 y* z: V [ set counter counter - 1
3 c8 W2 \' Z ]" V5 i set money money - cost1]7 s: |3 u& w1 {
[ right random 360$ c% y8 I, [- C# S* {% w$ E' ~
repeat 1 [rt random 3602 N Z, D/ A% N
forward 1
, s( {$ t5 i# v" y5 T, O) K if pcolor = grey [
5 y% J7 R( ^( h set pcolor yellow - 2
- U+ x9 \% d% K; z" p: c K set quantity(quantity + 1)]]
' s4 }) Y1 W+ r& J5 Q" A set money(1 - exposure-rate / 100)*(money + jiage * quantity)
% Q; G3 [* |& k w8 o9 U set money money - cost1]
- L* e! e, T3 a ], H! U. a. t* H; \' V: N
ask pes% H( P: ^4 @8 V+ s0 w1 w# n
[right random 360
% P" G( {( s+ b, d forward 1
" ~9 B+ I0 x9 u0 d( Z; l/ t" N set money money + jiage * quantity
9 i/ ~8 w* G" w R0 c9 i( | set money money - cost2]
# L) e% ^5 }4 _! N8 Q* I8 o2 Tend |