Allow mods to access the tank's trash inventory

smcpeak
Burner Inserter
Burner Inserter
Posts: 11
Joined: Tue Dec 05, 2017 7:50 am
Contact:

Allow mods to access the tank's trash inventory

Post by smcpeak »

TL;DR
Allow mods to access the tank's trash inventory by providing a proper inventory defines constant.
What?
Currently, there is no symbolic constant in defines.inventory for the tank's trash inventory to use with get_inventory. There is only car_trunk and car_ammo.

Experimentally, I found that spider_trash (4) works with the tank too, retrieving its trash inventory, but it's not clear whether that is guaranteed. If that is intentional, I suggest adding a sentence of documentation to spider_trunk clarifying that it works for the tank too. If not, I request a car_trash symbolic constant.
Why?
Mods often interact with vehicle inventory, and being able to do so for the tank's trash inventory is unexceptional.
Koub
Global Moderator
Global Moderator
Posts: 7955
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Allow mods to access the tank's trash inventory

Post by Koub »

[Koub] Moved to Modding interface requests.
Koub - Please consider English is not my native language.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14770
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Allow mods to access the tank's trash inventory

Post by Rseding91 »

Added for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”