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=…}
LuaSurface.upgrade_area{}
Re: LuaSurface.upgrade_area{}
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.
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.