[FIX] yml linter (#121)

* Felinid linter

* Мб пофиксится

* сука?

* Revert "сука?"

This reverts commit daea319b5b1100981357ec76156da18e2767a39f.

* А щас....

* Короче насрано

* Дебил

---------

Co-authored-by: Mona Hmiza <>
# Conflicts:
#	Content.Server/White/MeatyOre/MeatyOreStoreSystem.cs
#	Resources/Prototypes/Damage/modifier_sets.yml
This commit is contained in:
RavMorgan
2023-05-26 09:52:47 +03:00
committed by Remuchi
parent c01e2ef930
commit a4db634a55
3 changed files with 3 additions and 38 deletions

View File

@@ -55,14 +55,12 @@ public sealed class MeatyOreStoreSystem : EntitySystem
SubscribeLocalEvent<RoundRestartCleanupEvent>(OnPostRoundCleanup);
SubscribeNetworkEvent<MeatyOreShopRequestEvent>(OnShopRequested);
SubscribeLocalEvent<MindComponent, MeatyTraitorRequestActionEvent>(OnAntagPurchase);
SubscribeLocalEvent<GetVerbsEvent<Verb>>(MeatyOreVerbs);
}
private void MeatyOreVerbs(GetVerbsEvent<Verb> ev)
{
if(ev.User == ev.Target) return;
if(!EntityManager.TryGetComponent<ActorComponent>(ev.User, out var actorComponent)) return;
if(!_sponsorsManager.TryGetInfo(actorComponent.PlayerSession.UserId, out _)) return;
if(!HasComp<HumanoidAppearanceComponent>(ev.Target)) return;
@@ -112,15 +110,6 @@ public sealed class MeatyOreStoreSystem : EntitySystem
}
MeatyOrePanelEnabled = newValue;
}
private void OnAntagPurchase(EntityUid uid, MindComponent component, MeatyTraitorRequestActionEvent args)
{
if(component.Session == null) return;
_traitorRuleSystem.MakeTraitor(component.Session!);
}
private void OnShopRequested(MeatyOreShopRequestEvent msg, EntitySessionEventArgs args)
{

View File

@@ -1,20 +1,12 @@
using Robust.Shared.GameStates;
using Content.Shared.Actions.ActionTypes;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
using Component = Robust.Shared.GameObjects.Component;
namespace Content.Shared.White.MeatyOre;
[Serializable, NetSerializable]
public sealed class MeatyOreShopRequestEvent : EntityEventArgs {}
[Serializable, NetSerializable]
public sealed class MeatyTraitorRequestActionEvent
{
public override bool Equals(object? obj)
{
return true;
}
}
public sealed class MeatyOreShopRequestEvent : EntityEventArgs {}
[NetworkedComponent, RegisterComponent]
public sealed partial class IgnorBUIInteractionRangeComponent : Component

View File

@@ -1478,22 +1478,6 @@
categories:
- MeatyOreToys
# ANTAG
- type: listing
id: MeatyBecomeTraitor
name: Антажка
description: Выдать себе антажку
categories:
- MeatyOreAntag
cost:
MeatyOreCoin: 10
conditions:
- !type:BuyerBlockForAntagCondition
- !type:BuyerBlockForMindProtected
productEvent: !type:MeatyTraitorRequestActionEvent
# Special
- type: listing