- Font definitiva, amb stretch
- Els boosters ja son de un us nomes - Contadors de boosters amb font definitiva i icona furtada del Batman -
This commit is contained in:
@@ -433,7 +433,7 @@ namespace actor
|
||||
{
|
||||
if (act->name[0]=='B') // Es un booster
|
||||
{
|
||||
hero::collectBooster(act->name[1]-48);
|
||||
hero::collectBooster(act->name[1]-48, (act->name[3]-48)*10+(act->name[4]-48));
|
||||
actor::remove(act);
|
||||
}
|
||||
}
|
||||
@@ -1242,9 +1242,19 @@ namespace actor
|
||||
int boost_god = 0;
|
||||
int skills = SKILL_NONE;
|
||||
int parts = PART_NONE;
|
||||
bool boosters_collected[100];
|
||||
|
||||
void collectBooster(int booster)
|
||||
void init()
|
||||
{
|
||||
boost_jumps = boost_steps = boost_god = 0;
|
||||
skills = SKILL_NONE;
|
||||
parts = PART_NONE;
|
||||
for (int i=0; i<100; ++i) boosters_collected[i] = false;
|
||||
}
|
||||
|
||||
void collectBooster(int booster, int id)
|
||||
{
|
||||
boosters_collected[id] = true;
|
||||
switch (booster)
|
||||
{
|
||||
case BOOST_GOD: boost_god = 99*2; break;
|
||||
@@ -1253,6 +1263,11 @@ namespace actor
|
||||
}
|
||||
}
|
||||
|
||||
bool wasBoosterCollected(int id)
|
||||
{
|
||||
return boosters_collected[id];
|
||||
}
|
||||
|
||||
int getBoostGod()
|
||||
{
|
||||
return boost_god;
|
||||
|
||||
Reference in New Issue
Block a user