mirror of
https://github.com/moparisthebest/rswiki-book
synced 2024-11-21 08:35:00 -05:00
Update MediaWiki page '317 Update item container'
This commit is contained in:
parent
2c16bdcb30
commit
dcddb32c1d
@ -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 :-)
|
Loading…
Reference in New Issue
Block a user