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

DeathMod

【Terraria】DeathMod (now aka Soul Harvest)

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

XFEstudio/DeathMod

完善领域多角度连续处决刀光

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

代码差异

7 个文件 +162 -87
Modified Common/MyPlayer.cs +5 -27
@@ -392,10 +392,6 @@ public class MyPlayer : ModPlayer
392 392 ? pending.Rotation
393 393 : Main.rand.NextFloat(MathHelper.TwoPi);
394 394 SpawnDeathDomainHarvestSlash(target, necklace, visualMastery, requiem, rotation);
395
396 // Resolve damage after broadcasting the visual so a lethal first cut is
397 // still shown to every client.
398 ApplyDeathDomainHarvest(target, necklace);
399 395 }
400 396 ClearDeathDomainTelegraphs();
401 397 }
@@ -430,7 +426,7 @@ public class MyPlayer : ModPlayer
430 426 Player.whoAmI,
431 427 target.whoAmI,
432 428 remainingFrames,
433 visualMastery);
429 necklace.SlashCount + visualMastery * 0.1f);
434 430 if (projectileIndex >= 0 && projectileIndex < Main.maxProjectiles)
435 431 {
436 432 Projectile telegraph = Main.projectile[projectileIndex];
@@ -444,12 +440,13 @@ public class MyPlayer : ModPlayer
444 440
445 441 private void SpawnDeathDomainHarvestSlash(NPC target, DeathNecklace necklace, float visualMastery, bool requiem, float rotation)
446 442 {
443 int slashDamage = CalculateDeathDomainSlashDamage(target, necklace);
447 444 int projectileIndex = Projectile.NewProjectile(
448 445 Player.GetSource_Misc("DeathMod:DeathDomain"),
449 446 target.Center,
450 447 Vector2.Zero,
451 448 ModContent.ProjectileType<DeathDomainHarvestSlashProjectile>(),
452 0,
449 slashDamage,
453 450 0f,
454 451 Player.whoAmI,
455 452 target.whoAmI,
@@ -536,32 +533,13 @@ public class MyPlayer : ModPlayer
536 533 return targets;
537 534 }
538 535
539 private void ApplyDeathDomainHarvest(NPC target, DeathNecklace necklace)
536 private static int CalculateDeathDomainSlashDamage(NPC target, DeathNecklace necklace)
540 537 {
541 538 bool bossOrBossPart = target.boss
542 539 || NPCID.Sets.ShouldBeCountedAsBoss[target.type]
543 540 || target.realLife >= 0 && target.realLife < Main.maxNPCs && Main.npc[target.realLife].boss;
544 541 float lifeRatio = bossOrBossPart ? necklace.BossSlashLifeRatio : necklace.NormalSlashLifeRatio;
545 int slashDamage = Math.Max(1, (int)Math.Ceiling(target.lifeMax * lifeRatio));
546 MyGlobalNPC targetData = target.GetGlobalNPC<MyGlobalNPC>();
547 targetData.RegisterSickleHit(target, Player.whoAmI);
548 target.lastInteraction = Player.whoAmI;
549
550 for (int slash = 0; slash < necklace.SlashCount && target.active && target.life > 0; slash++)
551 {
552 NPC.HitInfo harvestHit = new()
553 {
554 Damage = slashDamage,
555 SourceDamage = slashDamage,
556 HitDirection = 0,
557 Knockback = 0f,
558 DamageType = DamageClass.Generic,
559 Crit = false
560 };
561 target.StrikeNPC(harvestHit, fromNet: false, noPlayerInteraction: false);
562 if (Main.netMode == NetmodeID.Server)
563 NetMessage.SendStrikeNPC(target, in harvestHit);
564 }
542 return Math.Max(1, (int)Math.Ceiling(target.lifeMax * lifeRatio));
565 543 }
566 544
567 545 private void SyncSoulBalance()
Modified Projectiles/DeathDomainHarvestSlashProjectile.cs +134 -40
@@ -1,3 +1,4 @@
1 using DeathMod.Common;
1 2 using Microsoft.Xna.Framework;
2 3 using Microsoft.Xna.Framework.Graphics;
3 4 using System;
@@ -71,19 +72,22 @@ public class DeathDomainHarvestSlashProjectile : ModProjectile
71 72 if (TargetIndex >= 0 && TargetIndex < Main.maxNPCs && Main.npc[TargetIndex].active)
72 73 Projectile.Center = Main.npc[TargetIndex].Center;
73 74
74 if (Main.dedServ)
75 return;
76
77 75 int age = TotalLifetime - Projectile.timeLeft;
78 76 int emittedMask = (int)Projectile.localAI[0];
79 77 for (int slash = 0; slash < SlashCount; slash++)
80 78 {
79 int slashAge = age - slash * SlashDelayFrames;
81 80 int bit = 1 << slash;
82 if ((emittedMask & bit) != 0 || age < slash * SlashDelayFrames)
83 continue;
81 if ((emittedMask & bit) == 0 && slashAge >= 0)
82 {
83 emittedMask |= bit;
84 ApplyHarvestDamage();
85 if (!Main.dedServ)
86 SpawnExecutionBurst(slash);
87 }
84 88
85 emittedMask |= bit;
86 SpawnExecutionBurst();
89 if (!Main.dedServ && slashAge is >= 0 and < 9)
90 SpawnTravellingEdge(slash, slashAge / 8f);
87 91 }
88 92 Projectile.localAI[0] = emittedMask;
89 93 }
@@ -94,80 +98,133 @@ public class DeathDomainHarvestSlashProjectile : ModProjectile
94 98 for (int slash = 0; slash < SlashCount; slash++)
95 99 {
96 100 float progress = (age - slash * SlashDelayFrames) / (float)SlashActiveFrames;
97 if (progress <= 0f || progress >= 1f)
101 if (progress <= 0f)
102 {
103 DrawPendingCut(slash);
104 continue;
105 }
106 if (progress >= 1f)
98 107 continue;
99 108 DrawExecutionBlade(progress, slash);
100 109 }
101 110 return false;
102 111 }
103 112
113 private void DrawPendingCut(int slash)
114 {
115 float rotation = GetSlashRotation(Projectile.rotation, slash);
116 float length = GetSlashLength(Mastery, Projectile.scale, slash);
117 float pulse = 0.72f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 13f + slash * 2.1f) * 0.18f;
118 DrawTaperedBladeLayer(
119 Projectile.Center - Main.screenPosition,
120 rotation,
121 length,
122 (1.55f + Mastery * 0.5f) * Projectile.scale,
123 1f,
124 new Color(255, 8, 48, 0) * pulse);
125 }
126
104 127 private void DrawExecutionBlade(float progress, int slash)
105 128 {
106 float appear = Smooth01(progress / 0.16f);
107 float disappear = 1f - Smooth01((progress - 0.52f) / 0.48f);
108 float strength = appear * disappear;
109 float impact = (float)Math.Pow(Math.Max(0f, Math.Sin(MathHelper.Pi * progress)), 0.58f);
110 float repetitionPulse = 0.94f + 0.06f * (float)Math.Sin((slash + 1) * 2.7f);
111 float length = (126f + Mastery * 76f + (IsRequiem ? 46f : 0f)) * Projectile.scale * repetitionPulse;
112 float width = (28f + Mastery * 18f + (IsRequiem ? 12f : 0f)) * Projectile.scale * impact;
129 float reveal = Smooth01(progress / 0.50f);
130 float disappear = 1f - Smooth01((progress - 0.58f) / 0.42f);
131 float strength = Smooth01(progress / 0.08f) * disappear;
132 float rotation = GetSlashRotation(Projectile.rotation, slash);
133 float length = GetSlashLength(Mastery, Projectile.scale, slash);
134 float width = (28f + Mastery * 18f + (IsRequiem ? 12f : 0f)) * Projectile.scale;
113 135 Vector2 center = Projectile.Center - Main.screenPosition;
114 136
115 137 // Three passes over the exact same tapered silhouette produce one integrated
116 // blade rather than a bundle of separate straight laser strips.
117 DrawTaperedBladeLayer(center, length, width * 1.52f,
138 // blade. reveal advances from t=0 to t=1, so the cut travels from one tip
139 // toward the other instead of opening outward from its center.
140 DrawTaperedBladeLayer(center, rotation, length, width * 1.52f, reveal,
118 141 new Color(92, 0, 22, 0) * (strength * 0.54f));
119 DrawTaperedBladeLayer(center, length, width,
142 DrawTaperedBladeLayer(center, rotation, length, width, reveal,
120 143 new Color(255, 8, 48, 255) * strength);
121 DrawTaperedBladeLayer(center, length * 0.985f, width * 0.62f,
144 DrawTaperedBladeLayer(center, rotation, length * 0.985f, width * 0.62f, reveal,
122 145 Color.Black * Math.Min(1f, strength * 1.32f));
123 146
124 Vector2 direction = Projectile.rotation.ToRotationVector2();
147 Vector2 direction = rotation.ToRotationVector2();
125 148 Vector2 normal = direction.RotatedBy(MathHelper.PiOver2);
126 float endpointDistance = length * 0.5f;
149 Vector2 start = center - direction * length * 0.5f;
150 Vector2 cuttingEdge = start + direction * (length * reveal);
127 151 float spark = (8f + Mastery * 5f) * Projectile.scale * strength;
128 DrawSegment(center + direction * endpointDistance - normal * spark,
129 center + direction * endpointDistance + normal * spark,
130 new Color(255, 12, 52, 0) * strength,
131 1.6f + Mastery);
132 DrawSegment(center - direction * endpointDistance - normal * spark,
133 center - direction * endpointDistance + normal * spark,
152 DrawSegment(cuttingEdge - normal * spark,
153 cuttingEdge + normal * spark,
134 154 new Color(255, 12, 52, 0) * strength,
135 155 1.6f + Mastery);
136 156 }
137 157
138 private void DrawTaperedBladeLayer(Vector2 center, float length, float maximumWidth, Color color)
158 private static void DrawTaperedBladeLayer(Vector2 center, float rotation, float length, float maximumWidth, float reveal, Color color)
139 159 {
140 if (maximumWidth <= 0.05f)
160 if (maximumWidth <= 0.05f || reveal <= 0f)
141 161 return;
142 162
143 Vector2 direction = Projectile.rotation.ToRotationVector2();
163 Vector2 direction = rotation.ToRotationVector2();
144 164 Vector2 start = center - direction * length * 0.5f;
145 165 const int pieces = 36;
146 for (int piece = 0; piece < pieces; piece++)
166 int visiblePieces = Math.Clamp((int)Math.Ceiling(reveal * pieces), 1, pieces);
167 for (int piece = 0; piece < visiblePieces; piece++)
147 168 {
148 169 float t0 = piece / (float)pieces;
149 float t1 = (piece + 1f) / pieces;
170 float t1 = Math.Min(reveal, (piece + 1f) / pieces);
171 if (t1 <= t0)
172 continue;
150 173 float middle = (t0 + t1) * 0.5f;
151 float taper = (float)Math.Pow(Math.Max(0f, Math.Sin(MathHelper.Pi * middle)), 0.64f);
174 float bodyTaper = (float)Math.Pow(Math.Max(0f, Math.Sin(MathHelper.Pi * middle)), 0.64f);
175 float movingTipTaper = Smooth01((reveal - middle) / 0.075f);
152 176 DrawSegment(
153 177 start + direction * (length * t0),
154 178 start + direction * (length * t1 + 0.8f),
155 179 color,
156 Math.Max(0.15f, maximumWidth * taper));
180 Math.Max(0.15f, maximumWidth * bodyTaper * movingTipTaper));
181 }
182 }
183
184 private void ApplyHarvestDamage()
185 {
186 if (Main.netMode == NetmodeID.MultiplayerClient
187 || Projectile.damage <= 0
188 || Projectile.owner < 0
189 || Projectile.owner >= Main.maxPlayers
190 || TargetIndex < 0
191 || TargetIndex >= Main.maxNPCs)
192 {
193 return;
157 194 }
195
196 NPC target = Main.npc[TargetIndex];
197 if (!target.active || target.friendly || target.immortal || target.dontTakeDamage || target.life <= 0)
198 return;
199
200 target.GetGlobalNPC<MyGlobalNPC>().RegisterSickleHit(target, Projectile.owner);
201 target.lastInteraction = Projectile.owner;
202 NPC.HitInfo harvestHit = new()
203 {
204 Damage = Projectile.damage,
205 SourceDamage = Projectile.damage,
206 HitDirection = 0,
207 Knockback = 0f,
208 DamageType = DamageClass.Generic,
209 Crit = false
210 };
211 target.StrikeNPC(harvestHit, fromNet: false, noPlayerInteraction: false);
212 if (Main.netMode == NetmodeID.Server)
213 NetMessage.SendStrikeNPC(target, in harvestHit);
158 214 }
159 215
160 private void SpawnExecutionBurst()
216 private void SpawnExecutionBurst(int slash)
161 217 {
162 Vector2 direction = Projectile.rotation.ToRotationVector2();
218 float rotation = GetSlashRotation(Projectile.rotation, slash);
219 Vector2 direction = rotation.ToRotationVector2();
163 220 Vector2 normal = direction.RotatedBy(MathHelper.PiOver2);
164 float length = (126f + Mastery * 76f + (IsRequiem ? 46f : 0f)) * Projectile.scale;
221 float length = GetSlashLength(Mastery, Projectile.scale, slash);
222 Vector2 start = Projectile.Center - direction * length * 0.5f;
165 223 int count = 10 + (int)(Mastery * 8f) + (IsRequiem ? 5 : 0);
166 224 for (int i = 0; i < count; i++)
167 225 {
168 float along = Main.rand.NextFloat(-0.5f, 0.5f) * length;
169 Vector2 position = Projectile.Center + direction * along;
170 Vector2 velocity = normal * Main.rand.NextFloat(-4.8f, 4.8f) + direction * Main.rand.NextFloat(-0.8f, 0.8f);
226 Vector2 position = start + direction * Main.rand.NextFloat(0f, length * 0.12f);
227 Vector2 velocity = normal * Main.rand.NextFloat(-4.8f, 4.8f) + direction * Main.rand.NextFloat(1.2f, 3.6f);
171 228 int dustType = i % 3 == 0 ? DustID.Shadowflame : DustID.RedTorch;
172 229 Dust dust = Dust.NewDustPerfect(
173 230 position,
@@ -181,6 +238,43 @@ public class DeathDomainHarvestSlashProjectile : ModProjectile
181 238 }
182 239 }
183 240
241 private void SpawnTravellingEdge(int slash, float progress)
242 {
243 float reveal = Smooth01(progress);
244 float rotation = GetSlashRotation(Projectile.rotation, slash);
245 Vector2 direction = rotation.ToRotationVector2();
246 Vector2 normal = direction.RotatedBy(MathHelper.PiOver2);
247 float length = GetSlashLength(Mastery, Projectile.scale, slash);
248 Vector2 position = Projectile.Center - direction * length * 0.5f + direction * length * reveal;
249 Dust dust = Dust.NewDustPerfect(
250 position + normal * Main.rand.NextFloat(-4f, 4f) * Projectile.scale,
251 Main.rand.NextBool(3) ? DustID.Shadowflame : DustID.RedTorch,
252 normal * Main.rand.NextFloat(-2.4f, 2.4f),
253 70,
254 new Color(255, 10, 50),
255 Main.rand.NextFloat(0.62f, 1.05f));
256 dust.noGravity = true;
257 }
258
259 internal static float GetSlashRotation(float baseRotation, int slash)
260 {
261 if (slash <= 0)
262 return baseRotation;
263
264 uint state = (uint)BitConverter.SingleToInt32Bits(baseRotation) + (uint)slash * 0x9E3779B9u;
265 state ^= state >> 16;
266 state *= 0x7FEB352Du;
267 state ^= state >> 15;
268 float jitter = (state & 0xFFFFu) / 65535f - 0.5f;
269 return baseRotation + slash * 2.39996323f + jitter * 0.58f;
270 }
271
272 internal static float GetSlashLength(float mastery, float scale, int slash)
273 {
274 float variation = 0.94f + 0.06f * (float)Math.Sin((slash + 1) * 2.7f);
275 return (126f + mastery * 76f) * scale * variation;
276 }
277
184 278 private static void DrawSegment(Vector2 start, Vector2 end, Color color, float width)
185 279 {
186 280 Vector2 segment = end - start;
Modified Projectiles/DeathDomainHarvestTelegraphProjectile.cs +19 -16
@@ -11,15 +11,16 @@ using Terraria.ModLoader;
11 11 namespace DeathMod.Projectiles;
12 12
13 13 /// <summary>
14 /// The thin crimson cut line placed on every enemy awaiting the next domain harvest.
15 /// Its rotation is reused by the actual blade so the execution lands exactly on the
16 /// warning rather than choosing a new direction at the last moment.
14 /// The thin crimson cut lines placed on every enemy awaiting the next domain harvest.
15 /// Their deterministic rotations are reused by the actual blades so each execution
16 /// lands exactly on its own warning line.
17 17 /// </summary>
18 18 public class DeathDomainHarvestTelegraphProjectile : ModProjectile
19 19 {
20 20 private int TargetIndex => (int)Projectile.ai[0];
21 21 private int TelegraphFrames => Math.Clamp((int)Projectile.ai[1], 1, 180);
22 private float Mastery => MathHelper.Clamp(Projectile.ai[2], 0f, 1f);
22 private int SlashCount => Math.Clamp((int)Projectile.ai[2], 1, 5);
23 private float Mastery => MathHelper.Clamp((Projectile.ai[2] - SlashCount) * 10f, 0f, 1f);
23 24
24 25 public override string Texture => "Terraria/Images/Projectile_0";
25 26
@@ -68,8 +69,10 @@ public class DeathDomainHarvestTelegraphProjectile : ModProjectile
68 69 if (Main.dedServ || !Main.rand.NextBool(18))
69 70 return;
70 71
71 float halfLength = GetLength() * 0.5f;
72 Vector2 direction = Projectile.rotation.ToRotationVector2();
72 int slash = Main.rand.Next(SlashCount);
73 float rotation = DeathDomainHarvestSlashProjectile.GetSlashRotation(Projectile.rotation, slash);
74 float halfLength = DeathDomainHarvestSlashProjectile.GetSlashLength(Mastery, Projectile.scale, slash) * 0.5f;
75 Vector2 direction = rotation.ToRotationVector2();
73 76 Vector2 end = Projectile.Center + direction * (Main.rand.NextBool() ? halfLength : -halfLength);
74 77 Dust dust = Dust.NewDustPerfect(
75 78 end,
@@ -86,21 +89,21 @@ public class DeathDomainHarvestTelegraphProjectile : ModProjectile
86 89 float remaining = MathHelper.Clamp((Projectile.timeLeft - 5f) / Math.Max(1f, TelegraphFrames), 0f, 1f);
87 90 float urgency = 1f - remaining;
88 91 float pulse = 0.72f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * (7f + urgency * 9f) + Projectile.identity) * 0.20f;
89 float length = GetLength();
90 92 Vector2 center = Projectile.Center - Main.screenPosition;
91 93
92 DrawTaperedLine(center, Projectile.rotation, length, (6f + Mastery * 2f) * Projectile.scale,
93 new Color(120, 0, 25, 0) * (0.24f + urgency * 0.22f));
94 DrawTaperedLine(center, Projectile.rotation, length, (1.35f + urgency * 0.85f) * Projectile.scale,
95 new Color(255, 8, 48, 0) * pulse);
94 for (int slash = 0; slash < SlashCount; slash++)
95 {
96 float rotation = DeathDomainHarvestSlashProjectile.GetSlashRotation(Projectile.rotation, slash);
97 float length = DeathDomainHarvestSlashProjectile.GetSlashLength(Mastery, Projectile.scale, slash);
98 float linePulse = pulse * (0.90f + 0.10f * (float)Math.Sin(slash * 1.9f + Main.GlobalTimeWrappedHourly * 3f));
99 DrawTaperedLine(center, rotation, length, (6f + Mastery * 2f) * Projectile.scale,
100 new Color(120, 0, 25, 0) * (0.24f + urgency * 0.22f));
101 DrawTaperedLine(center, rotation, length, (1.35f + urgency * 0.85f) * Projectile.scale,
102 new Color(255, 8, 48, 0) * linePulse);
103 }
96 104 return false;
97 105 }
98 106
99 private float GetLength()
100 {
101 return (118f + Mastery * 66f) * Projectile.scale;
102 }
103
104 107 private static void DrawTaperedLine(Vector2 center, float rotation, float length, float maximumWidth, Color color)
105 108 {
106 109 Vector2 direction = rotation.ToRotationVector2();
Modified README.md +1 -1
@@ -102,7 +102,7 @@ Projectile count, projectile lifetime, percentage penetration, hit cooldown, and
102 102
103 103 After entering Hardmode, craft Wings of Death from Souls of Flight and train flight time, horizontal speed, acceleration, and vertical power. Max all four branches to unlock infinite flight. The Death Robe can be trained in defense, maximum life, regeneration, mobility, minions, sentries, placement range, lava immunity, utility immunities, and 15 separately purchased debuff immunities.
104 104
105 The Death Necklace unfolds a small field while equipped and enabled with the **Toggle Death Domain** keybind (`O` by default). While holding a mod sickle, every enemy entering the field receives a thin crimson cut mark at a random angle. When the harvest cycle expires, a straight double-pointed blade—red at its edge and pure black through its center—executes along that exact line instead of manifesting sickle projectiles. Domain cuts apply Death Mark for soul harvesting but do not inherit Fated, life steal, form debuffs, or other sickle hit effects. Each cut begins at 1% of a normal enemy's maximum life and 0.01% of a boss's maximum life; the slash-percentage branch raises those values to 10% and 0.1%, while Multislash grows from one to five cuts per cycle. Radius and frequency are the other two branches. Max all four and unlock **Deathly Sovereignty** to cover the screen with a moving soul-field background; every fourth harvest receives the more intense Death Requiem presentation.
105 The Death Necklace unfolds a small field while equipped and enabled with the **Toggle Death Domain** keybind (`O` by default). While holding a mod sickle, every enemy entering the field receives one thin crimson cut mark per pending slash, each at a different stable random angle. When the harvest cycle expires, straight double-pointed blades—red at their edges and pure black through their centers—sweep from the starting tip to the ending tip along those marks in rapid succession instead of manifesting sickle projectiles. Domain cuts apply Death Mark for soul harvesting but do not inherit Fated, life steal, form debuffs, or other sickle hit effects. Each cut begins at 1% of a normal enemy's maximum life and 0.01% of a boss's maximum life; the slash-percentage branch raises those values to 10% and 0.1%, while Multislash grows from one to five cuts per cycle. Radius and frequency are the other two branches. Max all four and unlock **Deathly Sovereignty** to cover the screen with a moving soul-field background; every fourth harvest receives the more intense Death Requiem presentation.
106 106
107 107 ## Soul and boss rules
108 108
Modified README.zh-Hans.md +1 -1
@@ -80,7 +80,7 @@ Soul Harvest(内部模组名 `DeathMod`)是一款围绕死神镰刀、人物
80 80
81 81 困难模式后可以制作死亡之翼,分别提升飞行时间、水平速度、加速度与垂直能力,四项满级后解锁无限飞行。死神长袍则可提升防御、生命、回复、机动、仆从、哨兵、放置距离、熔岩免疫及功能免疫;15 种减益免疫必须逐项购买。
82 82
83 佩戴死亡项链后,按“开关死亡领域”快捷键(默认 `O`)展开小范围领域。手持本模组镰刀时,每个进入领域的敌人都会从随机角度出现一条纤细的猩红待斩刻线;收割计时结束后,外缘猩红、中心纯黑、两端尖锐且中段宽阔的直线劈斩会沿原刻线落下,不再显化镰刀弹幕。领域斩击只会施加用于灵魂收割的死亡标记,不继承命定、吸血、形态 Debuff 或其他镰刀命中效果。每段斩击初始削去普通敌人 1% 最大生命、Boss 0.01% 最大生命;“斩击百分比”分支最高将其提升至普通敌人 10%、Boss 0.1%,而“多重斩击”可由每轮一斩提升至五斩。另有领域半径与收割频率两条分支;四项满级后点亮“死寂主权”,领域将覆盖全屏并显示流动灵魂背景,每第四轮收割会呈现更强烈的“死亡安魂曲”特效。
83 佩戴死亡项链后,按“开关死亡领域”快捷键(默认 `O`)展开小范围领域。手持本模组镰刀时,每个进入领域的敌人都会按照待斩段数出现对应数量的纤细猩红刻线,每条刻线均拥有不同且稳定的随机角度;收割计时结束后,外缘猩红、中心纯黑、两端尖锐且中段宽阔的直线劈斩会沿各自刻线从起点向终点依次扫过,不再显化镰刀弹幕。领域斩击只会施加用于灵魂收割的死亡标记,不继承命定、吸血、形态 Debuff 或其他镰刀命中效果。每段斩击初始削去普通敌人 1% 最大生命、Boss 0.01% 最大生命;“斩击百分比”分支最高将其提升至普通敌人 10%、Boss 0.1%,而“多重斩击”可由每轮一斩提升至五斩。另有领域半径与收割频率两条分支;四项满级后点亮“死寂主权”,领域将覆盖全屏并显示流动灵魂背景,每第四轮收割会呈现更强烈的“死亡安魂曲”特效。
84 84
85 85 ## 灵魂与多人规则
86 86
Modified docs/PLAY_GUIDE.md +1 -1
@@ -192,7 +192,7 @@ The following 15 immunities are separate 1-essence purchases: On Fire, Poisoned,
192 192
193 193 ### Death Necklace
194 194
195 Equip the necklace and press **Toggle Death Domain** (`O` by default). Its initial field reaches 10 tiles. While a DeathMod sickle is held, enemies entering the domain receive a thin crimson warning line at a stable random angle. At harvest time, a straight, double-pointed red-and-black execution blade falls on that exact mark instead of spawning the sickle's projectiles. These domain cuts apply Death Mark but no Fated stacks, life steal, form debuff, or other inherited on-hit effect. The four altar branches improve radius, frequency, slash percentage, and Multislash.
195 Equip the necklace and press **Toggle Death Domain** (`O` by default). Its initial field reaches 10 tiles. While a DeathMod sickle is held, enemies entering the domain receive one thin crimson warning line for every pending slash, each at a different stable random angle. At harvest time, straight, double-pointed red-and-black execution blades sweep from one tip to the other along those marks with a five-frame interval instead of spawning the sickle's projectiles. Percentage damage is resolved on the server as each matching blade begins. These domain cuts apply Death Mark but no Fated stacks, life steal, form debuff, or other inherited on-hit effect. The four altar branches improve radius, frequency, slash percentage, and Multislash.
196 196
197 197 Slash percentage starts at 1% maximum life per cut against normal enemies and 0.01% against bosses, reaching 10% and 0.1% at level 10. Multislash starts at one cut per cycle and reaches five; each cut resolves its percentage separately against every target. Max all four branches to unlock **Deathly Sovereignty** for 30 Soul Essence. It expands the field to the full screen, adds a moving soul-and-rune background, and gives every fourth harvest the intensified Death Requiem presentation.
198 198
Modified docs/PLAY_GUIDE.zh-Hans.md +1 -1
@@ -192,7 +192,7 @@ Boss 不会直接掉落灵魂精华;请通过灵魂罐将奖励凝聚为精华
192 192
193 193 ### 死亡项链
194 194
195 佩戴后按“开关死亡领域”快捷键(默认 `O`)。初始领域半径为 10 格;手持本模组镰刀时,敌人进入领域便会从稳定的随机角度出现一条纤细猩红待斩刻线。收割时,外缘猩红、中心纯黑、两端尖锐的直线处决刀光会沿原刻线落下,不再复现镰刀弹幕。领域斩击只施加死亡标记,不继承命定层数、吸血、形态 Debuff 或其他命中效果。祭坛提供领域半径、收割频率、斩击百分比、多重斩击四条独立分支。
195 佩戴后按“开关死亡领域”快捷键(默认 `O`)。初始领域半径为 10 格;手持本模组镰刀时,敌人进入领域便会按照待斩段数出现对应数量的纤细猩红刻线,每条刻线都有不同且稳定的随机角度。收割时,外缘猩红、中心纯黑、两端尖锐的直线处决刀光会沿各自刻线从起点向终点扫过,每段间隔 5 帧,其百分比伤害也由服务端在对应刀光开始时逐段结算。领域斩击只施加死亡标记,不继承命定层数、吸血、形态 Debuff 或其他命中效果。祭坛提供领域半径、收割频率、斩击百分比、多重斩击四条独立分支。
196 196
197 197 每段斩击初始对普通敌人造成其最大生命 1% 的伤害、对 Boss 造成 0.01%,斩击百分比 10 级时分别达到 10% 和 0.1%。多重斩击从每轮一斩提升至最多五斩,每段都会对所有领域内目标单独结算。四项满级后可消耗 30 灵魂精华点亮“死寂主权”:领域扩张至整个屏幕并出现流动灵魂与符文背景;每第四轮收割会呈现强化的“死亡安魂曲”视觉效果。
198 198