From 66525ca00c22952da8fac51e7dd888c748f14ff3 Mon Sep 17 00:00:00 2001 From: jtuu Date: Tue, 12 Nov 2019 11:16:04 +0200 Subject: [PATCH] Added definition for opcode 0xf882 get_pl_job. --- .../resources/scripting/opcodes.yml | 10 +++++++++- src/quest_editor/scripting/opcodes.ts | 17 +++++++++++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/assets_generation/resources/scripting/opcodes.yml b/assets_generation/resources/scripting/opcodes.yml index 65f0c100..11aaff94 100644 --- a/assets_generation/resources/scripting/opcodes.yml +++ b/assets_generation/resources/scripting/opcodes.yml @@ -2413,7 +2413,15 @@ opcodes: - type: dword doc: Player slot. access: read - + - code: 0xf882 + mnemonic: get_pl_job + doc: Sets the value of to the given player's job (Hunter/Ranger/Force). + params: + - type: reg_tup_ref + reg_tup: + - type: dword + doc: Player slot. + access: read - code: 0xf883 params: - type: reg_tup_ref diff --git a/src/quest_editor/scripting/opcodes.ts b/src/quest_editor/scripting/opcodes.ts index 744a2edb..acf51b6b 100644 --- a/src/quest_editor/scripting/opcodes.ts +++ b/src/quest_editor/scripting/opcodes.ts @@ -4688,11 +4688,20 @@ export const OP_GET_PL_NAME = (OPCODES[0xf881] = new_opcode( ], undefined, )); -export const OP_UNKNOWN_F882 = (OPCODES[0xf882] = new_opcode( +export const OP_GET_PL_JOB = (OPCODES[0xf882] = new_opcode( 0xf882, - "unknown_f882", - undefined, - [], + "get_pl_job", + "Sets the value of to the given player's job (Hunter/Ranger/Force).", + [ + new_param( + { + kind: Kind.RegTupRef, + register_tuples: [new_param(TYPE_DWORD, "Player slot.", ParamAccess.Read)], + }, + undefined, + undefined, + ), + ], undefined, )); export const OP_UNKNOWN_F883 = (OPCODES[0xf883] = new_opcode(