Forums » Bugs

Inventory is updated when you hit things

Sep 15, 2010 igrok link
This isn't a serious bug, but is quite amusing.

When your ship collides with objects, an INVENTORY_UPDATE event is generated. This has been reported by multiple users of the MAID plugin, including myself.
Sep 16, 2010 MythOpus link
Are you sure the event isn't only being generated when new ore goes into your cargo hold? (ie. when mining)
Sep 16, 2010 igrok link
Oh, yes. Register the INVENTORY_UPDATE event and then smash your ship into something (~100m/s).
Sep 16, 2010 Maalik link
But your inventory changes when you lose armor.
Sep 16, 2010 davejohn link
aye, logical point maalik.
Sep 24, 2010 raybondo link
yeah, your ship is considered part of your inventory. So getting damaged causes an inventory item update for the ship. I believe shooting a weapon that has finite ammo also generates an inventory item update for the weapon.