Update MediaWiki page '317 Update item container'

This commit is contained in:
Pure_ 2014-06-24 12:41:18 +00:00 committed by moparisthebest
parent 2c16bdcb30
commit dcddb32c1d

View File

@ -23,12 +23,13 @@ Updates the items in a given interface component.
The rest in pseudo-code:
for (int i = 0; i < amt_of_items; i++) {
item_amount = read_u_byte(); // Item Amount: U Byte
if (item_amount == 255) {
if (item_amount == 255)
item_amount = read_int_me_b(); // Item Amount (if entered as 255 previously - to allow bigger amounts than 254): Integer Middle-Endian Big (Inverse middle)
}
item_id = read_u_short_le_a(); // Item ID: U Short Little Endian Special A
}
}
* Someone please fix the code block's syntax, thank you :-)