kinda fixes

This commit is contained in:
EnefFlow
2023-11-15 23:31:43 +03:00
committed by Aviu00
parent eea0e86d87
commit 8c9c17e6de
13 changed files with 45 additions and 28 deletions

View File

@@ -452,7 +452,7 @@ public sealed class CultRuleSystem : GameRuleSystem<CultRuleComponent>
if (backPack != null)
{
_storageSystem.Insert(backPack.Value, itemEntity);
_storageSystem.Insert(backPack.Value, itemEntity, out _);
}
}
}
@@ -462,10 +462,7 @@ public sealed class CultRuleSystem : GameRuleSystem<CultRuleComponent>
_chatManager.DispatchServerMessage(cultist, Loc.GetString("cult-role-greeting"));
if (_prototypeManager.TryIndex<ObjectivePrototype>("CultistKillObjective", out var cultistObjective))
{
_mindSystem.TryAddObjective(mind.Value, mindComponent,cultistObjective);
}
_mindSystem.TryAddObjective(mind.Value, mindComponent, "CultistKillObjective");
return true;
}