Action RPG Inventory System

Looking at modding this to give different items different sizes in the inventory (mainly so weapons etc are bigger icons). I figured I’d do this by adding 2 byte variables for Slot X and Y dimensions in the item data structure.

I know the size box for the Inventory_Slot is 66x66 and I’m assuming I can turn the size box into a variable and then when the slot is updated with an item it sets the x and y size to whatever the new item is? So standard items are 1x1 (66x66), a rifle is 2x3 (132x198). I’m not really looking to do the grid system like Diablo, but will be adding weight etc to items to limit inventory size (and outline that an item taking up 2x3 would remove 6 slots from the inventory).

Just want to know if I’m right with my above assumption before I start messing with everything haha?

Cheers.