Search found 3 matches

by HavocsCall
Fri Jun 24, 2016 6:51 pm
Forum: Modding help
Topic: Modifying multiple data.raw's in one line
Replies: 6
Views: 2387

Re: Modifying multiple data.raw's in one line



One of those things that you're taught not to do in programming; each line should only do one thing.

It just makes the code much easier to understand, if you need to look at it months down the road (or if you stop maintaining it and someone else wants to pick it up) it will be harder to ...
by HavocsCall
Fri Jun 24, 2016 6:43 pm
Forum: Modding help
Topic: Modifying multiple data.raw's in one line
Replies: 6
Views: 2387

Re: Modifying multiple data.raw's in one line

DedlySpyder wrote: Just because you can doesn't mean you should though
Why not?
by HavocsCall
Thu Jun 23, 2016 10:24 pm
Forum: Modding help
Topic: Modifying multiple data.raw's in one line
Replies: 6
Views: 2387

Modifying multiple data.raw's in one line

I am sorry if this has been posted already, but the search was not helping me

This is purely a personal "OCD" issue and curiousity, but
Is it possible to modify multiple base properties with one line?

I can get this to work
data.raw["item"]["construction-robot"].flags = {"goes-to-main-inventory ...

Go to advanced search