Page 1 of 1

Changing all resources to result uranium

Posted: Tue Feb 23, 2021 12:58 pm
by MathieuG89
Can't wrap my head around this one

Code: Select all

for i, resource in pairs(data.raw.resource) do
    resource.result = "uranium-ore"
  end
 
Any help would be greatly appreciated, thanks !

Re: Changing all resources to result uranium

Posted: Tue Feb 23, 2021 4:28 pm
by DaveMcW

Code: Select all

for i, resource in pairs(data.raw.resource) do
  resource.minable.result = "uranium-ore"
end