Changing equipment attributes with tech?


#1

Hi all,

I’ve read the modding documentation on Research.data and Equipment.data, so I’ve got a good grasp on how to change both directly, but what I want to do is something in-between: I want to change the “processTime” and “processCost” of specific equipments using a new technology (therefore inside Research.data).

Is there any way to do this?


#2

Tim kindly answered me in another forum. Basically you do it by using “.” syntax, so:
{“intValue”:{“id”:“process_time.autoclave”,“change”:-1}} allows you to change the “processTime” attribute from equipment with id “autoclave” by -1. Same with “process_cost.hadron” (changes "processCost attribute of object with id “hadron”).

Thanks for the help, Tim!