| 16 | #include "tileview.h" |
| 17 | |
| 18 | GodMenuEntry::GodMenuEntry(god_type god_, bool long_name) : |
| 19 | MenuEntry(god_name(god_, long_name), MEL_ITEM, 1, 0), |
| 20 | god(god_) |
| 21 | { |
| 22 | if (god == GOD_SHINING_ONE) |
| 23 | hotkeys.push_back('1'); |
| 24 | else |
| 25 | { |
| 26 | hotkeys.push_back(text.at(0)); |
| 27 | hotkeys.push_back(toalower(text.at(0))); |
| 28 | } |
| 29 | int c = god_message_altar_colour(god); |
| 30 | colour_text = colour_to_str(c); |
| 31 | data = &text; |
| 32 | |
| 33 | const dungeon_feature_type feat = altar_for_god(god_); |
| 34 | if (feat) |
| 35 | { |
| 36 | const tileidx_t idx = tileidx_feature_base(feat); |
| 37 | add_tile(tile_def(pick_dngn_tile(idx, ui_random(INT_MAX)))); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | string GodMenuEntry::_get_text_preface() const |
| 42 | { |
nothing calls this directly
no test coverage detected