mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-04 00:15:45 +02:00
autojoin comment
This commit is contained in:
parent
0282d47717
commit
8f6fba6a43
@ -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.
|
-- 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:
|
-- Auto-join the oldest crew:
|
||||||
-- local ages = {}
|
-- local ages = {}
|
||||||
-- for _, memory in pairs(global_memory.crew_memories) do
|
-- for _, memory in pairs(global_memory.crew_memories) do
|
||||||
|
@ -28,6 +28,8 @@ Public.Minimarket = require 'maps.pirates.shop.dock'
|
|||||||
|
|
||||||
function Public.print_transaction(player, multiplier, offer_itemname, offer_itemcount, price)
|
function Public.print_transaction(player, multiplier, offer_itemname, offer_itemcount, price)
|
||||||
local type = 'traded away'
|
local type = 'traded away'
|
||||||
|
|
||||||
|
---@type (string|table)[]
|
||||||
local s2 = {''}
|
local s2 = {''}
|
||||||
local s3 = offer_itemcount * multiplier .. ' ' .. offer_itemname
|
local s3 = offer_itemcount * multiplier .. ' ' .. offer_itemname
|
||||||
if offer_itemname == 'coin' then type = 'sold' end
|
if offer_itemname == 'coin' then type = 'sold' end
|
||||||
|
Loading…
Reference in New Issue
Block a user