Removing technology prerequisites

Place to get help with not working mods / modding interface.
Post Reply
Eastshire
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Mar 19, 2019 2:45 pm
Contact:

Removing technology prerequisites

Post by Eastshire »

I'm trying to remove military science from the portable fusion reactor and the Power Armor Mk 2. Right now I have this line in the mod:

Code: Select all

data.raw.technology["fusion-reactor-equipment"].unit.prerequisites = {
        "utility-science-pack",
        "power-armor"
}
But when the game loads it appears that military science still has to be researched to unlock portable fusion reactor. What am I missing?

Thanks.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Removing technology prerequisites

Post by DaveMcW »

prerequisites, not unit.prerequisites.

Post Reply

Return to “Modding help”