Page 1 of 1
Make equipment_grid as width x height
Posted: Sat Feb 02, 2019 8:11 pm
by darkfrei
Now we have equipment_grid as value from defined sizes. Why it cannot be defined just as "equipment_grid = {width = 4 x height = 5}" or same?
Re: Make equipment_grid as width x height
Posted: Sat Feb 02, 2019 11:22 pm
by Rseding91
Equipment grids are prototypes and as such you define them like any other prototype.
Re: Make equipment_grid as width x height
Posted: Sat Feb 02, 2019 11:23 pm
by darkfrei
Rseding91 wrote: ↑Sat Feb 02, 2019 11:22 pm
Equipment grids are prototypes and as such you define them like any other prototype.
Why it must be prototype, not just attribute by entity's prototype?
Re: Make equipment_grid as width x height
Posted: Sat Feb 02, 2019 11:48 pm
by Rseding91
darkfrei wrote: ↑Sat Feb 02, 2019 11:23 pm
Rseding91 wrote: ↑Sat Feb 02, 2019 11:22 pm
Equipment grids are prototypes and as such you define them like any other prototype.
Why it must be prototype, not just attribute by entity's prototype?
That's how it used to work and it was changed when support to have equipment grids in vehicles was added. The grid is preserved in the item form when the vehicle is mined and uses the prototype system to do so.