Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/FASTSKIL/slot_0F_enterFastArea.txt

40 lines
1 KiB
Text

function fastskil_enterFastArea() /* entry=49 class_id=0x0120 slot=0x0F */
{
var
referent, /* [BP+00h] type=0x69 */
skill, /* [BP-02h] type=0x69 */
qLo; /* [BP-04h] type=0x69 */
set_info(0x021B, *(arg_06));
process_exclude();
spawn FREE.waitNTimerTicks(pid, 5, 0x00000000);
suspend;
if (!Item.getMapArray(arg_06)) {
skill = Game.getDifficultyLevel();
if (Item.getFrame(arg_06) == 2) {
qLo = Item.getQLo(arg_06);
if (skill == 1) {
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
else if (skill == 2) {
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
else if (skill < 3) {
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
return;
}
if (skill < (Item.getFrame(arg_06) + 2)) {
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
}
else {
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
suspend;
}
}
return;
}