Reduced amount of food needed for queen ant to grow

This commit is contained in:
Rob Pearce 2008-12-25 22:46:08 +00:00
parent 58463d1535
commit 45bf5225ea
1 changed files with 9 additions and 1 deletions

10
rc.c
View File

@ -2291,6 +2291,7 @@ void checkcollide(sprite_t *s) {
}
} else if ((s->id == P_ANT1) || (s->id == P_ANT2) || (s->id == P_ANT3)) {
int isfr;
int goal = 5;
// eat fruits
isfr = isfruit(s2->id);
if (isfr) {
@ -2312,7 +2313,14 @@ void checkcollide(sprite_t *s) {
break;
}
s->timer1 += fruitamt;
if (s->timer1 >= 5) {
// huw much fruit is needed to grow?
if (s->id == P_ANT3) {
goal = 1;
} else {
goal = 5;
}
if (s->timer1 >= goal) {
s->timer1 = 0;
playfx(FX_GROWL);
// grow