to go+ Q* l0 _# B3 G7 ?% i3 b8 V
prices
+ W3 x; k5 d% w3 V& ?" ^ h enlarge-market
! l8 Z+ M0 h0 | supervision
( z0 U3 S' k+ `! q$ F; e @0 Y9 U move-turtles E% a( i6 l: m$ L
new-producer+ j$ X1 K0 e' U$ A7 D
check-death
1 Q! N. e: S2 x% V' |& s tick
' B# ~+ i/ S% G3 i1 I% X4 x; G do-plots6 q1 k) s7 O; o8 l2 a) R
end; B: T* K, [" g- S9 C
to move-turtles
; q$ ^' P X) w5 U pcs[
' b. C0 E( J8 a) r% { ifelse counter > 0; q* H8 y; t" g5 [* Q' s" I
[ set counter counter - 16 S3 \! A+ p- g" r6 ~& @
set money money - cost1]5 q: r/ G2 W" L
[ right random 3601 e* T0 A7 n+ B9 r0 ?' g2 ]
repeat 1 [rt random 360
" b! q) G) O6 j- n) F forward 1! Q% G8 a( {% L& z2 T$ S! a' R
if pcolor = grey [
% x/ ?; j* h. Q2 W2 {# M$ Z w( `+ q set pcolor yellow - 2- G, q. @( M/ f( V$ V. a8 _
set quantity(quantity + 1)]]4 J$ u# ~7 p Q; N
set money(1 - exposure-rate / 100)*(money + jiage * quantity)
; [# w7 y" P7 c+ s# c# H set money money - cost1]
# q& T( }) i& b3 @1 ~ ]
) T' R: r1 F/ _1 l" P$ s X! p ask pes
- }2 M' H2 a5 g) A' w, o* U [right random 3607 s, ^1 _8 P$ z9 O5 r
forward 1# F \$ A- ^, @: j, C
set money money + jiage * quantity
+ q, P- K, G! Q8 T! U, F8 q ] set money money - cost2]6 U0 T, ^3 I9 I
end |