[Fix] Hotfixes 2 (#287)

* fix: Скоупидия и Вандербокс снова работают

* fix: главы станции снова не могут быть главами революции

* а что так можно было
This commit is contained in:
Remuchi
2024-04-20 20:41:39 +07:00
committed by GitHub
parent 5cb393e630
commit bf0a124b05
5 changed files with 4 additions and 19 deletions

View File

@@ -176,7 +176,7 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem<RevolutionaryRuleCo
var query = QueryActiveRules();
while (query.MoveNext(out _, out _, out var comp, out _))
{
var eligiblePlayers = _antagSelection.GetEligiblePlayers(ev.Players, comp.HeadRevPrototypeId);
var eligiblePlayers = _antagSelection.GetEligiblePlayers(ev.Players, comp.HeadRevPrototypeId, customExcludeCondition: HasComp<CommandStaffComponent>);
if (eligiblePlayers.Count == 0)
continue;
@@ -408,7 +408,7 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem<RevolutionaryRuleCo
// revs lost and heads died
"rev-stalemate"
];
public void TransferRole(EntityUid transferFrom, EntityUid transferTo)
{
if (HasComp<CommandStaffComponent>(transferFrom))