LuaSurface.upgrade_area{}

Post Reply
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

LuaSurface.upgrade_area{}

Post 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=…}

Boodals
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sun Feb 11, 2018 7:10 pm
Contact:

Re: LuaSurface.upgrade_area{}

Post 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.

Post Reply

Return to “Implemented mod requests”