Page 1 of 1

LuaSurface.upgrade_area{}

Posted: Tue Mar 05, 2019 11:37 am
by DaveMcW
Please add a way to make an upgrade planner request, similar to LuaSurface.deconstruct_area{}.

LuaSurface.upgrade_area{area=…, force=…, player=…, skip_fog_of_war=…, item=…}
LuaSurface.cancel_upgrade_area{area=…, force=…, player=…, skip_fog_of_war=…, item=…}

Re: LuaSurface.upgrade_area{}

Posted: Tue Mar 19, 2019 3:53 pm
by Boodals
I have implemented this for the next version of 0.17 (I have source access).
Note that you will need to supply the upgrade planner item to the function call. This is just because of how the upgrade logic works, which I didn't want to change. If you want to, create another modding interface request asking to allow upgrading without the item, and someone else can implement that.