Page 1 of 1
"EntityWithInventoryPrototype"
Posted: Tue Nov 19, 2024 3:19 pm
by BraveCaperCat
Hi! I propose that a new prototype (likely abstract) be added called "EntityWithInventoryPrototype". It would be a simple entity prototype with an inventory. It would have some properties that ContainerPrototype has right now, such as inventory_size, inventory_type and quality_affects_inventory_size (mainly this one) and both ContainerPrototype and VehiclePrototype would inherit from it. VehiclePrototype would have an option to disable/enable the inventory, and you can work out what happens to the children prototypes of RollingStockPrototype.
The main reason for this request (for inventories to be separated from cargo wagons and containers) is so that CargoWagonPrototype can have the quality_affects_inventory_size property.
Re: "EntityWithInventoryPrototype"
Posted: Tue Nov 19, 2024 11:40 pm
by Rseding91
Why not just request that we add quality support for cargo wagons as a modding option? That would be *way* simpler than what you suggest
Re: "EntityWithInventoryPrototype"
Posted: Wed Nov 20, 2024 12:21 am
by BraveCaperCat
Rseding91 wrote: ↑Tue Nov 19, 2024 11:40 pm
Why not just request that we add quality support for cargo wagons as a modding option? That would be *way* simpler than what you suggest
Yes, but at least this way it's consistent with existing prototypes. (Looking at you, EntityWithHealth and EntityWithOwner Prototypes!)
Re: "EntityWithInventoryPrototype"
Posted: Wed Nov 20, 2024 1:06 am
by curiosity
Rseding91 wrote: ↑Tue Nov 19, 2024 11:40 pm
Why not just request that we add quality support for cargo wagons as a modding option? That would be *way* simpler than what you suggest
Why not then add it for every entity type with inventory? The end result would be indistinguishable.
Re: "EntityWithInventoryPrototype"
Posted: Wed Nov 20, 2024 1:13 am
by Rseding91
curiosity wrote: ↑Wed Nov 20, 2024 1:06 am
Why not then add it for every entity type with inventory? The end result would be indistinguishable.
Because it takes developer time and energy to make tests for, implement, and then maintain it everywhere and there are currently 23 pages of bug reports to work on
Re: "EntityWithInventoryPrototype"
Posted: Wed Nov 20, 2024 9:30 am
by BraveCaperCat
Rseding91 wrote: ↑Wed Nov 20, 2024 1:13 am
curiosity wrote: ↑Wed Nov 20, 2024 1:06 am
Why not then add it for every entity type with inventory? The end result would be indistinguishable.
Because it takes developer time and energy to make tests for, implement, and then maintain it everywhere and there are currently 23 pages of bug reports to work on
Which is better? An update fixing 20 bugs, or an update fixing 15 bugs as well as adding 1 (minor) feature?