Skip to content

Commit

Permalink
Add missing opcode formatting 📜.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarty committed Sep 17, 2024
1 parent 156b94a commit cf0d7de
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/components/ScriptCodeInstruction.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ const prettifyArguments = (operation) => {
</Link>,
];
break;
case 0x24: // loadRoomWithEgo
// loadRoomWithEgo
case 0x24:
case 0x64:
case 0xa4:
case 0xe4:
args = [
args[0],
<Link
Expand All @@ -83,6 +87,7 @@ const prettifyArguments = (operation) => {
break;
// loadRoom
case 0x72:
case 0xf2:
args = [
<Link
className="underline"
Expand All @@ -91,7 +96,11 @@ const prettifyArguments = (operation) => {
</Link>,
];
break;
case 0x2d: // putActorInRoom
// putActorInRoom
case 0x2d:
case 0x6d:
case 0xad:
case 0xed:
args = [
args[0],
<Link
Expand All @@ -102,8 +111,11 @@ const prettifyArguments = (operation) => {
];
break;
case 0x42: // startScript
case 0xc2:
case 0x62: // stopScript
case 0xe2:
case 0x4a: // chainScript
case 0xca:
args = [
<Link
className="underline"
Expand Down

0 comments on commit cf0d7de

Please sign in to comment.