LuaEquipmentGrid flag "locked"

Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

LuaEquipmentGrid flag "locked"

Post by eradicator »

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?)
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.

Bilka
Factorio Staff
Factorio Staff
Posts: 3133
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaEquipmentGrid flag "locked"

Post by Bilka »

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.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: LuaEquipmentGrid flag "locked"

Post by eradicator »

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.

Post Reply

Return to “Implemented mod requests”