git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4265 c06c8d41-db1a-0410-9941-cceddc491573
QKEAQDJVENG6A765VDRHWJYG74SSRYB6RQD46IJZP33TMCT4OJVQC
6FYEYTS5NRD5JAFIBSFHPBCQOKZBMWPWEI26USCI6OBUDGLJQKAAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
EJKHYV2Z6UPRVYUAL4WRW33GBNHYBFPMPA57HMBX2LQKXHIUO5VQC
static bool pick_db_name(const int type)
static bool pick_db_name( const item_def &item )
switch (type)
if (is_blessed(item)) return true; switch (item.base_type)
if (is_blessed(item))
return true;
switch (item.base_type)
case OBJ_WEAPONS: case OBJ_ARMOUR: return coinflip(); case OBJ_JEWELLERY: return one_chance_in(5); default: return 0;
case OBJ_WEAPONS:
case OBJ_ARMOUR:
return coinflip();
case OBJ_JEWELLERY:
return one_chance_in(5);
default:
return 0;
case OBJ_WEAPONS: case OBJ_ARMOUR: return coinflip(); case OBJ_JEWELLERY: return one_chance_in(5); default: return false;
return false;
if (pick_db_name(item.base_type))
if (pick_db_name(item))
if (is_blessed(item) && god_gift) { result = item_base_name(item) + " "; std::string name = "of @player_name@"; result += replace_name_parts(name, item); }
if (is_blessed(item) && god_gift)
{
result = item_base_name(item) + " ";
std::string name = "of @player_name@";
result += replace_name_parts(name, item);
}
####################################################### THE SHINING ONE (blessed weapons only)
######################################################
# THE SHINING ONE (blessed weapons only)
The Shining One weaponw:200of The Shining One's @divine_esteem@of @player_name@'s @valour_name@w:100of The Shining Oneof @player_name@w:100of @virtue_name@%%%%######################################################
The Shining One weapon
w:200
of The Shining One's @divine_esteem@
of @player_name@'s @valour_name@
w:100
of The Shining One
of @player_name@
of @virtue_name@
%%%%