rodecomp/Source/Contents/Actors/AttackMotion.cpp
ragnarok-clanker a47d20f8be Reconstruct readable C++ and organize cohesive source subsystems
Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.

Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
2026-10-25 07:42:41 +00:00

44 lines
711 B
C++

#include "Contents/Actors/AttackMotion.h"
// OFFSET: 0x00DDFB50
// FUNCTION: fn_23444
float AttackMotionLength(int job, int appearance, int equipment, int attackMode) {
if (attackMode == 0) {
if (job == 5) {
return 5.85f;
}
if (job == 6) {
return 5.75f;
}
return 6.0f;
}
if (attackMode != 1) {
return 6.0f;
}
switch (job) {
case 0:
case 23:
case 4045:
case 4190:
case 4191:
return appearance == 1 ? 5.85f : 6.0f;
case 12:
case 4013:
case 4035:
case 4059:
case 4065:
case 4101:
case 4254:
if (equipment == 16 || (equipment >= 25 && equipment <= 30)) {
return 3.0f;
}
return 6.0f;
default:
return 6.0f;
}
}