Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinary1 committed Aug 12, 2024
1 parent 90cdf6b commit 31a7479
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public override ConstructionGuideEntry GenerateGuideEntry()
{
if (item.TryGetComponent<TagComponent>(out var entityTag) && entityManager.System<TagSystem>().HasTag(entityTag, Tag))
{
if(item.Name == "левая рука киборга-официанта")
if(item.Name == "левая рука киборга-официанта") //костыль так как лень фиксить по другому, хд
{
nameLocale = "левая рука киборга";
}
Expand Down
3 changes: 2 additions & 1 deletion Content.Shared/Preferences/Loadouts/RoleLoadout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
using Robust.Shared.Localization;

namespace Content.Shared.Preferences.Loadouts;

Expand Down Expand Up @@ -248,7 +249,7 @@ public bool IsValid(HumanoidCharacterProfile profile, ICommonSession? session, P
// Sunrise-Sponsots-Start
if (loadoutProto.SponsorOnly && !sponsorPrototypes.Contains(loadout.Id))
{
reason = FormattedMessage.FromUnformatted("Доступно только для спонсоров.");
reason = FormattedMessage.FromUnformatted(Loc.GetString("loadout-sponsor-only"));
return false;
}
// Sunrise-Sponsots-End
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Content.Shared._Sunrise.Abilities;
public sealed partial class FabricateCookieComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("сookieList")]
[DataField("cookieList")]
public List<string> CookieList = new()
{
"FoodBakedCookieOatmeal"
Expand Down
3 changes: 2 additions & 1 deletion Content.Shared/_Sunrise/Roles/DiscordRoleRequirement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
using Robust.Shared.Localization;

namespace Content.Shared._Sunrise.Roles;

Expand All @@ -23,7 +24,7 @@ public override bool Check(IEntityManager entManager,
if (profile is null)
return true;

reason = FormattedMessage.FromMarkupPermissive("Для игры на данной роли вам необходимо получить роль в дискорде.");
reason = FormattedMessage.FromMarkupPermissive(Loc.GetString("role-timer-discord"));
return false;
}
}
1 change: 1 addition & 0 deletions Resources/Locale/ru-RU/_sunrise/job/role-requirements.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
role-timer-discord = Для игры на данной роли вам необходимо [color=yellow]получить роль в дискорде[/color].

0 comments on commit 31a7479

Please sign in to comment.