Rogue preparation

This commit is contained in:
Linus Probert 2018-09-13 10:48:35 +02:00
parent 0ca70c7376
commit e293c21908
2 changed files with 5 additions and 3 deletions

View File

@ -72,8 +72,9 @@ pickup_dagger(Item *item, Player *player)
player->daggers += (Uint32) item->value;
mixer_play_effect(DAGGER_PICKUP);
if (item->value > 1)
gui_log("You collect %u daggers", (Uint32) item->value);
double count = player->class == ROGUE ? item->value * 2 : item->value;
if (count > 1)
gui_log("You collect %u daggers", (Uint32) count);
else
gui_log("You collect a dagger");
}

View File

@ -43,7 +43,7 @@
#define ENGINEER_STATS { 12, 12, 5, 7, 2, 2, 1, false, false }
#define MAGE_STATS { 12, 12, 5, 7, 1, 2, 1, false, false }
#define PALADIN_STATS { 12, 12, 8, 9, 3, 1, 1, false, false }
#define ROGUE_STATS { 12, 12, 5, 7, 1, 2, 1, false, false }
#define ROGUE_STATS { 9, 9, 4, 9, 4, 2, 1, false, false }
#define WARRIOR_STATS { 12, 12, 8, 9, 3, 1, 1, false, false }
void
@ -495,6 +495,7 @@ player_create(class_t class, Camera *cam)
player->skills[1] = NULL;
player->skills[2] = NULL;
player->skills[3] = skill_create(DAGGER_THROW, cam);
player->daggers = 10;
break;
case WARRIOR:
m_strcpy(asset, 100, "Commissions/Warrior.png");