Zerobot Veggies

From WikiManual
Jump to: navigation, search

'Feeder/Repro'er Veggie, both feeds and reproduces animals
cond
start
' veggie sends out either free food shot or causes bot to reproduce
-2 302 1 rnd rnd rnd rnd rnd rnd mult add .shoot store
' nrg veggie is feeding bot, or percentage of nrg for bot to split with offspring
50 .shootval store
' randomized turning to distribute food fairly
314 rnd .aimdx store
stop

'Feeder Veggie, Energy Only
cond
start
' veggie sends out either free food shot or causes bot to reproduce
-2 .shoot store
' nrg veggie is feeding bot, or percentage of nrg for bot to split with offspring
50 .shootval store
' randomized turning to distribute food fairly
314 rnd .aimdx store
stop