[Request] Custom armor modules

Things that we aren't going to implement
Post Reply
User avatar
Wulfson
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sat Jan 02, 2016 11:48 pm
Contact:

[Request] Custom armor modules

Post by Wulfson »

Maybe I'm missing something, but it appears that any armor module must be a sub-type of an existing armor module, and generally includes either some side-effects or some requirements of those existing module types. I would like to be able to create a whole new module that doesn't have to inherit from one of the existing ones.

For example, my PocketRepair mod adds a new armor module that I would like to have a constant drain on armor power and a small internal capacitor. The only options I seem to have right now are to make its type either night-vision-equipment or movement-bonus-equipment. night-vision-equipment works the closest to what I'm looking for, but I'm required to add a "tint" property for this type, which makes no sense for my module. Further, even if I set the tint to all 0, it still ends up giving nightvision anyway, which I don't want. I ended up going with movement-bonus-equipment with the movement_bonus property set to 0, which ends up showing up on the tooltip, and only drains power when the player is moving (I.E., while they're standing still, the use of the module is "free").

Ideally, I think we should be able to define a custom equipment type that we can use as the "type" parameter for our prototypes. This custom type should allow us to flag which fields are required, and define the special properties for power drain/gain (Ex: drain: "while-moving", drain: "during-night", drain: "constant", gain: "during-day", etc). To make this even more flexible, it could allow us to define a script for those special properties, but I'd view that as a "nice to have" rather than a requirement.

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [Request] Custom armor modules

Post by Ranakastrasz »

I would seriously appreciate that. I had to script my power producing equipment, and it has to show "Produces 0 Power" on the tooltip.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Post Reply

Return to “Won't implement”