- Treballant en les vides...

This commit is contained in:
2024-07-03 13:58:26 +02:00
parent 8be12f5ec0
commit 434014d708
2 changed files with 15 additions and 0 deletions

View File

@@ -1245,6 +1245,7 @@ namespace actor
namespace hero
{
int lives = 8;
int boost_jumps = 0;
int boost_steps = 0;
int boost_god = 0;
@@ -1255,11 +1256,22 @@ namespace actor
void init()
{
boost_jumps = boost_steps = boost_god = 0;
lives = 8;
skills = SKILL_NONE;
parts = PART_NONE;
for (int i=0; i<100; ++i) boosters_collected[i] = false;
}
int getLives()
{
return lives;
}
void setLives(int value)
{
lives = value;
}
const int getBoosterFromString(char *booster)
{
static const char *boostset_name[3] = {"RUN", "GOD", "JUMP"};