First we open BHAV 4113 "inc comfort"
The line which checks the GUID for our object is highlighted in yellow. If we have the right object, then we go to line 7 and then to line 13 (hex 0D). All of which is hard to follow, so we'll resequence the BHAV code.
Now things make more sense. Line 0 is still an assignment function, but instead of jumping down to line 19 (hex 13) and back, we have a second assignment function in line 1 and then we have our GUID test (highlighted in yellow), followed right away by the lines to test and modify comfort (highlighted in orange).
The next part of the tutorial is very similar to what we did for BHAV 4112, so we will skip ahead to show part of the modified BHAV 4113, which now has two extra lines, as shown by the increased line count in the BHAV header (highlighted in purple). We have already updated lines 3 and 4 to branch to lines 14 and 15 (highlighted in orange).
We'll resequence the updated BHAV.
Now we have the modified comfort and hunger code all together (highlighted in yellow).