|
@@ -350,7 +350,7 @@ namespace GFGGame
|
|
|
/// <returns></returns>
|
|
|
public bool GetShopRed()
|
|
|
{
|
|
|
- return GetChargeAddUpRewardRed() || GetGiftBagRewardRed() || GetGoldCardRewardRed() || GetBlackCardRewardRed();
|
|
|
+ return GetChargeAddUpRewardRed() || GetGiftBagRewardRed() || GetGoldCardRewardRed() || GetBlackCardRewardRed() || GetBlackCardClothingRed();
|
|
|
}
|
|
|
//商店-充值-会员中心
|
|
|
public bool GetChargeAddUpRewardRed()
|
|
@@ -398,15 +398,42 @@ namespace GFGGame
|
|
|
return RoleDataManager.CheckIsMonthCardOpenByType(MonthCardType.BlackGold) && GameGlobal.myNumericComponent.GetAsInt(NumericType.MonthCardBlackGoldReward) <= 0;
|
|
|
}
|
|
|
/// <summary>
|
|
|
+ /// 商城-月卡-黑金卡-单品奖励
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ public bool GetBlackCardClothingRed()
|
|
|
+ {
|
|
|
+ int _year = TimeUtil.GetCurYear();
|
|
|
+ int _month = TimeUtil.GetCurMonth();
|
|
|
+ MonthlyCardClothesCfg clothesCfg = MonthlyCardClothesCfgArray.Instance.GetCfgByyearAndmonth(_year, _month);
|
|
|
+
|
|
|
+ return RoleDataManager.CheckIsMonthCardOpenByType(MonthCardType.BlackGold) && !MathHelper.isBitSet(GameGlobal.myNumericComponent.GetAsInt(NumericType.MonthCardExclusiveClothesMouth), _month);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
/// 联盟-成员申请
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
public bool GetLeagueMemberJoinRed()
|
|
|
{
|
|
|
LeagueHotelCfg hotelCfg = LeagueHotelCfgArray.Instance.GetCfg(LeagueDataManager.Instance.HotelLevel);
|
|
|
- return LeagueDataManager.Instance.ListApplyDatas.Count > 0 && LeagueDataManager.Instance.LeagueData.Num < hotelCfg.limit;
|
|
|
+ int myPos = LeagueDataManager.Instance.GetMyPos();
|
|
|
+ return LeagueDataManager.Instance.Type == LeagueJoinType.Join && (myPos == LeaguePos.Owner || myPos == LeaguePos.SubOwner) && LeagueDataManager.Instance.ListApplyDatas.Count > 0 && LeagueDataManager.Instance.LeagueData.Num < hotelCfg.limit;
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 联盟-雅集福利
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ public bool GetLeagueGiftBoxRed()
|
|
|
+ {
|
|
|
+ if (LeagueDataManager.Instance.Type == LeagueJoinType.UnJoin) return false;
|
|
|
+ List<LeagueGiftGetData> _getDatas = LeagueDataManager.Instance.GetGiftGetDatas();
|
|
|
+ for (int i = 0; i < _getDatas.Count; i++)
|
|
|
+ {
|
|
|
+ if (!_getDatas[i].IsGet) return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
}
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 限时累充可领奖励红点
|
|
|
/// </summary>
|
|
@@ -415,6 +442,7 @@ namespace GFGGame
|
|
|
{
|
|
|
if (ActivityDataManager.Instance.actLimitChargeId == 0) return false;
|
|
|
ActivityInfo _activityInfo = ActivityGlobalDataManager.Instance.GetActivityInfo(ActivityDataManager.Instance.actLimitChargeId);
|
|
|
+ if (_activityInfo == null) return false;
|
|
|
List<ActivityRechargeCfg> _rechargeCfgs = ActivityRechargeCfgArray.Instance.GetCfgsByactivityId(ActivityDataManager.Instance.actLimitChargeId);
|
|
|
for (int i = 0; i < _rechargeCfgs.Count; i++)
|
|
|
{
|
|
@@ -442,6 +470,21 @@ namespace GFGGame
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 限时抽奖活动任务奖励
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ public bool GetActLuckyBoxTaskdRed()
|
|
|
+ {
|
|
|
+ if (ActivityDataManager.Instance.actLuckyBoxId <= 0) return false;
|
|
|
+ List<TaskCfg> _bonueCfgs = TaskDataManager.Instance.GetTaskCfgs(TaskType.LuckyBoxActivity);
|
|
|
+ for (int i = 0; i < _bonueCfgs.Count; i++)
|
|
|
+ {
|
|
|
+ int state = TaskDataManager.Instance.GetTaskStateById(_bonueCfgs[i].id);
|
|
|
+ if (state == ConstBonusStatus.CAN_GET) return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 摘星-每日特惠
|