| Code: |
while ( me.living )
var amt_bought := 0;
var amt_consumed := 0;
if ( me.money <= (life.cost_of_living + (life.cost_of_beer - 1)) && (amt_consumed >= amt_bought) )
amt_consumed := 0;
Code();
else
if ( amt_consumed < amt_bought )
amt_consumed := amt_consumed + ConsumeAlcohol(amt_bought);
endif
amt_bought := BuyAlcohol(me.money - life.cost_of_living);
amt_consumed := amt_consumed + ConsumeAlcohol(amt_bought);
if ( amt_consumed < me.alcohol_limit )
Code();
endif
endif
Sleep();
endwhile |