Batch #13148 by KWDev: 10 byte-identical, 0 confirmed by peer review. - fn_05385 CPetEvolutionMgr::L_InsertEvolutionRecipeLGU: byte-identical - fn_05440 CRenewQuestMgr::GetMonsterConditionText: byte-identical - fn_06538 NEO_PACKAGEITEM::CPaidPackageItemMgr::IsPaidItem: byte-identical - fn_08147 CRuneSystemMgr::Reset: byte-identical - fn_19316 Replay::AnimationScale: byte-identical - fn_19317 Replay::DelayScale: byte-identical - fn_19618 CNavigationManager::FitToSquare: byte-identical - fn_21737 CGameMode::ReceiveMemorialDungeonNotify: byte-identical - fn_22067 CGameMode::ReceiveLapineBoxResult: byte-identical - fn_22123 CGameMode::ReceiveGradeEnchantInfo: byte-identical Merged automatically: every function is byte-identical to the original.
53 lines
932 B
C++
53 lines
932 B
C++
#include "Client/Replay.h"
|
|
|
|
// OFFSET: 0x00B844C0
|
|
// FUNCTION: fn_19316
|
|
float Replay::AnimationScale() const {
|
|
if (0.25f == this->speed) {
|
|
return 1.4f;
|
|
}
|
|
if (0.5f == this->speed) {
|
|
return 1.2f;
|
|
}
|
|
if (1.0f == this->speed) {
|
|
return 1.0f;
|
|
}
|
|
if (2.0f == this->speed) {
|
|
return 0.8f;
|
|
}
|
|
if (4.0f == this->speed) {
|
|
return 0.6f;
|
|
}
|
|
if (8.0f == this->speed) {
|
|
return 0.4f;
|
|
}
|
|
if (16.0f == this->speed) {
|
|
return 0.2f;
|
|
}
|
|
return 1.0f;
|
|
}
|
|
|
|
// OFFSET: 0x00B872F0
|
|
// FUNCTION: fn_19343
|
|
bool Replay::SetState(int state) {
|
|
if (state == 4) {
|
|
this->state = 1;
|
|
return true;
|
|
}
|
|
if (state == 5) {
|
|
this->state = 6;
|
|
return true;
|
|
}
|
|
if (state >= 1 && state <= 8) {
|
|
this->state = state;
|
|
if (state <= 3) {
|
|
g_replayAnimationScaling = 0;
|
|
}
|
|
} else {
|
|
this->state = 1;
|
|
}
|
|
if (state >= 6 && state <= 8) {
|
|
g_replayAnimationScaling = 1;
|
|
}
|
|
return true;
|
|
}
|