| 4993 | } |
| 4994 | |
| 4995 | void GetObjectStr(const Object &object) |
| 4996 | { |
| 4997 | InfoString = object.name(); |
| 4998 | if (MyPlayer->_pClass == HeroClass::Rogue) { |
| 4999 | if (object._oTrapFlag) { |
| 5000 | InfoString = fmt::format(fmt::runtime(_(/* TRANSLATORS: {:s} will either be a chest or a door */ "Trapped {:s}")), InfoString.str()); |
| 5001 | InfoColor = UiFlags::ColorRed; |
| 5002 | } |
| 5003 | } |
| 5004 | if (object.IsDisabled()) { |
| 5005 | InfoString = fmt::format(fmt::runtime(_(/* TRANSLATORS: If user enabled diablo.ini setting "Disable Crippling Shrines" is set to 1; also used for Na-Kruls lever */ "{:s} (disabled)")), InfoString.str()); |
| 5006 | InfoColor = UiFlags::ColorRed; |
| 5007 | } |
| 5008 | } |
| 5009 | |
| 5010 | void SyncNakrulRoom() |
| 5011 | { |
no test coverage detected