to go9 w! d- G/ ]: r p, r$ q1 J' n
prices
4 M" |+ v& r8 s/ L9 b, P6 e enlarge-market
& a: D$ j: x3 j; v4 V* a supervision. @4 V3 k$ [ P9 C
move-turtles* D# w3 c5 Y/ t- c7 q4 J
new-producer
$ I5 ]& G U9 B6 y0 V check-death
- H0 G1 C5 I3 H1 Y0 f tick
" Y- O( R3 X+ Z+ W do-plots
3 {, F% Q7 j9 H1 lend
7 d$ G7 Z6 _$ U( {4 c6 n8 W% o4 ?to move-turtles3 s* D+ j- g( L
pcs[7 Y! x0 I( L$ u/ [2 t1 ? X
ifelse counter > 0
+ S; h' N/ D' c+ P7 O! Y [ set counter counter - 16 {/ G9 G$ ~9 G' P& S, E
set money money - cost1]/ F; V& v: B5 _: {; g8 |
[ right random 360
* g! K, C* u2 x/ O repeat 1 [rt random 3606 W5 o) |/ |: f- Y3 B* c
forward 16 [- F7 W, y, b2 h- w9 d4 v
if pcolor = grey [
" `. I X& f/ d. [3 \! S- [; X6 a set pcolor yellow - 24 M$ u' s3 Y" w! P) M# T! t
set quantity(quantity + 1)]]
, \5 F4 E* ], B1 S set money(1 - exposure-rate / 100)*(money + jiage * quantity)
/ {, B( j# ] x \ I set money money - cost1]
9 U' y. o6 n" J; o ]
: ^* Q' b1 S& t3 O5 g' f ask pes
- M/ @# Y+ N; _8 X9 d [right random 360
# T) e' ]8 t, }- I5 e9 p; D. z) v) \ forward 1" D$ f3 a2 J+ j1 S
set money money + jiage * quantity. o) ]6 t7 W& p& b8 b& u1 _) y
set money money - cost2]8 i& g1 }- s6 w5 C: N
end |