when testing Ely's pacifying. (Currently only inappropriately reuses TILE_NEW_STAIR, which will have to be replaced with something more distinctive some time.) Also add an option for colouring neutrals on the minimap (defaults to red, like hostiles) and allow secondary item use by Ctrl-L-clicking on items in inventory (firing weapons, unwielding rods, etc.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3830 c06c8d41-db1a-0410-9941-cceddc491573
HBHQQDULNVWISJ75XIL6R6BFEDYRNY22NX3ZTFVNP5ZWJGJSKOEQC
THEWZBBFONK266AMYIIFQ4SFGZMTMU62ZO2Y43UMCDD6DDBSDYKAC
D5EMJEEIJSSULF236DUM26QHHNDLH7FXAOBHFDAYI65KCKTDTDYQC
25CH7HH4LKXFIZ75YNMXS3TSXO6O27DYSOPLOD45K4OCNFWLS4LQC
5FA5IEAXTMXYS2VUBVDKBKHPKAIOY4GN5SXYJORBYWQIGHVW3FFQC
CYAVI4PYWMMKTPYT5N2B3MI4OSHZFLPKOZFSLFJUXRYAACYXWW3AC
ND3T5LCZATC63EVQ6SLI7XXMSUL7XICJDNLH3UCYUDEFWTA3N5MQC
DGB7DKTR6OEQEMOOF3MAHDT4PAPKZ54Y33MWYVD7XIOESPFAXHQQC
TOOHYAX73C5KPSWGHPCBWCUN62WMMO3BI5CWEEMGV3WBFZ5RIH5AC
YMC3RKF4Z7DOHZNGG7INC343SXCTWOPK7ISD42I3WA3AZZNVBGIAC
YOZHWGKGPWZGHQYNMMBHNGDO2UEVIHPOR6UF3SEZPIYWVMBGWBOAC
MZLB3Q7G4EC2BR3OFMG55WPHXPFJGQSLWAIHHFJEAEATPUTYR7EAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RVST2QHYJ757ZHK4AUJ5NGPDZ44AD6RVFVXYPKQIBJXZBDNUCHXQC
TILE_FLAG_MM_UNSEEN = 0x00001000,
TILE_FLAG_UNSEEN = 0x00002000,
TILE_FLAG_CURSOR0 = 0x00000000,
TILE_FLAG_CURSOR1 = 0x00008000,
TILE_FLAG_CURSOR2 = 0x00004000,
TILE_FLAG_MM_UNSEEN = 0x00000000,
TILE_FLAG_UNSEEN = 0x00001000,
TILE_FLAG_CURSOR0 = 0x00002000,
TILE_FLAG_CURSOR1 = 0x00004000,
TILE_FLAG_CURSOR2 = 0x00008000,
c = Options.tile_friendly_col; // friendly monsters subtly different from hostiles
if (mons_friendly(&menv[mgrd[x][y]]))
c = Options.tile_friendly_col; // colour friendly monsters
else if (mons_neutral(&menv[mgrd[x][y]])
&& Options.tile_neutral_col != Options.tile_monster_col)
{
c = Options.tile_neutral_col; // colour neutral monsters
}
if (button == 2) trig = CK_MOUSE_B2;
if (button == 3) trig = CK_MOUSE_B3;
if (button == 4) trig = CK_MOUSE_B4;
if (button == 5) trig = CK_MOUSE_B5;
if (button == 2)
trig = CK_MOUSE_B2;
else if (button == 3)
trig = CK_MOUSE_B3;
else if (button == 4)
trig = CK_MOUSE_B4;
else if (button == 5)
trig = CK_MOUSE_B5;
void gui_init_view_params(coord_def &termsz, coord_def &viewsz,
coord_def &msgp, coord_def &msgsz, coord_def &hudp, coord_def &hudsz)
void gui_init_view_params(coord_def &termsz, coord_def &viewsz,
coord_def &msgp, coord_def &msgsz,
coord_def &hudp, coord_def &hudsz)
if (you.inv[idx].base_type == OBJ_WEAPONS
&& is_throwable(you.inv[idx], player_size(PSIZE_BODY)))
{
fire_thing(idx); // fire weapons
}
else if (you.inv[idx].base_type == OBJ_MISCELLANY
|| you.inv[idx].base_type == OBJ_STAVES
&& item_is_rod(you.inv[idx])) // unwield rods/misc. items
{
if (you.equip[EQ_WEAPON] == idx
&& check_warning_inscriptions(you.inv[idx], OPER_WIELD))
{
wield_weapon(true, PROMPT_GOT_SPECIAL); // unwield
}
}