|  |  | 
 |  |  | def GetFamilyBossIsOpen(fActionData): return fActionData.GetValue2()
 | 
 |  |  | def SetFamilyBossIsOpen(fActionData, isOpen): return fActionData.SetValue2(isOpen)
 | 
 |  |  | 
 | 
 |  |  | def GetFamilyBossLimitCnt():
 | 
 |  |  | def GetFamilyBossLimitCnt(family):
 | 
 |  |  |     '''仙盟BOSS每周次数限制'''
 | 
 |  |  |     return IpyGameDataPY.GetFuncCfg('FamilyBossOpen', 4)
 | 
 |  |  |     return PlayerFamily.GetFamilySetting(family, ChConfig.Def_FamilySetting_BossFBCnt)#IpyGameDataPY.GetFuncCfg('FamilyBossOpen', 4)
 | 
 |  |  | 
 | 
 |  |  | def GetFamilyBossCostFood():
 | 
 |  |  |     '''仙盟BOSS开启消耗兽粮'''
 | 
 |  |  | 
 |  |  |     curWeekOpenCnt = GetFamilyBossOpenCnt(familyBossFBData)
 | 
 |  |  |     
 | 
 |  |  |     # 次数判断
 | 
 |  |  |     maxOpenCnt = GetFamilyBossLimitCnt()
 | 
 |  |  |     maxOpenCnt = GetFamilyBossLimitCnt(curFamily)
 | 
 |  |  |     if curWeekOpenCnt >= maxOpenCnt:
 | 
 |  |  |         GameWorld.Log("    本周开启次数=%s >= 最大开启次数=%s" % (curWeekOpenCnt, maxOpenCnt))
 | 
 |  |  |         return
 |