Since there isn't a thread for this addon I'm posting here too. First thanks for making it, its very useful. However it has an issue where it won't be compatible with anything else that modifies last hope in the same way since it overwrites Last Hope's self.post_process. I made a workaround by changing it to preserve and call any other post_process after it does its thing like so:
Code:
class:bindHook("Zone:create", function(self, data)
if self.name == "Last Hope" then
local prev = self.post_process -- preserve any other
self.post_process = function(level)
game:onTickEnd(function()
local spot = game.level:pickSpot{type="pop-store", subtype="shop1"}
local g = game.zone:makeEntityByName(game.level, "trap", "IMPLANT_STORE")
game.zone:addEntity(game.level, g, "trap", 12, 24)
game.nicer_tiles:updateAround(game.level, 12, 24)
local spot = game.level:pickSpot{type="pop-store", subtype="shop2"}
local g = game.zone:makeEntityByName(game.level, "trap", "STEAMSAW_STORE")
game.zone:addEntity(game.level, g, "trap", 30, 14)
game.nicer_tiles:updateAround(game.level, 30, 14)
local spot = game.level:pickSpot{type="pop-store", subtype="shop3"}
local g = game.zone:makeEntityByName(game.level, "trap", "STEAMGUN_STORE")
game.zone:addEntity(game.level, g, "trap", 39, 28)
game.nicer_tiles:updateAround(game.level, 39, 28)
local spot = game.level:pickSpot{type="pop-store", subtype="shop4"}
local g = game.zone:makeEntityByName(game.level, "trap", "SCHEMATIC_STORE")
game.zone:addEntity(game.level, g, "trap", 29, 38)
game.nicer_tiles:updateAround(game.level, 29, 38)
end)
if prev ~= nil then prev(level) end
end
end
end)
I also added the fixed{} entries to to schematics store and uploaded it as
Tinker Stores in Last Hope - Tinker.