diff --git a/Content.Client/LateJoin/LateJoinGui.cs b/Content.Client/LateJoin/LateJoinGui.cs index 09ec8002dc..e3d849a2fd 100644 --- a/Content.Client/LateJoin/LateJoinGui.cs +++ b/Content.Client/LateJoin/LateJoinGui.cs @@ -91,10 +91,10 @@ private void RebuildUI() _jobCategories.Clear(); #if LPP_Sponsors - var sys = IoCManager.Resolve(); - var checkSponsorSystem = sys.GetEntitySystem(); - checkSponsorSystem.GoCheckSponsor(); - var sponsorTier = checkSponsorSystem.GetSponsorStatus().Item2; + var sys = IoCManager.Resolve(); + var sponsorTier = 0; + if (sys.TryGetInfo(out var sponsorInfo)) + sponsorTier = sponsorInfo.Tier ?? 0; #endif if (!_gameTicker.DisallowedLateJoin && _gameTicker.StationNames.Count == 0) diff --git a/Content.Client/Preferences/UI/AntagPreferenceSelector.cs b/Content.Client/Preferences/UI/AntagPreferenceSelector.cs index a74774ee6c..1cd6cc6689 100644 --- a/Content.Client/Preferences/UI/AntagPreferenceSelector.cs +++ b/Content.Client/Preferences/UI/AntagPreferenceSelector.cs @@ -44,10 +44,10 @@ public AntagPreferenceSelector(AntagPrototype proto, JobPrototype highJob) : bas var configMan = IoCManager.Resolve(); #if LPP_Sponsors - var sys = IoCManager.Resolve(); - var checkSponsorSystem = sys.GetEntitySystem(); - checkSponsorSystem.GoCheckSponsor(); - var sponsorTier = checkSponsorSystem.GetSponsorStatus().Item2; + var sys = IoCManager.Resolve(); + var sponsorTier = 0; + if (sys.TryGetInfo(out var sponsorInfo)) + sponsorTier = sponsorInfo.Tier ?? 0; #endif if (proto.Requirements != null diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs index 762c43e099..a60a3ea4d9 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs @@ -755,10 +755,10 @@ private void UpdateRoleRequirements() var firstCategory = true; #if LPP_Sponsors - var sys = IoCManager.Resolve(); - var checkSponsorSystem = sys.GetEntitySystem(); - checkSponsorSystem.GoCheckSponsor(); - var sponsorTier = checkSponsorSystem.GetSponsorStatus().Item2; + var sys = IoCManager.Resolve(); + var sponsorTier = 0; + if (sys.TryGetInfo(out var sponsorInfo)) + sponsorTier = sponsorInfo.Tier ?? 0; #endif var departments = _prototypeManager.EnumeratePrototypes().ToArray(); @@ -875,10 +875,10 @@ out var reasons private void EnsureJobRequirementsValid() { #if LPP_Sponsors - var sys = IoCManager.Resolve(); - var checkSponsorSystem = sys.GetEntitySystem(); - checkSponsorSystem.GoCheckSponsor(); - var sponsorTier = checkSponsorSystem.GetSponsorStatus().Item2; + var sys = IoCManager.Resolve(); + var sponsorTier = 0; + if (sys.TryGetInfo(out var sponsorInfo)) + sponsorTier = sponsorInfo.Tier ?? 0; #endif foreach (var selector in _jobPriorities) { @@ -1545,10 +1545,10 @@ private void UpdateTraits(bool showUnusable) var highJob = _controller.GetPreferredJob(Profile ?? HumanoidCharacterProfile.DefaultWithSpecies()); #if LPP_Sponsors - var sys = IoCManager.Resolve(); - var checkSponsorSystem = sys.GetEntitySystem(); - checkSponsorSystem.GoCheckSponsor(); - var sponsorTier = checkSponsorSystem.GetSponsorStatus().Item2; + var sys = IoCManager.Resolve(); + var sponsorTier = 0; + if (sys.TryGetInfo(out var sponsorInfo)) + sponsorTier = sponsorInfo.Tier ?? 0; #endif _traits.Clear(); @@ -1861,10 +1861,10 @@ private void UpdateLoadouts(bool showUnusable) _loadoutPointsBar.Value = points; #if LPP_Sponsors - var sys = IoCManager.Resolve(); - var checkSponsorSystem = sys.GetEntitySystem(); - checkSponsorSystem.GoCheckSponsor(); - var sponsorTier = checkSponsorSystem.GetSponsorStatus().Item2; + var sys = IoCManager.Resolve(); + var sponsorTier = 0; + if (sys.TryGetInfo(out var sponsorInfo)) + sponsorTier = sponsorInfo.Tier ?? 0; #endif // Get the highest priority job to use for loadout filtering diff --git a/Content.Client/Preferences/UI/LoadoutPreferenceSelector.cs b/Content.Client/Preferences/UI/LoadoutPreferenceSelector.cs index 5c50705237..976ccc28bf 100644 --- a/Content.Client/Preferences/UI/LoadoutPreferenceSelector.cs +++ b/Content.Client/Preferences/UI/LoadoutPreferenceSelector.cs @@ -148,10 +148,10 @@ public LoadoutPreferenceSelector(LoadoutPrototype loadout, JobPrototype highJob, tooltip.Append($"{Loc.GetString(desc)}"); #if LPP_Sponsors - var sys = IoCManager.Resolve(); - var checkSponsorSystem = sys.GetEntitySystem(); - checkSponsorSystem.GoCheckSponsor(); - var sponsorTier = checkSponsorSystem.GetSponsorStatus().Item2; + var sys = IoCManager.Resolve(); + var sponsorTier = 0; + if (sys.TryGetInfo(out var sponsorInfo)) + sponsorTier = sponsorInfo.Tier ?? 0; #endif // Get requirement reasons diff --git a/Content.Client/Preferences/UI/TraitPreferenceSelector.cs b/Content.Client/Preferences/UI/TraitPreferenceSelector.cs index 2a9ae3f56a..a44e6fecf6 100644 --- a/Content.Client/Preferences/UI/TraitPreferenceSelector.cs +++ b/Content.Client/Preferences/UI/TraitPreferenceSelector.cs @@ -85,11 +85,10 @@ public TraitPreferenceSelector(TraitPrototype trait, JobPrototype highJob, Human tooltip.Append(desc); #if LPP_Sponsors - //Logger.Error("SPONSOR: go check sponsor - Trait"); - var sys = IoCManager.Resolve(); - var _checkSponsorSystem = sys.GetEntitySystem(); - _checkSponsorSystem.GoCheckSponsor(); - var sponsorTier = _checkSponsorSystem.GetSponsorStatus().Item2; + var sys = IoCManager.Resolve(); + var sponsorTier = 0; + if (sys.TryGetInfo(out var sponsorInfo)) + sponsorTier = sponsorInfo.Tier ?? 0; #endif // Get requirement reasons diff --git a/Content.Shared/Customization/Systems/CharacterRequirements.Job.cs b/Content.Shared/Customization/Systems/CharacterRequirements.Job.cs index d62b6ea7d2..f4edf515fa 100644 --- a/Content.Shared/Customization/Systems/CharacterRequirements.Job.cs +++ b/Content.Shared/Customization/Systems/CharacterRequirements.Job.cs @@ -148,8 +148,7 @@ public override bool IsValid(JobPrototype job, HumanoidCharacterProfile profile, } #if LPP_Sponsors - //Logger.Error($"SPONSOR: CharacterDepartmentTimeRequirement. Tier: {sponsorTier}, whitelisted: {whitelisted}"); - if (sponsorTier >= 5) + if (sponsorTier >= 5 && !whitelisted) { reason = null; return true; @@ -233,8 +232,7 @@ public override bool IsValid(JobPrototype job, HumanoidCharacterProfile profile, } #if LPP_Sponsors - //Logger.Error($"SPONSOR: CharacterOverallTimeRequirement. Tier: {sponsorTier}, whitelisted: {whitelisted}"); - if (sponsorTier >=5) + if (sponsorTier >= 5 && !whitelisted) { reason = null; return true; @@ -308,8 +306,7 @@ public override bool IsValid(JobPrototype job, HumanoidCharacterProfile profile, } #if LPP_Sponsors - //Logger.Error($"SPONSOR: CharacterPlaytimeRequirement. Tier: {sponsorTier}, whitelisted: {whitelisted}"); - if (sponsorTier >= 5) + if (sponsorTier >= 5 && !whitelisted) { reason = null; return true; diff --git a/Resources/Changelog/ChangelogLPP.yml b/Resources/Changelog/ChangelogLPP.yml index 856d893f16..16247d8b20 100644 --- a/Resources/Changelog/ChangelogLPP.yml +++ b/Resources/Changelog/ChangelogLPP.yml @@ -400,3 +400,14 @@ Entries: id: 43 time: '2024-09-14T20:13:05.0000000+00:00' url: https://github.com/Lost-Paradise-Project/Lost-Paradise/pull/146 +- author: SpicyDarkFox + changes: + - type: Add + message: Добавлена возможность спонсорам 5 уровня заходить за любую роль кроме ВЛ + - type: Fix + message: Исправлена проблема с прическами унатхов + - type: Fix + message: Исправлены шемаги + id: 44 + time: '2024-09-15T20:05:33.0000000+00:00' + url: https://github.com/Lost-Paradise-Project/Lost-Paradise/pull/148 diff --git a/Resources/Locale/ru-RU/guidebook/food.ftl b/Resources/Locale/ru-RU/guidebook/food.ftl index 0204494702..bb00879669 100644 --- a/Resources/Locale/ru-RU/guidebook/food.ftl +++ b/Resources/Locale/ru-RU/guidebook/food.ftl @@ -3,8 +3,8 @@ guidebook-food-unknown-proto = Неизвестный прототип guidebook-food-sources-header = Источники guidebook-food-sources-ent-wrapper = { $name } guidebook-food-reagents-header = Химический состав -guidebook-food-processing-butchering = Нарежте -guidebook-food-processing-slicing = Слайсуйте +guidebook-food-processing-butchering = Разделайте +guidebook-food-processing-slicing = Нарежьте guidebook-food-processing-cooking = Разогрейте на { $time }сек guidebook-food-processing-reaction = Смешайте guidebook-food-processing-recipe = { $ingredients } diff --git a/Resources/Prototypes/Species/reptilian.yml b/Resources/Prototypes/Species/reptilian.yml index 85e4df99f6..a57c388971 100644 --- a/Resources/Prototypes/Species/reptilian.yml +++ b/Resources/Prototypes/Species/reptilian.yml @@ -22,6 +22,7 @@ id: MobReptilianSprites sprites: Head: MobReptilianHead + Hair: MobHumanoidAnyMarking Snout: MobHumanoidAnyMarking Chest: MobReptilianTorso HeadTop: MobHumanoidAnyMarking @@ -42,7 +43,7 @@ onlyWhitelisted: true points: Hair: - points: 0 + points: 1 required: false FacialHair: points: 0 diff --git a/Resources/Prototypes/_LostParadise/Entities/Clothing/Neck/shemags.yml b/Resources/Prototypes/_LostParadise/Entities/Clothing/Neck/shemags.yml index 3a88a420e8..09f336f1c8 100644 --- a/Resources/Prototypes/_LostParadise/Entities/Clothing/Neck/shemags.yml +++ b/Resources/Prototypes/_LostParadise/Entities/Clothing/Neck/shemags.yml @@ -10,6 +10,8 @@ sprite: _LostParadise/Clothing/Neck/shemags/greendown.rsi - type: ToggleableClothing clothingPrototype: LPPClothingMaskShemagGreen + requiredSlot: + - neck slot: mask - type: ContainerContainer containers: @@ -41,6 +43,8 @@ sprite: _LostParadise/Clothing/Neck/shemags/reddown.rsi - type: ToggleableClothing clothingPrototype: LPPClothingMaskShemagRed + requiredSlot: + - neck slot: mask - type: ContainerContainer containers: @@ -72,6 +76,8 @@ sprite: _LostParadise/Clothing/Neck/shemags/bluedown.rsi - type: ToggleableClothing clothingPrototype: LPPClothingMaskShemagBlue + requiredSlot: + - neck slot: mask - type: ContainerContainer containers: @@ -103,6 +109,8 @@ sprite: _LostParadise/Clothing/Neck/shemags/browndown.rsi - type: ToggleableClothing clothingPrototype: LPPClothingMaskShemagBrown + requiredSlot: + - neck slot: mask - type: ContainerContainer containers: @@ -134,6 +142,8 @@ sprite: _LostParadise/Clothing/Neck/shemags/purpledown.rsi - type: ToggleableClothing clothingPrototype: LPPClothingMaskShemagPurple + requiredSlot: + - neck slot: mask - type: ContainerContainer containers: @@ -165,6 +175,8 @@ sprite: _LostParadise/Clothing/Neck/shemags/NPZdown.rsi - type: ToggleableClothing clothingPrototype: LPPClothingMaskShemagNPZ + requiredSlot: + - neck slot: mask - type: ContainerContainer containers: