HF RL Explorer

game inventory: add validation

game inventory: add validation: a task in smol-software-harbor (Harbor dataset). Inventory:add in src/inventory.lua never checks the weight limit ( max weight ). Make it refuse an addition that would push the total weight above the limit by returning false, "too heavy" without changing the bag…

The task

`Inventory:add` in `src/inventory.lua` never checks the weight limit (`max_weight`). Make it refuse an addition that would push the total weight above the limit by returning `false, "too heavy"` without changing the bag; reaching the limit exactly is allowed. Run `lua tests/run.lua`.

Part of efederici/smol-software-harbor.