XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

DeathMod

【Terraria】DeathMod (now aka Soul Harvest)

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/DeathMod

为第五形态增加全镰刀升级毕业门槛

24eec6f
XFE工作室室长 <mail@xfegzs.com>
提交于

代码差异

8 个文件 +28 -5
Modified Common/DeathAltarUpgrade.cs +2 -1
@@ -73,7 +73,8 @@ public enum DeathAltarUnavailableReason : byte
73 73 RequiresProjectile,
74 74 RequiresWingMastery,
75 75 RequiresFatedUnlock,
76 RequiresNecklaceMastery
76 RequiresNecklaceMastery,
77 RequiresAllSickleUpgrades
77 78 }
78 79
79 80 public enum DeathAltarItemStorage : byte
Modified Items/NormalSickle.cs +20 -0
@@ -145,6 +145,18 @@ public class NormalSickle : ModItem, IDeathAltarUpgradeable
145 145 public int FatedMaximumStacks => FatedUnlocked ? GetFatedMaximumStacks(FatedMaximumStacksLevel) : 0;
146 146 public int FatedStacksPerHit => FatedUnlocked ? FatedStacksPerHitLevel : 0;
147 147 public int FatedDurationFrames => FatedUnlocked ? BaseFatedDurationFrames + (FatedDurationLevel - 1) * 60 : 0;
148 public bool AllNonAdvancementUpgradesMaxed => DamageLevel >= MaxDamageLevel
149 && (!SupportsProjectileCount || ProjectileCount >= MaxProjectileCount)
150 && (!SupportsProjectileDuration || ProjectileDurationLevel >= MaxProjectileDurationLevel)
151 && ArmorPenetrationLevel >= MaxArmorPenetrationLevel
152 && LifeStealLevel >= MaxLifeStealLevel
153 && AttackSpeedLevel >= MaxAttackSpeedLevel
154 && KnockbackLevel >= MaxKnockbackLevel
155 && (!SupportsProjectileCount || HitCooldownLevel >= MaxHitCooldownLevel)
156 && FatedUnlocked
157 && FatedMaximumStacksLevel >= MaxFatedStackLevel
158 && FatedStacksPerHitLevel >= MaxFatedStacksPerHitLevel
159 && FatedDurationLevel >= MaxFatedDurationLevel;
148 160 public IReadOnlyList<DeathAltarUpgradeType> AltarUpgradeTypes => AlternateNextSickleType == ItemID.None
149 161 ? LinearUpgradeTypes
150 162 : BranchingUpgradeTypes;
@@ -323,6 +335,7 @@ public class NormalSickle : ModItem, IDeathAltarUpgradeable
323 335 return upgradeType switch
324 336 {
325 337 DeathAltarUpgradeType.Advancement => PrimaryNextSickleType == ItemID.None
338 || SickleTier == 3 && !AllNonAdvancementUpgradesMaxed
326 339 ? DeathAltarPrice.Unavailable
327 340 : DeathAltarPrice.Essence(GetAdvancementEssenceCost()),
328 341 DeathAltarUpgradeType.AlternateAdvancement => AlternateNextSickleType == ItemID.None
@@ -424,6 +437,13 @@ public class NormalSickle : ModItem, IDeathAltarUpgradeable
424 437
425 438 public DeathAltarUnavailableReason GetUnavailableReason(DeathAltarUpgradeType upgradeType)
426 439 {
440 if (upgradeType == DeathAltarUpgradeType.Advancement
441 && PrimaryNextSickleType != ItemID.None
442 && SickleTier == 3
443 && !AllNonAdvancementUpgradesMaxed)
444 {
445 return DeathAltarUnavailableReason.RequiresAllSickleUpgrades;
446 }
427 447 if ((upgradeType is DeathAltarUpgradeType.ProjectileCount or DeathAltarUpgradeType.ProjectileDuration or DeathAltarUpgradeType.HitCooldown) && !SupportsProjectileCount)
428 448 return DeathAltarUnavailableReason.RequiresProjectile;
429 449 if ((upgradeType is DeathAltarUpgradeType.FatedMaxStacks or DeathAltarUpgradeType.FatedStacksPerHit or DeathAltarUpgradeType.FatedDuration) && !FatedUnlocked)
Modified Localization/en-US.hjson +1 -0
@@ -198,6 +198,7 @@ Mods: {
198 198 RequiresWingMastery: Max all four flight attributes first
199 199 RequiresFatedUnlock: Unlock Fated first
200 200 RequiresNecklaceMastery: Max all four domain attributes first
201 RequiresAllSickleUpgrades: Max every other upgrade on this sickle before entering form 5
201 202 }
202 203
203 204 UpgradeNames: {
Modified Localization/zh-Hans.hjson +1 -0
@@ -198,6 +198,7 @@ Mods: {
198 198 RequiresWingMastery: 需先将四项飞行能力升至满级
199 199 RequiresFatedUnlock: 需先点亮命定
200 200 RequiresNecklaceMastery: 需先将四项领域能力升至满级
201 RequiresAllSickleUpgrades: 进阶第5形态前,需先将当前镰刀的其它升级全部升满
201 202 }
202 203
203 204 UpgradeNames: {
Modified README.md +1 -1
@@ -57,7 +57,7 @@ The Harvest Sickle begins at 1 base damage. Damage growth is reduced by roughly
57 57
58 58 ### Mid game — choose a branch and specialize
59 59
60 The first advancement costs 1 Soul Essence and branches into Bone Wraith or Blood Covenant. Advancing into forms 3, 4, and 5 costs 16, 32, and 99 essence respectively, so a complete route costs 148 essence.
60 The first advancement costs 1 Soul Essence and branches into Bone Wraith or Blood Covenant. Advancing into forms 3, 4, and 5 costs 16, 32, and 99 essence respectively, so a complete route costs 148 essence. Form 5 is the regular progression's ultimate form and remains locked until every other upgrade on the current form-4 sickle is maxed.
61 61
62 62 ```text
63 63 Harvest Sickle
Modified README.zh-Hans.md +1 -1
@@ -53,7 +53,7 @@ Soul Harvest(内部模组名 `DeathMod`)是一款围绕死神镰刀、人物
53 53
54 54 ### 中期:选择镰刀路线
55 55
56 进阶费用依次为 `1、16、32、99` 个灵魂精华,完整路线共 148 精华。亡骨与虚空的右键是原地释放技能,不会强制突进;收魂与炼狱则是真正的 20 格以上长距离突进。
56 进阶费用依次为 `1、16、32、99` 个灵魂精华,完整路线共 148 精华。第 5 形态是常规成长路线的终极形态,只有当前第 4 形态镰刀的其它祭坛升级全部满级后才能进阶。亡骨与虚空的右键是原地释放技能,不会强制突进;收魂与炼狱则是真正的 20 格以上长距离突进。
57 57
58 58 | 形态 | 主要特色 | 右键 | 冷却 |
59 59 | --- | --- | --- | ---: |
Modified docs/PLAY_GUIDE.md +1 -1
@@ -68,7 +68,7 @@ Advancement changes projectile behavior, slash style, effects, and right-click s
68 68 | Soul | Death Sickle | — | 99 essence |
69 69 | Void | Death Sickle | — | 99 essence |
70 70
71 Every complete route costs 148 Soul Essence. The final red Death Sickle keeps its established texture and final-form behavior; the preceding forms use the new slash and projectile systems. The optional legacy relic Death is crafted afterward for another 999 Soul Essence.
71 Every complete route costs 148 Soul Essence. Before the 99-essence form-5 advancement becomes available, the current Soul or Void sickle must have every other altar upgrade maxed, including all Fated branches. The final red Death Sickle keeps its established texture and final-form behavior; the preceding forms use the new slash and projectile systems. The optional legacy relic Death is crafted afterward for another 999 Soul Essence.
72 72
73 73 ## 5. Left-click and right-click combat
74 74
Modified docs/PLAY_GUIDE.zh-Hans.md +1 -1
@@ -68,7 +68,7 @@ Boss 不会直接掉落灵魂精华;请通过灵魂罐将奖励凝聚为精华
68 68 | 灵魂镰刀 | 死神镰刀 | — | 99 精华 |
69 69 | 虚空镰刀 | 死神镰刀 | — | 99 精华 |
70 70
71 任意完整路线都需要 148 个灵魂精华。最终红色死神镰刀保留既有最终形态贴图与行为;之前的形态使用新的斩击和投射物系统。之后制作可选的旧版遗物“死亡”还需要 999 个灵魂精华。
71 任意完整路线都需要 148 个灵魂精华。支付第 5 形态的 99 精华前,当前灵魂镰刀或虚空镰刀的其它祭坛改造必须全部满级,包括命定的全部分支。最终红色死神镰刀保留既有最终形态贴图与行为;之前的形态使用新的斩击和投射物系统。之后制作可选的旧版遗物“死亡”还需要 999 个灵魂精华。
72 72
73 73 ## 五、左右键战斗
74 74