缺氧 wiki 编辑团队提示:注册账号并登录后体验更佳,且可通过参数设置定制优化您的浏览体验!

该站点为镜像站点,如果你想帮助这个由玩家志愿编辑的 wiki 站点,请前往原站点参与编辑,
同时欢迎加入编辑讨论群 851803695 与其他编辑者一起参与建设!

全站通知:

模块:Data/Worldgen/Storytraits

来自缺氧WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索
Copyright.svg
授权信息

该文件来自缺氧或其开发商科雷娱乐创建的网站。该文件中出现的所有商标和注册商标均归属于科雷娱乐。详情请见版权信息。该文件被认为在本wiki上合理使用

This image comes from Oxygen Not Included or from websites created and owned by Klei Entertainment, who hold the copyright of Oxygen Not Included. All trademarks and registered trademarks present in the image are proprietary to Klei Entertainment. For more information, see the copyright notice.
The use of images to illustrate articles concerning the subject of the images in question is believed to qualify as fair use under United States copyright law, as such display does not significantly impede the right of the copyright holder to sell the copyrighted material.

return {
    ["CritterManipulator.yaml"] = {
        name = "STRINGS.CODEX.STORY_TRAITS.CRITTER_MANIPULATOR.NAME",
        description = "STRINGS.CODEX.STORY_TRAITS.CRITTER_MANIPULATOR.DESCRIPTION",
        icon = "CritterManipulator_icon",
        colorHex = "FFFFFF",
        additionalWorldTemplateRules = {
            {
                names = {
                    "storytraits/creature_manipulator",
                },
                listRule = "GuaranteeOne",
                priority = 200,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "All",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 4,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "ExceptWith",
                        temperatureRanges = {
                            "VeryHot",
                            "ExtremelyHot",
                        },
                    },
                    {
                        command = "ExceptWith",
                        zoneTypes = {
                            "OilField",
                        },
                    },
                },
            },
        },
    },
    ["FossilHunt.yaml"] = {
        name = "STRINGS.CODEX.STORY_TRAITS.FOSSILHUNT.NAME",
        description = "STRINGS.CODEX.STORY_TRAITS.FOSSILHUNT.DESCRIPTION",
        icon = "FossilHunt_icon",
        colorHex = "FFFFFF",
        additionalWorldTemplateRules = {
            {
                names = {
                    "storytraits/fossil_hunt_main",
                },
                listRule = "GuaranteeOne",
                priority = 400,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "All",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 5,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "ExceptWith",
                        temperatureRanges = {
                            "VeryHot",
                            "ExtremelyHot",
                        },
                    },
                    {
                        command = "ExceptWith",
                        zoneTypes = {
                            "OilField",
                        },
                    },
                },
            },
            {
                names = {
                    "storytraits/fossil_hunt_ice",
                },
                listRule = "TryOne",
                priority = 200,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "Replace",
                        zoneTypes = {
                            "FrozenWastes",
                        },
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 5,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                },
            },
            {
                names = {
                    "storytraits/fossil_hunt_ice",
                },
                listRule = "GuaranteeOne",
                priority = 150,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "All",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 5,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "ExceptWith",
                        temperatureRanges = {
                            "VeryHot",
                            "ExtremelyHot",
                        },
                    },
                    {
                        command = "ExceptWith",
                        zoneTypes = {
                            "OilField",
                        },
                    },
                },
            },
            {
                names = {
                    "storytraits/fossil_hunt_rock",
                },
                listRule = "TryOne",
                priority = 300,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "Replace",
                        zoneTypes = {
                            "MagmaCore",
                        },
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "Replace",
                        tagcommand = "DistanceFromTag",
                        tag = "AtDepths",
                        minDistance = 1,
                        maxDistance = 1,
                    },
                },
            },
            {
                names = {
                    "storytraits/fossil_hunt_rock",
                },
                listRule = "TryOne",
                priority = 175,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "Replace",
                        zoneTypes = {
                            "OilField",
                        },
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                },
            },
            {
                names = {
                    "storytraits/fossil_hunt_rock",
                },
                listRule = "GuaranteeOne",
                priority = 150,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "All",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                },
            },
            {
                names = {
                    "storytraits/fossil_hunt_resin",
                },
                listRule = "TryOne",
                priority = 200,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "All",
                    },
                    {
                        command = "Replace",
                        zoneTypes = {
                            "BoggyMarsh",
                            "Forest",
                        },
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 5,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                },
            },
            {
                names = {
                    "storytraits/fossil_hunt_resin",
                },
                listRule = "GuaranteeOne",
                priority = 150,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "All",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 5,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "ExceptWith",
                        temperatureRanges = {
                            "VeryHot",
                            "ExtremelyHot",
                        },
                    },
                    {
                        command = "ExceptWith",
                        zoneTypes = {
                            "OilField",
                        },
                    },
                },
            },
        },
    },
    ["LonelyMinion.yaml"] = {
        name = "STRINGS.CODEX.STORY_TRAITS.LONELYMINION.NAME",
        description = "STRINGS.CODEX.STORY_TRAITS.LONELYMINION.DESCRIPTION",
        icon = "LonelyMinion_icon",
        colorHex = "FFFFFF",
        additionalWorldTemplateRules = {
            {
                names = {
                    "storytraits/lonelyminion",
                },
                listRule = "GuaranteeOne",
                priority = 200,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "All",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 5,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "ExceptWith",
                        temperatureRanges = {
                            "VeryHot",
                            "ExtremelyHot",
                        },
                    },
                    {
                        command = "ExceptWith",
                        zoneTypes = {
                            "OilField",
                        },
                    },
                },
            },
        },
    },
    ["MegaBrainTank.yaml"] = {
        name = "STRINGS.CODEX.STORY_TRAITS.MEGA_BRAIN_TANK.NAME",
        description = "STRINGS.CODEX.STORY_TRAITS.MEGA_BRAIN_TANK.DESCRIPTION",
        icon = "MegaBrainTank_icon",
        colorHex = "FFFFFF",
        additionalWorldTemplateRules = {
            {
                names = {
                    "storytraits/mega_brain_tank",
                },
                listRule = "GuaranteeOne",
                priority = 200,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "All",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 5,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "ExceptWith",
                        temperatureRanges = {
                            "VeryHot",
                            "ExtremelyHot",
                        },
                    },
                    {
                        command = "ExceptWith",
                        zoneTypes = {
                            "OilField",
                        },
                    },
                },
            },
        },
    },
    ["MorbRoverMaker.yaml"] = {
        name = "STRINGS.CODEX.STORY_TRAITS.MORB_ROVER_MAKER.NAME",
        description = "STRINGS.CODEX.STORY_TRAITS.MORB_ROVER_MAKER.DESCRIPTION",
        icon = "MorbRover_icon",
        colorHex = "FFFFFF",
        additionalWorldTemplateRules = {
            {
                names = {
                    "storytraits/morb_rover_maker",
                },
                listRule = "GuaranteeOne",
                priority = 400,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "All",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 1,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 6,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "ExceptWith",
                        temperatureRanges = {
                            "VeryHot",
                            "ExtremelyHot",
                        },
                    },
                    {
                        command = "ExceptWith",
                        zoneTypes = {
                            "OilField",
                        },
                    },
                },
            },
            {
                names = {
                    "storytraits/morb_rover_maker_ext1",
                },
                listRule = "TryOne",
                priority = 200,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "Replace",
                        zoneTypes = {
                            "OilField",
                        },
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 8,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "ExceptWith",
                        temperatureRanges = {
                            "ExtremelyHot",
                        },
                    },
                },
            },
            {
                names = {
                    "storytraits/morb_rover_maker_ext1",
                },
                listRule = "GuaranteeOne",
                priority = 180,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "All",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 8,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "ExceptWith",
                        temperatureRanges = {
                            "ExtremelyHot",
                        },
                    },
                },
            },
            {
                names = {
                    "storytraits/morb_rover_maker_ext2",
                },
                listRule = "TryOne",
                priority = 200,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "Replace",
                        zoneTypes = {
                            "OilField",
                        },
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 8,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "ExceptWith",
                        temperatureRanges = {
                            "ExtremelyHot",
                        },
                    },
                },
            },
            {
                names = {
                    "storytraits/morb_rover_maker_ext2",
                },
                listRule = "GuaranteeOne",
                priority = 180,
                useRelaxedFiltering = true,
                allowedCellsFilter = {
                    {
                        command = "All",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "AtTag",
                        tag = "NoGlobalFeatureSpawning",
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 0,
                        maxDistance = 2,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtStart",
                        minDistance = 8,
                        maxDistance = 99,
                        ignoreIfMissingTag = true,
                    },
                    {
                        command = "ExceptWith",
                        tagcommand = "DistanceFromTag",
                        tag = "AtSurface",
                        minDistance = 0,
                        maxDistance = 2,
                    },
                    {
                        command = "ExceptWith",
                        temperatureRanges = {
                            "ExtremelyHot",
                        },
                    },
                },
            },
        },
    },
}