Decompile fn_02967 (CCashEmotionMgr::LookupSpecialEmotion)
Batch #18016 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_02967 CCashEmotionMgr::LookupSpecialEmotion: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
b13d3bc0fc
commit
f4d068abcf
1 changed files with 18 additions and 6 deletions
|
|
@ -1076,20 +1076,32 @@ void CCashEmotionMgr::LoadScripts() {
|
|||
int CCashEmotionMgr::LookupSpecialEmotion(CashEmotionSpecial type) {
|
||||
switch (type) {
|
||||
case CashEmotionSpecial::ChatProhibit: {
|
||||
auto it = this->m_emotionIds.find("ET_CHAT_PROHIBIT");
|
||||
int emotionId = it != this->m_emotionIds.end() ? it->second : -1;
|
||||
int emotionId;
|
||||
{
|
||||
std::string key("ET_CHAT_PROHIBIT");
|
||||
auto it = this->m_emotionIds.find(key);
|
||||
emotionId = it != this->m_emotionIds.end() ? it->second : -1;
|
||||
}
|
||||
this->m_specials.emplace(type, emotionId);
|
||||
return emotionId;
|
||||
}
|
||||
case CashEmotionSpecial::Yut: {
|
||||
auto it = this->m_emotionIds.find("ET_YUT1");
|
||||
int emotionId = it != this->m_emotionIds.end() ? it->second : -1;
|
||||
int emotionId;
|
||||
{
|
||||
std::string key("ET_YUT1");
|
||||
auto it = this->m_emotionIds.find(key);
|
||||
emotionId = it != this->m_emotionIds.end() ? it->second : -1;
|
||||
}
|
||||
this->m_specials.emplace(type, emotionId);
|
||||
return emotionId;
|
||||
}
|
||||
case CashEmotionSpecial::Dice: {
|
||||
auto it = this->m_emotionIds.find("ET_DICE1");
|
||||
int emotionId = it != this->m_emotionIds.end() ? it->second : -1;
|
||||
int emotionId;
|
||||
{
|
||||
std::string key("ET_DICE1");
|
||||
auto it = this->m_emotionIds.find(key);
|
||||
emotionId = it != this->m_emotionIds.end() ? it->second : -1;
|
||||
}
|
||||
this->m_specials.emplace(type, emotionId);
|
||||
return emotionId;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue