1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2024-12-30 23:17:53 +02:00

autojoin comment

This commit is contained in:
danielmartin0 2024-09-09 13:02:43 +01:00
parent 0282d47717
commit 8f6fba6a43
2 changed files with 4 additions and 0 deletions

View File

@ -1542,6 +1542,8 @@ local function event_on_player_joined_game(event)
-- NOTE: It was suggested to always spawn players in lobby, in hopes that they may want to create their crew increasing the popularity of scenario. Hence the following code is disabled.
-- WARNING: If re-enabling autojoin, make sure it respects private/protected runs.
-- Auto-join the oldest crew:
-- local ages = {}
-- for _, memory in pairs(global_memory.crew_memories) do

View File

@ -28,6 +28,8 @@ Public.Minimarket = require 'maps.pirates.shop.dock'
function Public.print_transaction(player, multiplier, offer_itemname, offer_itemcount, price)
local type = 'traded away'
---@type (string|table)[]
local s2 = {''}
local s3 = offer_itemcount * multiplier .. ' ' .. offer_itemname
if offer_itemname == 'coin' then type = 'sold' end