Add default support for bowling dice.

This commit is contained in:
levlam 2020-12-09 13:35:27 +03:00
parent 07735c27e8
commit 987f26efdc

View File

@ -1164,7 +1164,7 @@ void StickersManager::init() {
}
dice_emojis_str_ =
G()->shared_config().get_option_string("dice_emojis", "🎲\x01🎯\x01πŸ€\x01⚽\x01⚽️\x01🎰");
G()->shared_config().get_option_string("dice_emojis", "🎲\x01🎯\x01πŸ€\x01⚽\x01⚽️\x01🎰\x01🎳");
dice_emojis_ = full_split(dice_emojis_str_, '\x01');
for (auto &dice_emoji : dice_emojis_) {
auto &animated_dice_sticker_set = add_special_sticker_set(SpecialStickerSetType::animated_dice(dice_emoji));
@ -3731,7 +3731,7 @@ void StickersManager::on_update_dice_emojis() {
}
auto dice_emojis_str =
G()->shared_config().get_option_string("dice_emojis", "🎲\x01🎯\x01πŸ€\x01⚽\x01⚽️\x01🎰");
G()->shared_config().get_option_string("dice_emojis", "🎲\x01🎯\x01πŸ€\x01⚽\x01⚽️\x01🎰\x01🎳");
if (dice_emojis_str == dice_emojis_str_) {
return;
}
@ -3766,7 +3766,7 @@ void StickersManager::on_update_dice_success_values() {
}
auto dice_success_values_str =
G()->shared_config().get_option_string("dice_success_values", "0,6:62,5:110,5:110,5:110,64:110");
G()->shared_config().get_option_string("dice_success_values", "0,6:62,5:110,5:110,5:110,64:110,6:110");
if (dice_success_values_str == dice_success_values_str_) {
return;
}