本Wiki中译名以官方Wiki中文语言包为准

专家模式下的钱币拾取

来自Terraria Wiki
跳转到导航 跳转到搜索
需要更新
此页面的(部分)内容需要更新,原因:
需要进行翻译。
你可以帮助我们来更新此页面。
电脑版主机版移动版
电脑版/主机版/移动版独有内容:此信息适用于电脑版主机版、和移动版《泰拉瑞亚》
Expert Mode.png
专家模式和大师模式独有内容: 此信息适用于专家模式大师模式、和这些模式下的世界。

In Expert Mode, most enemies can pick up dropped coins. They will emit a sound () when doing so. Enemies holding dropped coins emit a sparkle effect based on the color of the best coin they are holding.

Details

When the hitbox of an enemy intersects with the hitbox of a stack of dropped coins, the enemy will try to pick up some coins from the stack. An enemy can only pick up coins if the following conditions are fulfilled:[1]

  • The total value of the coins the enemy is already holding is less than the total value of the stack of coins.
  • The sum of the value of the coins the enemy is already holding and the value of the stack of coins is less than 999000000, or 999 PC.

The amount of coins picked up by the enemy is then calculated by multiplying the stack amount and a factor, rounded down, with a minimal amount of 1 coin and a maximum amount of the full stack. The factor is a random value in [0.5, 0.75] (with an increment of 0.01), and will be increased with the following conditions:

  • If the coin type is a Copper Coin: a random value in [0, 0.5] (with an increment of 0.01) is added to the factor.
  • If the coin type is a Silver Coin: a random value in [0, 0.25] (with an increment of 0.01) is added to the factor.

For example, if a stack of 25 SC is dropped, an enemy holding 30 SC will not pick up coins from it. An enemy not holding any coins can take [math]\displaystyle{ [ 25\times(0.5+0), 25\times(0.75+0.25)] }[/math] , resulting 12–25 SC after rounding.

Invulnerable enemies will never pick up coins. See below for a list of other enemies that never pick up coins.[2]

  • Enemy saving

    Several enemies saved on the minimap.

    There is also a "revenge" mechanic, which saves the info about an enemy that holds coins and respawns it when the player gets near the location. The enemy's health percentage, location, and amount of coin they are holding when they despawn are saved. The location will be displayed on the minimap by coin icons, and hovering the cursor over the icon displays the amount of coins.

    An enemy must fulfill all the following conditions to be saved.[3]

    • The enemy picked up more than 10 SC.[4]
    • The enemy is more than 41 tiles away from the top and left world border, and more than 42 tiles away from the bottom and right world border.
      • These borders refer to the real-world border that cannot be seen in-game, so as long as the enemy is within the visible world border, it can be saved.
    • The enemy is not a boss.
    • The enemy's "rarity" is not higher than 0.[5] This makes the following enemies inapplicable.
  • Enemy respawning

    When a saved location enters a 163×115-tile rectangular area centered on a player's center, the saved enemy is respawned. The respawned enemy's health will be restored to 50% if it is lower than 50%.[6] However, there are several special circumstances in which an enemy can or cannot respawn.[7] If the player approaches the saved location while the enemy cannot respawn, the saved enemy is removed and the coins are lost forever.

  • Save removal

    Enemy saves do not exist permanently. The game will remove invalid and expired enemy saves and the coins will then be lost forever.[8]

    Certain types of saved enemies will become invalid under certain conditions:[9]

  • Goblin Army
    Frost Legion
    Pirate Invasion
    Martian Madness
    Old One's Army
    Including variants from any tier of the event
    Frost Moon
    Pumpkin Moon
    Solar Eclipse
  • Enemy saves will expire after a certain amount of time. The expiration time of a saved enemy is determined by the amount of coins picked up by it.[10] Note that coin values are converted to raw Copper values (v in the following table) in the calculation (e.g. 1 PC2 GC3 SC4 CC is converted to 1020304).

    Raw value
    (v)
    Expiration time
    (ticks[11])
    v<10000 [math]\displaystyle{ 54000+72000\times\frac{\text{Raw value}-{100}}{9900} }[/math]
    10000≤v<1000000 [math]\displaystyle{ 126000+108000\times\frac{\text{Raw value}-{100}}{9900} }[/math]
    v≥1000000 450000

    History

    • 电脑版 1.4.0.1:Enemies that picked up enough coins in Expert Mode are now saved to a location when they despawn.
    • 电脑版 1.3.0.4:Fixed air items being left over when enemies pick up coins in Expert Mode.

    References

    1. 信息来自电脑版 电脑版 1.4.4.9 源代码,Terraria.Item.cs 中的 GetPickedUpByMonsters_Money() 方法。
    2. 信息来自电脑版 电脑版 1.4.4.9 源代码,Terraria.ID.NPCID.cs 中的 Sets.CantTakeLunchMoney 字段。
    3. 信息来自电脑版 电脑版 1.4.4.9 源代码,Terraria.GameContent.CoinLossRevengeSystem.cs 中的 CacheEnemy() 方法。
    4. 信息来自电脑版 电脑版 1.4.4.9 源代码,Terraria.GameContent.CoinLossRevengeSystem.cs 中的 MinimumCoinsForCaching 字段。
    5. Note that this rarity stat is the one used by the Lifeform Analyzer, not the rarity stat in the Bestiary.
    6. 信息来自电脑版 电脑版 1.4.4.9 源代码,Terraria.GameContent.CoinLossRevengeSystem.cs 中的 CheckRespawns()Terraria.GameContent.CoinLossRevengeSystem.RevengeMarker.cs 中的 SpawnEnemy() 方法 和 Terraria.GameContent.CoinLossRevengeSystem.cs 中的 _playerBoxSizeOuter 字段。
    7. 信息来自电脑版 电脑版 1.4.4.9 源代码,Terraria.GameContent.CoinLossRevengeSystem.cs 中的 CheckRespawns()Terraria.GameContent.CoinLossRevengeSystem.RevengeMarker.cs 中的 WouldNPCBeDiscouraged() 方法。
    8. 信息来自电脑版 电脑版 1.4.4.9 源代码,Terraria.GameContent.CoinLossRevengeSystem.RevengeMarker.cs 中的 IsInvalid()Terraria.GameContent.CoinLossRevengeSystem.RevengeMarker.cs 中的 IsExpired() 方法。
    9. 信息来自电脑版 电脑版 1.4.4.9 源代码,Terraria.GameContent.CoinLossRevengeSystem.RevengeMarker.cs 中的 IsInvalid()Terraria.NPC.cs 中的 GetNPCInvasionGroup() 方法。
    10. 信息来自电脑版 电脑版 1.4.4.9 源代码,Terraria.GameContent.CoinLossRevengeSystem.RevengeMarker.cs 中的 CalculateExpirationTime() 方法。
    11. 嘀嗒是可由软件计数的时间单位。《泰拉瑞亚》的大多数更新逻辑都会每嘀嗒发生一次。一个嘀嗒的长度为 1/60 秒,因此一秒钟内有 60 嘀嗒,一分钟内有 3600 嘀嗒。