Skip to content

Commit

Permalink
addLic
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoNeSRuS committed Mar 24, 2024
1 parent ce15842 commit bb409c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public bool CheckSpeciesRestrict(JobPrototype job, HumanoidCharacterProfile prof

if (species is not null)
{
if (JobRequirements.TryRequirementsSpeciesMet(job, species, profile.Sex, out var reason, _prototypeManager))
if (JobRequirements.TryRequirementsSpeciesMet(job, species, profile.Sex, out var reason, _prototypeManager)) //ss220-arahFix
return true;

reasons.Add(reason.ToMarkup());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ private async void HandleUpdateCharacterMessage(MsgUpdateCharacter message)
profile.EnsureValid(allowedMarkings);
// Corvax-Sponsors-End

//ss-220 arahFix
if (!_iSharedPlayerManager.TryGetSessionById(userId, out var session))
return;

Expand All @@ -130,6 +131,7 @@ private async void HandleUpdateCharacterMessage(MsgUpdateCharacter message)
profile = human;
message.Profile = human;
}
//ss-220 arahFixend

var profiles = new Dictionary<int, ICharacterProfile>(curPrefs.Characters)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public bool IsAllowed(ICommonSession player, string jobId)
{
var profile = (_serverPreferences.GetPreferences(player.UserId).SelectedCharacter as HumanoidCharacterProfile)!;
var species = _prototypes.Index<SpeciesPrototype>(profile.Species);
if (JobRequirements.TryRequirementsSpeciesMet(job, species, profile.Sex, out _, _prototypes))
if (JobRequirements.TryRequirementsSpeciesMet(job, species, profile.Sex, out _, _prototypes)) //ss220-arahFix
return true;
}
return false;
Expand Down

0 comments on commit bb409c3

Please sign in to comment.