-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавил эффект коктейлю из крови сумеров + убрал эмоут "задыхается"
- Loading branch information
Showing
8 changed files
with
81 additions
and
14 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
Content.Server/ADT/EntityEffects/Effects/RandomTeleport.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Robust.Shared.Prototypes; | ||
using Content.Shared.StatusEffect; | ||
using Content.Shared.EntityEffects; | ||
using Content.Server.ADT.Shadekin; | ||
|
||
namespace Content.Server.Chemistry.ReagentEffects | ||
{ | ||
/// <summary> | ||
/// Default metabolism for stimulants and tranqs. Attempts to find a MovementSpeedModifier on the target, | ||
/// adding one if not there and to change the movespeed | ||
/// </summary> | ||
public sealed partial class RandomTeleport : EntityEffect | ||
{ | ||
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) | ||
{ | ||
return Loc.GetString("reagent-effect-guidebook-teleport", | ||
("chance", Probability)); | ||
} | ||
|
||
public override void Effect(EntityEffectBaseArgs ev) | ||
{ | ||
if (ev is not EntityEffectReagentArgs args) | ||
return; | ||
|
||
var statusSys = args.EntityManager.EntitySysManager.GetEntitySystem<StatusEffectsSystem>(); | ||
var shadekin = args.EntityManager.EntitySysManager.GetEntitySystem<ShadekinSystem>(); | ||
|
||
shadekin.TeleportRandomly(args.TargetEntity, 2f); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
alerts-charge-name = Заряд | ||
alerts-charge-desc = Количество оставшегося заряда вашей батареи. | ||
alerts-shadekin-power-name = Энергия | ||
alerts-shadekin-power-desc = Количество вашей теневой энергии. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
shadekin-examine-self-max = [color=white]Вы переполняетесь энергией! У вас {$power} энергии.[/color] | ||
shadekin-examine-self-good = [color=white]Вы чувствуете себя хорошо. У вас {$power} энергии.[/color] | ||
shadekin-examine-self-okay = [color=white]Вы в порядке. У вас {$power} энергии.[/color] | ||
shadekin-examine-self-bad = [color=white]Вы достаточно сильно устали. У вас {$power} энергии.[/color] | ||
shadekin-examine-self-worst = [color=red]Вы выбились из сил! У вас {$power} энергии.[/color] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters