Add default support for Soccer dice.

GitOrigin-RevId: aa67796f72b62ede966a67004f8a3d517f372789
This commit is contained in:
levlam 2020-07-14 02:31:32 +03:00
parent 2e82c65d94
commit 7685047186

View File

@ -1161,7 +1161,7 @@ void StickersManager::init() {
animated_emoji_sticker_set.short_name_);
}
dice_emojis_str_ = G()->shared_config().get_option_string("dice_emojis", "🎲\x01🎯\x01πŸ€");
dice_emojis_str_ = G()->shared_config().get_option_string("dice_emojis", "🎲\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));
@ -3445,7 +3445,7 @@ void StickersManager::on_update_dice_emojis() {
return;
}
auto dice_emojis_str = G()->shared_config().get_option_string("dice_emojis", "🎲\x01🎯\x01πŸ€");
auto dice_emojis_str = G()->shared_config().get_option_string("dice_emojis", "🎲\x01🎯\x01πŸ€\x01⚽\x01⚽️");
if (dice_emojis_str == dice_emojis_str_) {
return;
}
@ -3479,7 +3479,7 @@ void StickersManager::on_update_dice_success_values() {
return;
}
auto dice_success_values_str = G()->shared_config().get_option_string("dice_success_values", "0,0,0");
auto dice_success_values_str = G()->shared_config().get_option_string("dice_success_values", "0,6:62,5:110,0,0");
if (dice_success_values_str == dice_success_values_str_) {
return;
}