mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Mimes are Psionists too. (#299)
* Mimes are Psionists too. Fixes #290 * Update mime.yml
This commit is contained in:
@@ -10,6 +10,7 @@ using Content.Shared.Physics;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Timing;
|
||||
using Content.Shared.Abilities.Psionics; //Nyano - Summary: Makes Mime psionic.
|
||||
|
||||
namespace Content.Server.Abilities.Mime
|
||||
{
|
||||
@@ -19,6 +20,7 @@ namespace Content.Server.Abilities.Mime
|
||||
[Dependency] private readonly SharedActionsSystem _actionsSystem = default!;
|
||||
[Dependency] private readonly AlertsSystem _alertsSystem = default!;
|
||||
[Dependency] private readonly EntityLookupSystem _lookupSystem = default!;
|
||||
[Dependency] private readonly SharedPsionicAbilitiesSystem _psionics = default!;
|
||||
[Dependency] private readonly TurfSystem _turf = default!;
|
||||
[Dependency] private readonly IMapManager _mapMan = default!;
|
||||
[Dependency] private readonly SharedContainerSystem _container = default!;
|
||||
@@ -55,6 +57,9 @@ namespace Content.Server.Abilities.Mime
|
||||
EnsureComp<MutedComponent>(uid);
|
||||
_alertsSystem.ShowAlert(uid, AlertType.VowOfSilence);
|
||||
_actionsSystem.AddAction(uid, ref component.InvisibleWallActionEntity, component.InvisibleWallAction, uid);
|
||||
//Nyano - Summary: Add Psionic Ability to Mime.
|
||||
if (TryComp<PsionicComponent>(uid, out var psionic) && psionic.PsionicAbility == null)
|
||||
psionic.PsionicAbility = component.InvisibleWallActionEntity;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -92,6 +97,9 @@ namespace Content.Server.Abilities.Mime
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Begin Nyano-code: mime powers are psionic.
|
||||
_psionics.LogPowerUsed(uid, "invisible wall");
|
||||
// End Nyano-code.
|
||||
_popupSystem.PopupEntity(Loc.GetString("mime-invisible-wall-popup", ("mime", uid)), uid);
|
||||
// Make sure we set the invisible wall to despawn properly
|
||||
Spawn(component.WallPrototype, _turf.GetTileCenter(tile.Value));
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
special:
|
||||
- !type:AddComponentSpecial
|
||||
components:
|
||||
- type: Psionic # Nyano - Summary: Makes the mime psionic.
|
||||
- type: MimePowers
|
||||
|
||||
- type: startingGear
|
||||
|
||||
Reference in New Issue
Block a user