to go
* }1 E- Y9 a! ?8 A" X# [ prices
- E; t, M7 ?" V* I; n! g! H enlarge-market
9 N8 `. N0 r& r3 K9 H supervision
! p" v( _; c' \7 h* k move-turtles
5 F2 g1 B4 l1 k; a# J5 B1 q new-producer
) Y5 {# h: r1 V$ j% J' ^ check-death
|! B, S5 v- O, e tick! v% d$ H1 v; i+ H" K* r
do-plots4 ^5 a) U l# N- t- D3 G) J, f. O
end
( h9 T5 V$ k! ?) w4 kto move-turtles4 j/ T& ]8 L5 o+ K7 T& @
pcs[/ r3 n: {+ U) \
ifelse counter > 0
; D S) r# B8 a: T2 H9 z [ set counter counter - 1+ j8 n" B: t+ V7 F
set money money - cost1]
- D1 x. z9 u: ]+ L [ right random 360
2 Q1 n1 N' N1 B9 U# w2 Z; y repeat 1 [rt random 360
9 P" I: L( g P: [ forward 1
0 z2 M4 d, i8 s6 L if pcolor = grey [
~% w8 W* t$ _3 ]9 P( \) ^ set pcolor yellow - 2& G# M r1 e& |
set quantity(quantity + 1)]]
) t9 v* j0 p: a set money(1 - exposure-rate / 100)*(money + jiage * quantity)5 B3 r" x4 l. W1 V) L/ x. U
set money money - cost1]
! V, D( r1 U0 H3 f) Q: r! s+ ^ ]* s* Q% h2 m' k: H
ask pes5 j9 O3 R% a+ f; h c' `) e
[right random 3603 T& F4 |9 q: ?* S, P% c+ d) D
forward 1
( o# o0 h1 o w8 q9 W set money money + jiage * quantity
: @1 p# _) L8 h: a' M set money money - cost2]
$ ]$ g8 h, R9 Z' P; S, l7 wend |