- [FIX] [#2] Quan et donen una cat's life, ja no torna la música del joc
- [FIX] [#3] Quan entres a la habitació de la depuradora ... - [FIX] [#4] ficar anbernics recopilades en el game over i altres pantalles de resum - [FIX] [#5] que al acabar el joc la seuquencia acabe amb els stats, com el game over
This commit is contained in:
@@ -2072,7 +2072,7 @@ namespace actor
|
||||
if (complete)
|
||||
{
|
||||
stats::reset();
|
||||
lives = 8;
|
||||
lives = 1;
|
||||
skills = SKILL_NONE;
|
||||
if (prologo) skills &= SKILL_SHOES;
|
||||
for (int i=0;i<4;++i) prologo_objects[i] = PROLOGO_OBJECT_INITIAL;
|
||||
@@ -2085,6 +2085,7 @@ namespace actor
|
||||
brilli = draw::getSurface("objectes.gif");
|
||||
if ((config::getSoundMode() == SOUND_ALL))
|
||||
{
|
||||
if (walk_channel != -1) audio::stopChannel(walk_channel);
|
||||
walk_channel = audio::playSound("snd_walk.wav", SOUND_ALL, -1);
|
||||
audio::pauseChannel(walk_channel);
|
||||
}
|
||||
@@ -2230,6 +2231,8 @@ namespace actor
|
||||
|
||||
const int getSkillFromString(char *skill)
|
||||
{
|
||||
if ( (strcmp(skill, "ALL")==0) || (strcmp(skill, "SKILLS")==0) ) return SKILL_SHOES | SKILL_GLOVES | SKILL_PANTS | SKILL_BAG;
|
||||
|
||||
static const char *skillset_name[4] = {"SHOES", "GLOVES", "PANTS", "BAG"};
|
||||
for (int i = 0; i < 4; ++i)
|
||||
{
|
||||
@@ -2267,10 +2270,10 @@ namespace actor
|
||||
bool giveSkill(char *skill)
|
||||
{
|
||||
const int skill_number = getSkillFromString(skill);
|
||||
if (skill_number==SKILL_SHOES) modules::game::setMissatge(" JA TENS LES SABATES!- ARA JA POTS BOTAR!");
|
||||
else if (skill_number==SKILL_GLOVES) modules::game::setMissatge(" JA TENS ELS GUANTS!- ARA JA POTS ESPENTAR!");
|
||||
else if (skill_number==SKILL_PANTS) modules::game::setMissatge(" JA TENS ELS PANTALONS!- JA POTS AGAFAR COSES!");
|
||||
else if (skill_number==SKILL_BAG) modules::game::setMissatge(" JA TENS LA MOTXILLA!- A ARREPLEGAR PECES!");
|
||||
if (skill_number | SKILL_SHOES) modules::game::setMissatge(" JA TENS LES SABATES!- ARA JA POTS BOTAR!");
|
||||
else if (skill_number | SKILL_GLOVES) modules::game::setMissatge(" JA TENS ELS GUANTS!- ARA JA POTS ESPENTAR!");
|
||||
else if (skill_number | SKILL_PANTS) modules::game::setMissatge(" JA TENS ELS PANTALONS!- JA POTS AGAFAR COSES!");
|
||||
else if (skill_number | SKILL_BAG) modules::game::setMissatge(" JA TENS LA MOTXILLA!- A ARREPLEGAR PECES!");
|
||||
return giveSkill(skill_number);
|
||||
}
|
||||
|
||||
@@ -2297,6 +2300,8 @@ namespace actor
|
||||
|
||||
const int getPartFromString(char *part)
|
||||
{
|
||||
if ( (strcmp(part, "ALL")==0) || (strcmp(part, "PARTS")==0) ) return 0x3f;
|
||||
|
||||
static const char *partset_name[6] = {"FILTER", "PUMP", "TIMER", "SALT", "PIPE", "ELBOW"};
|
||||
for (int i = 0; i < 6; ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user