1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-15 13:53:09 +02:00

Send some info to discord

This commit is contained in:
Gerkiz 2019-03-10 21:07:06 +01:00 committed by GitHub
parent 3c17385be1
commit 227f9240e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1439,6 +1439,7 @@ local function on_market_item_purchased(event)
global.entity_limits[slot_upgrade_offers[x][1]].limit = global.entity_limits[slot_upgrade_offers[x][1]].limit + gain
game.print(player.name .. " has bought a " .. slot_upgrade_offers[x][2] .. " slot for " .. price .. " coins!", {r = 0.22, g = 0.77, b = 0.44})
server_commands.to_discord_bold(table.concat{player.name .. " has bought a " .. slot_upgrade_offers[x][2] .. " slot for " .. price .. " coins!"})
refresh_market_offers()
end
end