What?
A flag on an equipment-grid prototype that defines the grid as not player-interactable.
Why?
To be able to make custom vehicles/armor that come with some additional built-in modules that can't be replaced or removed, in order to present some interesting balance alternatives to "just fill it up with fusion reactors". (A runtime lock would also work, but a per-prototype lock should be easier/faster?)
LuaEquipmentGrid flag "locked"
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
LuaEquipmentGrid flag "locked"
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: LuaEquipmentGrid flag "locked"
I added a "locked" property to the equipment grid prototype for 0.17.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: LuaEquipmentGrid flag "locked"
Wohoo! Thanks.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.