forked from townforge/townforge
game: add discoveries to news
This commit is contained in:
parent
74a3dd463d
commit
79dd5c05c7
BIN
GameData/TB/images/discovery.png
Normal file
BIN
GameData/TB/images/discovery.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
@ -118,6 +118,14 @@ void UINewsDialog::UpdateFilter(const std::shared_ptr<GameWallet> &w)
|
||||
event = game->get_player_name(e.account) + " joined the game";
|
||||
icon = "images/new-settler.png";
|
||||
}
|
||||
if (e.cmd == get_cc_tag<uint8_t>(cryptonote::cc_command_research_t()))
|
||||
{
|
||||
if (boost::starts_with(e.event, "Discovered "))
|
||||
{
|
||||
event = game->get_player_name(e.account) + " d" + e.event.substr(1);
|
||||
icon = "images/discovery.png";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (icon.empty() && filter_buildings && !e.flags.empty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user