Skip to content

Research printer config #1411

@RedRafe

Description

@RedRafe

The technology printer has a config ignore_script to ignore researches unlocked by script.

RedMew/config.lua

Lines 435 to 439 in f1fa20b

research_printer = {
enabled = true,
print_to_force = true, -- print a message to force chat when that force finishes a new research.
print_to_discord = true, -- print a message to the discord channel when the player force finishes a new research.
ignore_script = false -- ignore researches unlocked by commands or by code.

Just for the sake of discord, I think this config field should be either true by default, or re-check if event.by_script was true before printing it to our discord in order to avoid all the spam

if config.print_to_discord and force.name == 'player' then
to_discord_bold(research_name .. ' has been researched.')
end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions