Owner-authorized source migration: 31 helper-only translation units were merged into their callers or existing inline headers; both build manifests updated. Includes the preserved source payload, Lua configuration matching wowdecomp, and exact malloca expansion without diagnostic pragmas. 449 native units compiled locally and 449 staged units compiled by the pinned server toolchain. No previously byte-matched function regressed. Compiler mapping diagnostics remain recorded as needs_cleanup, not accepted or peer-confirmed. Existing independent review records are preserved. README.md is intentionally unchanged.
46 lines
988 B
C++
46 lines
988 B
C++
#include "Contents/Actors/AttackMotion.h"
|
|
#include "Contents/Items/WeaponType.h"
|
|
#include "Contents/Jobs/JobId.h"
|
|
|
|
// OFFSET: 0x00DDFB50
|
|
// FUNCTION: fn_23444
|
|
float AttackMotionLength(int job, int appearance, int equipment, int attackMode) {
|
|
if (attackMode == 0) {
|
|
if (job == JOB_MERCHANT) {
|
|
return 5.85f;
|
|
}
|
|
|
|
if (job == JOB_THIEF) {
|
|
return 5.75f;
|
|
}
|
|
|
|
return 6.0f;
|
|
}
|
|
|
|
if (attackMode != 1) {
|
|
return 6.0f;
|
|
}
|
|
|
|
switch (job) {
|
|
case JOB_NOVICE:
|
|
case JOB_SUPER_NOVICE:
|
|
case JOB_SUPER_BABY:
|
|
case JOB_SUPER_NOVICE_E:
|
|
case JOB_SUPER_BABY_E:
|
|
return appearance == 1 ? 5.85f : 6.0f;
|
|
case JOB_ASSASSIN:
|
|
case JOB_ASSASSIN_CROSS:
|
|
case JOB_BABY_ASSASSIN:
|
|
case JOB_GUILLOTINE_CROSS:
|
|
case JOB_GUILLOTINE_CROSS_T:
|
|
case JOB_BABY_GUILLOTINE_CROSS:
|
|
case JOB_SHADOW_CROSS:
|
|
if (equipment == W_KATAR || (equipment >= W_DOUBLE_DD && equipment <= W_DOUBLE_SA)) {
|
|
return 3.0f;
|
|
}
|
|
|
|
return 6.0f;
|
|
default:
|
|
return 6.0f;
|
|
}
|
|
}
|