UI update 02
This commit is contained in:
@@ -14,6 +14,21 @@ public static class DlcContentAccess
|
||||
return owningDlc == null || DlcOwnershipService.IsDlcOwned(owningDlc);
|
||||
}
|
||||
|
||||
public static bool IsHeroAccessible(AllyHero_SO hero)
|
||||
{
|
||||
if (hero == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (string.IsNullOrWhiteSpace(hero.sourceDlcId))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return DlcOwnershipService.IsDlcOwned(hero.sourceDlcId);
|
||||
}
|
||||
|
||||
public static bool IsSkinAccessible(HeroSkinResolvedData skin)
|
||||
{
|
||||
if (skin == null)
|
||||
|
||||
Reference in New Issue
Block a user