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
3A3OAIFRFU3IHF6SDNDPCN3XYOFYIBYCEYJAXAFASCFDY76SMFXQC
static bool god_likes_items(god_type god)
{
switch (god)
{
case GOD_ZIN: case GOD_KIKUBAAQUDGHA: case GOD_OKAWARU:
case GOD_MAKHLEB: case GOD_SIF_MUNA: case GOD_TROG:
case GOD_NEMELEX_XOBEH: case GOD_ELYVILON:
return true;
case GOD_SHINING_ONE: case GOD_YREDELEMNUL: case GOD_XOM:
case GOD_VEHUMET: case GOD_LUGONU: case GOD_BEOGH:
return false;
case GOD_NO_GOD: case NUM_GODS: case GOD_RANDOM:
mprf("Bad god, no biscuit! %d", static_cast<int>(god) );
return false;
}
return false;
}
static bool god_likes_item(god_type god, const item_def& item)
{
if ( !god_likes_items(god) )
return false;
switch (god)
{
case GOD_ELYVILON:
return
item.base_type == OBJ_WEAPONS ||
item.base_type == OBJ_MISSILES;
case GOD_KIKUBAAQUDGHA: case GOD_TROG:
return item.base_type == OBJ_CORPSES;
default:
return true;
}
}
mprf(MSGCH_GOD, "%s%s", mitm[i].name(DESC_CAP_THE).c_str(),
sacrifice_message(you.religion, mitm[i]).c_str());
if (mitm[i].base_type != OBJ_CORPSES)
break;
mprf(MSGCH_GOD, "%s%s", mitm[i].name(DESC_CAP_THE).c_str(),
sacrifice_message(you.religion, mitm[i]).c_str());
if (mitm[i].base_type != OBJ_WEAPONS
&& mitm[i].base_type != OBJ_MISSILES)
{
break;
}
mprf(MSGCH_GOD, "%s%s", mitm[i].name(DESC_CAP_THE).c_str(),
sacrifice_message(you.religion, mitm[i]).c_str());
if ((you.is_undead || you.species == SP_DEMONSPAWN)
&& (which_god == GOD_ZIN || which_god == GOD_SHINING_ONE
|| which_god == GOD_ELYVILON) ||
which_god == GOD_BEOGH && you.species != SP_HILL_ORC)
// Gods can be racist...
const bool you_evil = you.is_undead || you.species == SP_DEMONSPAWN;
if ( (you_evil && is_good_god(which_god)) ||
(you.species != SP_HILL_ORC && which_god == GOD_BEOGH) )
textcolor( BROWN );
cprintf( EOL "Welcome back, " );
textcolor( YELLOW );
cprintf( "%s!", you.your_name );
textcolor( LIGHTGREY );
// Seems sort of pointless to print this, since the
// game start will kill overwrite it immediately...
formatted_string::parse_string(
"EOL<brown>Welcome back, <yellow>" +
std::string(you.your_name) + "!<lightgrey>").display();
/* ************************************************************************
// MAKE INTO FUNCTION!!! {dlb}
// randomly boost stats a number of times based on species {dlb}
unsigned char points_left = ( you.species == SP_DEMIGOD || you.species == SP_DEMONSPAWN ) ? 15 : 8;
do
{
switch ( random2(NUM_STATS) )
{
case STAT_STRENGTH:
if ( you.strength > 17 && coinflip() )
continue;
you.strength++;
break;
case STAT_DEXTERITY:
if ( you.dex > 17 && coinflip() )
continue;
you.dex++;
break;
case STAT_INTELLIGENCE:
if ( you.intel > 17 && coinflip() )
continue;
you.intel++;
break;
}
points_left--;
}
while (points_left > 0);
************************************************************************ */
textcolor( YELLOW );
cprintf("Hello, welcome to " CRAWL " " VERSION "!");
textcolor( BROWN );
cprintf(EOL "(c) Copyright 1997-2002 Linley Henzell, 2002-2007 Crawl DevTeam");
cprintf(EOL
std::string msg =
"<yellow>Hello, welcome to " CRAWL " " VERSION "!</yellow>" EOL
"<brown>(c) Copyright 1997-2002 Linley Henzell, "
"2002-2007 Crawl DevTeam" EOL
cprintf(" If you've never been here before, "
"you might want to try out" EOL);
cprintf(" the Dungeon Crawl tutorial. To do this, press ");
textcolor(WHITE);
cprintf("T");
textcolor(LIGHTGREY);
cprintf(" on the next" EOL);
cprintf(" screen.");
formatted_string::parse_string(
" If you've never been here before, you might want to try "
"out" EOL " the Dungeon Crawl tutorial. To do this, press "
"<white>T</white> on the next" EOL " screen.").display();
you.redraw_strength = 1;
you.redraw_intelligence = 1;
you.redraw_dexterity = 1;
you.redraw_armour_class = 1;
you.redraw_evasion = 1;
you.redraw_experience = 1;
you.redraw_gold = 1;
you.redraw_strength = true;
you.redraw_intelligence = true;
you.redraw_dexterity = true;
you.redraw_armour_class = true;
you.redraw_evasion = true;
you.redraw_experience = true;
you.redraw_gold = true;