生物群落蔓延

来自Terraria Wiki
跳转至: 导航搜索
此页面的(部分)内容需要被翻译。
你可以帮助我们来翻译此页面
对于关于控制生物群落蔓延的指南,参见指南:维护世界的纯净度

邪恶生物群落神圣之地,不像其他的生物群落,它们可以把自己散布到其他地方。 They slowly convert ("infect") certain susceptible tiles which are near their own, biome-exclusive tiles, to their respective biome counterparts, increasing the range of the biome. The exact rules for biome spread are subtly different for each of the three infectious biomes, as described at length below.

Collectively, these three biomes can be called the "infectious biomes". Blocks and walls which are vulnerable to infection are called "corruptible", those which cannot be infected under any circumstances are "non-corruptible". Blocks and walls which could be infected, but have not been, are called "pure".

Biome spread starts immediately upon world generation, is greatly enhanced and sped up after defeating the Wall of Flesh (i.e. after initiating Hardmode) for the first time, and is slowed down again after defeating Plantera. Once Hardmode begins, the world's evil biome and the Hallow have few restrictions on their spread, and without player effort, they will eventually take over almost the entire world between them.

This process is part of the game's "tile update cycle": Every game tick,[1] the game chooses a handful of tiles to update, which covers several processes including biome spread. The tiles above, and below, the surface level are selected in separate passes; as an approximation, "surface" tiles will each average about one update every 140 seconds, while "underground" tiles each average about one update every 830 seconds. (That is, aboveground tiles get updated about six times as often as belowground tiles, so biome spread will be that much faster above ground.) Due to the random selection method, even the averages here are approximate, and the actual length of time between a given tile's updates can vary wildly. When an infected tile is updated, it is considered as a potential "source tile", which can infect multiple other tiles in a single update.

Spreading tiles[编辑 | 编辑源代码]

Only the following blocks and plants of a biome are capable of converting susceptible tiles in their vicinity. Blocks and plants can convert blocks, plants, and walls, while walls can only convert other walls (see below for the latter case). None of the three biomes can convert each other's blocks, with the exception of grass (see below for details).

Corruption Crimson Hallow
腐化草腐化草 猩红草猩红草 神圣草神圣草
黑檀石块黑檀石块 猩红石块猩红石块 珍珠石块珍珠石块
Crimson plants like grass and flowers Hallowed plants like tall grass and flowers
毒蘑菇毒蘑菇电脑版主机版移动版
腐化多刺灌木腐化多刺灌木 猩红多刺灌木猩红多刺灌木
猩红蔓藤猩红蔓藤 神圣蔓藤神圣蔓藤
紫冰雪块紫冰雪块 红冰雪块红冰雪块 粉冰雪块粉冰雪块
黑檀沙块黑檀沙块 猩红沙块猩红沙块 珍珠沙块珍珠沙块
黑檀沙岩块黑檀沙岩块电脑版主机版移动版 猩红沙岩块猩红沙岩块电脑版主机版移动版 珍珠沙岩块珍珠沙岩块电脑版主机版移动版
硬化黑檀沙块硬化黑檀沙块电脑版主机版移动版 硬化猩红沙块硬化猩红沙块电脑版主机版移动版 硬化珍珠沙块硬化珍珠沙块电脑版主机版移动版

Note the inconsistency here: While Crimson plants and Vicious Mushrooms are able to act as source tiles, their Corruption equivalents, Corrupt plants and Vile Mushrooms, are not.

Pre-Hardmode spread[编辑 | 编辑源代码]

In pre-Hardmode, the three biomes can only spread in a very limited way: The only spreading tiles are Corrupt, Crimson, and Hallowed grass and Corruption and Crimson thorny bushes. See below for the intricacies of grass spread.

Even though the Hallow is usually not present in a pre-Hardmode world, it does spread when artificially seeded pre-Hardmode.

Hardmode spread[编辑 | 编辑源代码]

In Hardmode, the pre-Hardmode grass spreading remains unchanged. However, many more tiles become susceptible to conversion and will spread much faster. Read the table in the following way: Any of the spreading tiles can convert any of the pure tiles that is within three tiles from it to the respective converted tile.[2]

Hardmode Spread Overview
Pure Tile Converted Corrupt Tile Converted Crimson Tile Converted Hallowed Tile
草 腐化草腐化草 猩红草猩红草 神圣草神圣草
石块石块 黑檀石块黑檀石块 猩红石块猩红石块 珍珠石块珍珠石块
泥块泥块 土块土块 土块土块
冰雪块冰雪块 紫冰雪块紫冰雪块 红冰雪块红冰雪块 粉冰雪块粉冰雪块
沙块沙块 黑檀沙块黑檀沙块 猩红沙块猩红沙块 珍珠沙块珍珠沙块
硬化沙块硬化沙块电脑版主机版移动版 硬化黑檀沙块硬化黑檀沙块电脑版主机版移动版 硬化猩红沙块硬化猩红沙块电脑版主机版移动版 硬化珍珠沙块硬化珍珠沙块电脑版主机版移动版
沙岩块沙岩块电脑版主机版移动版 黑檀沙岩块黑檀沙岩块电脑版主机版移动版 猩红沙岩块猩红沙岩块电脑版主机版移动版 珍珠沙岩块珍珠沙岩块电脑版主机版移动版
丛林草丛林草 腐化草腐化草(converting the Mud Block underneath) 猩红草猩红草(converting the Mud Block underneath)
丛林多刺灌木丛林多刺灌木 腐化多刺灌木腐化多刺灌木 猩红多刺灌木猩红多刺灌木

Defeating Plantera for the first time reduces the speed of the biomes' spread to 1/2 (50%) of the default Hardmode speed.

Grass[编辑 | 编辑源代码]

Like regular grass, the evil and Hallowed variants spread as well. The mechanics described in this section do not change upon initiating Hardmode or defeating Plantera but instead remain the same for the entirety of the game.

For the purposes of grass spread, Corruption and Crimson thorny bushes are considered Corrupt/Crimson grass blocks, respectively.

The following general restrictions apply to all forms of grass spread:

  • Grass does not spread below the surface whatsoever.
  • Grass only spreads to adjacent tiles, i.e., tiles within the eight tiles directly surrounding the spreading tile.
  • Grass does not spread to tiles that have lava in one of their adjacent tiles.
  • Grass only spreads to tiles that have at least one tile of open space within their adjacent tiles.

All grass variants will spread to Dirt Blocks. Furthermore, evil and Hallowed grass blocks can convert other grass as follows:

Spreading Grass Tile Converts Grass
PurePure 腐化腐化 猩红猩红 神圣神圣
腐化草腐化草 是 否 是
猩红草猩红草 是 否 否
神圣草神圣草 是 是 是

All three grass variants spread in an equal manner, hence there is none that is "faster" or "stronger", for example. Therefore, neighboring Corrupt and Hallowed grass will often weave back and forth, without much actual change (on average; it always depends on Terraria's randomizers). Crimson grass will always quickly be overtaken by Hallowed grass, though, due to its inability to "retaliate" and convert Hallowed grass back to Crimson.

In Hardmode, Corrupt, Crimson, and Hallowed grass will still grow to Dirt Blocks and infect other grass as described above. However, they additionally gain the ability to convert any corruptible tile within three tiles (just like the other spreading tiles) – including pure grass. Converting a tile that way is handled differently and thus the restrictions outlined above do not apply. This allows them, for example, to infect pure grass below the surface, something which is not possible pre-Hardmode.

Corrupt and Crimson grass will never convert any tile underneath a Sunflower. Note that while in pre-Hardmode, Sunflowers thus serve as an effective barrier, evil grass will be able to spread to tiles up to three tiles away in Hardmode, easily bypassing a single Sunflower.

Background Walls[编辑 | 编辑源代码]

对于a technical explanation and the complete algorithm in detail,参见Talk:Biome spread#Wall Conversion Algorithm in Detail

Background walls cannot infect blocks, but they can be infected by blocks, and they can infect certain other walls within certain restrictions. Walls can also be converted by the initial Hardmode transition, or manually by the player.

  • Natural or placed Grass Walls, Jungle Walls, and Flower Walls are all converted to infected Grass walls. Only pure walls are infected, and then cannot be re-infected by a different infection.
  • Natural or placed Sandstone Walls or Hardened Sand Walls are converted to the corresponding biome wall. Even if infected, these can be re-infected and converted to a different biome.
  • Stone walls cannot be infected this way, but Ebonstone and Crimstone walls can infect the other wall types listed above.
  • In all cases, any wall undergoing biome conversion (including from Thrown Water or the Clentaminator) thereafter qualifies as a natural wall. This may affect enemy spawning, and perhaps the presence of the various Underground Desert biomes.
Pure Wall Corruption Crimson Hallow
草墙草墙
花墙花墙
腐化草墙腐化草墙 猩红草墙猩红草墙 神圣草墙神圣草墙
丛林墙丛林墙 腐化草墙腐化草墙 猩红草墙猩红草墙
石墙石墙 黑檀石墙黑檀石墙 猩红石墙猩红石墙 珍珠石墙珍珠石墙
硬化沙墙硬化沙墙电脑版主机版移动版 硬化黑檀沙墙硬化黑檀沙墙电脑版主机版移动版 硬化猩红沙墙硬化猩红沙墙电脑版主机版移动版 硬化珍珠沙墙硬化珍珠沙墙电脑版主机版移动版
沙岩墙沙岩墙电脑版主机版移动版 黑檀沙岩墙黑檀沙岩墙电脑版主机版移动版 猩红沙岩墙猩红沙岩墙电脑版主机版移动版 珍珠沙岩墙珍珠沙岩墙电脑版主机版移动版

There are two overlapping patterns ("grassy" and "sandy") for infection of walls, depending on the contents of the source tile. Both patterns are considered for each tile update, and can separately infect different walls. The behavior can also vary according to whether the tile is above or below surface level, and which infection is being considered.

Common Rules[编辑 | 编辑源代码]

  • In all cases, wall infection range is 2 tiles (a 5×5 rectangle centered on the source tile), compared to 3 tiles for most blocks.
    • As with blocks, Hallow cannot infect Jungle Walls
  • For a source tile to infect a wall, it must find a qualifying foreground block or plant with the infection in question (collectively, "biome blocks") either in the source tile, or within 20 tiles of it.
    • The qualifying biome blocks vary with context, but the following blocks always qualify: Grass, Ice, Stone, Sand, and Vines.
    • For Crimson, or to infect any grassy wall below surface level, the biome block must be in the source tile.
    • Otherwise (infecting a grassy wall above surface level with Corruption or Hallow or any sandy wall), the biome block can be found anywhere in a 20-tile range (a 41×41 rectangle centered on the source tile).

Grassy Wall Infection[编辑 | 编辑源代码]

If the source tile includes any natural infected Grass Wall, natural infected Stone Wall (except Pearlstone Wall) or infected grass block, then it can attempt to infect a pure Grass, Flower, or Jungle Wall. Both natural and player-placed walls of these types can be infected.

  • Each of the infectious biomes is checked in turn: Crimson, then Corruption, then Hallow. If the tile has a qualifying wall and a grass tile from different biomes, it can attempt to spread both biomes.
    • For each infection attempt, a single tile within range is chosen, and if it is a pure grassy wall, it will be infected.
    • Again, infection needs a "biome block" as above:
      • For Crimson or if below surface level, then the biome block must be in the source tile, otherwise within 20 tiles.
      • In addition to the list from above (Grass, Ice, Stone, Sand, and Vines), Demonite Ore qualifies for Corruption. It only qualifies as a biome block in this step, and Crimtane Ore does not qualify for Crimson.
      • Most biome-specific plants (if infected) also qualify as biome blocks here. This includes thorny bushes, tall grass/flowers (that is, growing from proper grass blocks), Vile/Vicious Mushrooms, and (again) vines.
    • As above, Hallow cannot infect Jungle Walls, and Pearlstone Walls cannot infect grassy walls at all.

Sandy Wall Infection[编辑 | 编辑源代码]

If the source tile contains any Sandstone Wall, any Hardened Sand Wall, and/or any Sandstone Block, then it can attempt to infect a Hardened Sand or Sandstone Wall.

  • Only Hardened Sand or Sandstone Walls, pure or with any infection, are converted this way.
  • Unlike with grassy walls, only one biome is chosen, and then a single nearby tile is chosen for an infection attempt.
    • To attempt infection, the source tile must have an infected wall and/or an infected biome block.
      • Qualifying walls include Grass, Stone, Sandstone, or Hardened Sand. (Note that the first two imply a Sandstone Block from the first step)
      • Qualifying biome blocks include the list from above (Grass, Ice, Stone, Sand, and Vines), or Sandstone Blocks, but not other plants.
      • If the tile has different infections for wall and block/vine, Crimson takes priority, then Hallow. Corruption applies only if there is no competing infection.

Notes[编辑 | 编辑源代码]

  • Spreading tiles can spread their biome even if there are non-corruptible blocks "in the way". For example, a one-block-wide wall of Wood between an Ebonstone Block and a pure grass block will not prevent the grass from being converted (in Hardmode; Ebonstone does not spread pre-Hardmode) because the Ebonstone can convert any tile within three tiles.
  • The Crimson and the Hallow grow vines from beneath their respective grass blocks. These vines can spread their biomes to nearby blocks (in Hardmode) and walls as above. There are no Corrupt vines.
    • Vines can never be converted themselves.
  • Thorny bushes grow from Corrupt and Crimson grass blocks, can extend a significant distance in any direction, and can furthermore spread the Corruption and Crimson, even over non-corruptible blocks. Therefore, it is possible for an evil biome to spread over a gap in pre-Hardmode, if its thorny bushes happen to grow across it and touch dirt or grass on the other side.
  • Chlorophyte Ore and Chlorophyte Bricks limit the spread of the evil biomes:
    • If the Corruption attempts to convert either a Mud Block or a Jungle grass block, or if at least one of the four tiles directly surrounding the target tile is a Mud or Jungle grass block, then it will check for the existence of nearby Chlorophyte: If there are at least 5 Chlorophyte tiles (regardless of whether Ore or Brick, both are added) within a radius of 10 tiles, the conversion will fail entirely. If there are less than 5, but more than 0 Chlorophyte tiles, there is a chance of <tiles>/5 (e.g. 3/5 if there are 3 Chlorophyte tiles) for the conversion to fail.[3]
    • The Crimson will always check for nearby Chlorophyte, regardless of the target or adjacent blocks.
    • Chlorophyte Ore can also turn nearby dirt into mud, partly countering conversion damage to the Jungle.
  • Stone Blocks with moss on them will be treated like regular Stone Blocks. The moss will be destroyed upon conversion.

References[编辑 | 编辑源代码]

  1. 嘀嗒是可由软件计数的时间单位。泰拉瑞亚的大多数更新逻辑都会每嘀嗒发生一次。一个嘀嗒的长度为 1/60 秒,因此一秒钟内有 60 嘀嗒,一分钟内有 3600 嘀嗒。
  2. 信息来自电脑版 电脑版 1.3.5.3 源代码,function HardUpdateWorld() in Terraria.WorldGen.cs
  3. 信息来自电脑版 电脑版 1.3.5.3 源代码,function nearbyChlorophyte() in Terraria.WorldGen.cs