Decompile 2 functions in Source/Contents/Jobs/JobInheritance.cpp
Batch #14222 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_19758 EquipmentResourceMgr::GetWeaponEffectResourceName: logic confirmed by peer review - fn_19759 EquipmentResourceMgr::GetWeaponResourceName: logic confirmed by peer review Peer-reviewed-by: secret, KWDev, codeplay 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
bf307637a6
commit
91c13a3338
1 changed files with 8 additions and 8 deletions
|
|
@ -1031,11 +1031,11 @@ std::string EquipmentResourceMgr::GetWeaponResourceName(int type, int job, int s
|
|||
|
||||
if (weaponItem == -1) {
|
||||
weaponName = static_cast<const std::string&>(g_session.GetWeaponName(weapon));
|
||||
result = this->GetBodyRacePrefix(spriteJob) +
|
||||
FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), g_equipmentResourceExtensions[type]);
|
||||
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob)) +
|
||||
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), g_equipmentResourceExtensions[type]));
|
||||
} else {
|
||||
result = this->GetBodyRacePrefix(spriteJob + 3950) +
|
||||
FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), g_equipmentResourceExtensions[type]);
|
||||
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob + 3950)) +
|
||||
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), g_equipmentResourceExtensions[type]));
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
@ -1057,11 +1057,11 @@ std::string EquipmentResourceMgr::GetWeaponEffectResourceName(int type, int job,
|
|||
|
||||
const char* const suffix = effects[effect];
|
||||
if (weaponItem == -1) {
|
||||
result = this->GetBodyRacePrefix(spriteJob) +
|
||||
FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), suffix, g_equipmentResourceExtensions[type]);
|
||||
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob)) +
|
||||
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), suffix, g_equipmentResourceExtensions[type]));
|
||||
} else {
|
||||
result = this->GetBodyRacePrefix(spriteJob) +
|
||||
FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), suffix, g_equipmentResourceExtensions[type]);
|
||||
result = static_cast<const std::string&>(this->GetBodyRacePrefix(spriteJob)) +
|
||||
static_cast<const std::string&>(FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), suffix, g_equipmentResourceExtensions[type]));
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue