Page 1 of 1

Modify Mining Speed

Posted: Sat Sep 07, 2019 12:14 pm
by Yokmp
I would like to modify the mining-speed and module-slots of the vanilla Mining Drills.

Unfortunately I'm stuck with this:

Code: Select all

data.raw.["mining-drill"]["burner-mining-drill"].mining_speed = 0.33
data.raw.["mining-drill"]["electric-mining-drill"].mining_speed = 0.75
data.raw.["mining-drill"]["electric-mining-drill"].module_slots = 2
What do i have to do and why? Thanks in advance.

Re: Modify Mining Speed

Posted: Sat Sep 07, 2019 12:18 pm
by DaveMcW
You can use [""] or . to access properties, but not both at the same time.

Code: Select all

data.raw["mining-drill"]["burner-mining-drill"].mining_speed = 0.33

Re: Modify Mining Speed

Posted: Sat Sep 07, 2019 12:57 pm
by Yokmp
Well, i feel dumb now ^^