Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/SKILLBOX/slot_0A_equip.txt

43 lines
1.1 KiB
Text
Raw Normal View History

2026-03-25 23:32:36 +01:00
function skillbox_equip() /* entry=286 class_id=0x04E3 slot=0x0A */
{
2026-03-26 00:37:17 +01:00
set_info(0x0211, *(arg_06));
process_exclude();
local_02 = Game.getDifficultyLevel();
if (Item.getMapArray(arg_06) == 0) {
if (Item.getFrame(arg_06) == 2) {
local_04 = Item.getQLo(arg_06);
if (local_02 == 1) {
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
2026-03-26 00:37:17 +01:00
suspend;
}
else if (local_02 == 2) {
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
2026-03-26 00:37:17 +01:00
suspend;
}
else if (local_02 < 3) {
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
2026-03-26 00:37:17 +01:00
suspend;
}
return;
}
if (local_02 < (Item.getFrame(arg_06) + 2)) {
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
2026-03-26 00:37:17 +01:00
suspend;
}
else {
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
2026-03-26 00:37:17 +01:00
suspend;
}
return;
}
else if (local_02 < (Item.getFrame(arg_06) + 2)) {
spawn TRIGGER.slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
2026-03-25 23:32:36 +01:00
suspend;
2026-03-26 00:37:17 +01:00
return;
}
else {
spawn TRIGGER.slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
2026-03-25 23:32:36 +01:00
suspend;
2026-03-26 00:37:17 +01:00
}
return;
2026-03-25 23:32:36 +01:00
}