Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | break;
|
| | | case 1:
|
| | | bossHomeModel.wearyValue = (int)info.KillCnt;
|
| | | bossHomeModel.boughtTimes = (int)info.BuyCnt;
|
| | | break;
|
| | | case 2:
|
| | | crossServerBossModel.wearyValue = (int)info.KillCnt;
|
| | |
| | | using UnityEngine;
|
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | //A3 B7 当日累计攻击boss次数 #tagMCBOSSAttactCnt
|
| | |
|
| | | public class HA3B7_tagMCBOSSAttactCnt : GameNetPackBasic
|
| | | {
|
| | | public byte Cnt;
|
| | | public tagMCBossCntInfo[] KillCntInfoList = null;
|
| | |
|
| | | public HA3B7_tagMCBOSSAttactCnt()
|
| | | {
|
| | | _cmd = (ushort)0xA3B7;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes(byte[] vBytes)
|
| | | {
|
| | | TransBytes(out Cnt, vBytes, NetDataType.BYTE);
|
| | | KillCntInfoList = new tagMCBossCntInfo[Cnt];
|
| | | for (int i = 0; i < Cnt; i++)
|
| | | {
|
| | | KillCntInfoList[i] = new tagMCBossCntInfo();
|
| | | TransBytes(out KillCntInfoList[i].BossType, vBytes, NetDataType.BYTE);
|
| | | TransBytes(out KillCntInfoList[i].KillCnt, vBytes, NetDataType.DWORD);
|
| | | TransBytes(out KillCntInfoList[i].ItemAddCnt, vBytes, NetDataType.DWORD);
|
| | | }
|
| | | }
|
| | |
|
| | | public struct tagMCBossCntInfo
|
| | | {
|
| | | public byte BossType; //编号类型0-世界boss 1-boss之家
|
| | | public uint KillCnt; //击杀次数
|
| | | public uint ItemAddCnt; //物品增加次数
|
| | | }
|
| | |
|
| | | } |
| | | //A3 B7 当日累计攻击boss次数 #tagMCBOSSAttactCnt
|
| | |
|
| | | public class HA3B7_tagMCBOSSAttactCnt : GameNetPackBasic {
|
| | | public byte Cnt;
|
| | | public tagMCBossCntInfo[] KillCntInfoList = null;
|
| | |
|
| | | public HA3B7_tagMCBOSSAttactCnt () {
|
| | | _cmd = (ushort)0xA3B7;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out Cnt, vBytes, NetDataType.BYTE);
|
| | | KillCntInfoList = new tagMCBossCntInfo[Cnt];
|
| | | for (int i = 0; i < Cnt; i ++) {
|
| | | KillCntInfoList[i] = new tagMCBossCntInfo();
|
| | | TransBytes (out KillCntInfoList[i].BossType, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out KillCntInfoList[i].KillCnt, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out KillCntInfoList[i].ItemAddCnt, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out KillCntInfoList[i].BuyCnt, vBytes, NetDataType.BYTE);
|
| | | }
|
| | | }
|
| | |
|
| | | public struct tagMCBossCntInfo {
|
| | | public byte BossType; //编号类型0-世界boss 1-boss之家
|
| | | public uint KillCnt; //击杀次数
|
| | | public uint ItemAddCnt; //物品增加次数
|
| | | public byte BuyCnt; //购买次数
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | Utils.BeginObjectRegister(typeof(VipPrivilegeType), L, translator, 0, 0, 0, 0); |
| | | Utils.EndObjectRegister(typeof(VipPrivilegeType), L, translator, null, null, null, null, null); |
| | | |
| | | Utils.BeginClassRegister(typeof(VipPrivilegeType), L, null, 35, 0, 0); |
| | | Utils.BeginClassRegister(typeof(VipPrivilegeType), L, null, 36, 0, 0); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TreasureAtk", VipPrivilegeType.TreasureAtk); |
| | | |
| | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "JadeDynastyBoss", VipPrivilegeType.JadeDynastyBoss); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BatchAlchemyFairy", VipPrivilegeType.BatchAlchemyFairy); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BossHomeBuyTimes", VipPrivilegeType.BossHomeBuyTimes); |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); |
| | | |
| | |
| | | { |
| | | translator.PushVipPrivilegeType(L, VipPrivilegeType.BatchAlchemyFairy); |
| | | } |
| | | else if (LuaAPI.xlua_is_eq_str(L, 1, "BossHomeBuyTimes")) |
| | | { |
| | | translator.PushVipPrivilegeType(L, VipPrivilegeType.BossHomeBuyTimes); |
| | | } |
| | | else |
| | | { |
| | | return LuaAPI.luaL_error(L, "invalid string for VipPrivilegeType!"); |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.BossHomeModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 4, 4); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 6, 5); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectedFloor", _g_get_selectedFloor); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectedBoss", _g_get_selectedBoss); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "wearyValue", _g_get_wearyValue); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "boughtTimes", _g_get_boughtTimes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "remindTimes", _g_get_remindTimes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "bossHomeRedpoint", _g_get_bossHomeRedpoint); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectedFloor", _s_set_selectedFloor); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectedBoss", _s_set_selectedBoss); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "wearyValue", _s_set_wearyValue); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "boughtTimes", _s_set_boughtTimes); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "bossHomeRedpoint", _s_set_bossHomeRedpoint); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_boughtTimes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.BossHomeModel gen_to_be_invoked = (Snxxz.UI.BossHomeModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.boughtTimes); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_remindTimes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.BossHomeModel gen_to_be_invoked = (Snxxz.UI.BossHomeModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.remindTimes); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_bossHomeRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_boughtTimes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.BossHomeModel gen_to_be_invoked = (Snxxz.UI.BossHomeModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.boughtTimes = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_bossHomeRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.FairyModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 41, 32, 9); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 41, 33, 9); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "guardSkyCompleteEvent", _e_guardSkyCompleteEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "fakeFairyUpdateEvent", _e_fakeFairyUpdateEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "presentChangeMember", _g_get_presentChangeMember); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "changeNotifyLevelLimit", _g_get_changeNotifyLevelLimit); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "presentChangeMember", _g_get_presentChangeMember); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsOnAllot", _g_get_IsOnAllot); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "createFairyLv", _g_get_createFairyLv); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "createFairyCost", _g_get_createFairyCost); |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_changeNotifyLevelLimit(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FairyModel gen_to_be_invoked = (Snxxz.UI.FairyModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.changeNotifyLevelLimit); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_presentChangeMember(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.HazyRegionModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 23, 18, 3); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 23, 19, 3); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "requireIncidentAnimation", _g_get_requireIncidentAnimation); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "incidentDirty", _g_get_incidentDirty); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "openActviePoint", _g_get_openActviePoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoOpenLimitLevel", _g_get_autoOpenLimitLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectIncident", _g_get_selectIncident); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "InFakeHazyRegion", _g_get_InFakeHazyRegion); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "incidentTypesSort", _g_get_incidentTypesSort); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_autoOpenLimitLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.HazyRegionModel gen_to_be_invoked = (Snxxz.UI.HazyRegionModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.autoOpenLimitLevel); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectIncident(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.ReikiRootModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 27, 24, 11); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 29, 25, 11); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUnLimitTimeResetItem", _m_GetUnLimitTimeResetItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsQualityProperty", _m_IsQualityProperty); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsPreReikiRoot", _m_IsPreReikiRoot); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAfterReikiRoot", _m_IsAfterReikiRoot); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSatisfyReikiRootCondition", _m_IsSatisfyReikiRootCondition); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReceivePackage", _m_ReceivePackage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendAddPoint", _m_SendAddPoint); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshReikiRootPoint", _m_RefreshReikiRootPoint); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectLimitLevel", _g_get_effectLimitLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "reikiPointAutoAddLevel", _g_get_reikiPointAutoAddLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "levelUpAddPoint", _g_get_levelUpAddPoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "afterReikiRootLimitLevel", _g_get_afterReikiRootLimitLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "titleAddPoint", _g_get_titleAddPoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "treasureAddPoint", _g_get_treasureAddPoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastReikiRootPoints", _g_get_lastReikiRootPoints); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsAfterReikiRoot(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ReikiRootModel gen_to_be_invoked = (Snxxz.UI.ReikiRootModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsAfterReikiRoot( _id ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsSatisfyReikiRootCondition(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ReikiRootModel gen_to_be_invoked = (Snxxz.UI.ReikiRootModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | int _condition; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsSatisfyReikiRootCondition( _id, out _condition ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _condition); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ReceivePackage(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_afterReikiRootLimitLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.ReikiRootModel gen_to_be_invoked = (Snxxz.UI.ReikiRootModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.afterReikiRootLimitLevel); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_titleAddPoint(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | table.SetMetaTable(meta); |
| | | meta.Dispose(); |
| | | |
| | | table.Set("this", this); |
| | | table.Set("transform", this.transform); |
| | | LuaUtility.DoString(fileName, "LuaBehaviour", table); |
| | | |
| | | var luaAwake = table.Get<Action>("Awake"); |
| | |
| | | switch ((DailyQuestType)_dailyQuestId)
|
| | | {
|
| | | case DailyQuestType.FairyFeast:
|
| | | case DailyQuestType.FairyTask:
|
| | | case DailyQuestType.FairyGrabBoss:
|
| | | case DailyQuestType.AllianceBoss:
|
| | | return defaultUnlock && PlayerDatas.Instance.baseData.FamilyId > 0;
|
| | |
| | | case DailyQuestType.FairyTask:
|
| | | if (PlayerDatas.Instance.baseData.LV <= GeneralDefine.dailyQuestRedpointLevelLimit)
|
| | | {
|
| | | if (FuncOpen.Instance.IsFuncOpen(16) && PlayerDatas.Instance.baseData.FamilyId > 0
|
| | | && TaskAllocation.Instance.FairyAuAllNumber() < taskModel.FairyAuTaskCount_Day)
|
| | | if (FuncOpen.Instance.IsFuncOpen(16) |
| | | && TaskAllocation.Instance.FairyAuAllNumber() < taskModel.FairyAuTaskCount_Day)
|
| | | {
|
| | | dailyQuest.redpoint.state = RedPointState.Simple;
|
| | | }
|
| | |
| | | {
|
| | | var type = (DailyQuestType)_dailyQuestId;
|
| | | var dailyConfig = DailyQuestConfig.Get(_dailyQuestId);
|
| | | if (type == DailyQuestType.FairyFeast || type == DailyQuestType.FairyTask || type == DailyQuestType.FairyGrabBoss)
|
| | | if (type == DailyQuestType.FairyFeast || type == DailyQuestType.FairyGrabBoss)
|
| | | {
|
| | | if (PlayerDatas.Instance.fairyData.HasFairy)
|
| | | {
|
| | |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1019")); |
| | | return; |
| | | } |
| | | if (PlayerDatas.Instance.baseData.LV < model.changeNotifyLevelLimit)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("jiazu_pan_592935", model.changeNotifyLevelLimit);
|
| | | return;
|
| | | } |
| | | WindowCenter.Instance.Open<FairyChangeTipWin>(); |
| | | } |
| | | |
| | |
| | | [XLua.LuaCallCSharp]
|
| | | public class FairyModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public int changeNotifyLevelLimit { get; private set; }
|
| | |
|
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | | FairyBossModel fairyBossModel { get { return ModelCenter.Instance.GetModel<FairyBossModel>(); } }
|
| | |
|
| | |
| | | fairyMethodToLimit = int.Parse(config.Numerical1);
|
| | | config = FuncConfigConfig.Get("FamilyMatchSet");
|
| | | fairyLeagueLimit = int.Parse(config.Numerical1);
|
| | | config = FuncConfigConfig.Get("FamilyPurview");
|
| | | changeNotifyLevelLimit = int.Parse(config.Numerical2);
|
| | | }
|
| | |
|
| | | public static string GetFairyGradeLabel(int rank)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | int m_BoughtTimes = 0;
|
| | | public int boughtTimes {
|
| | | get { return m_BoughtTimes; }
|
| | | set {
|
| | | m_BoughtTimes = value;
|
| | | UpdateRedpoint();
|
| | | if (boughtTimeChangeEvent != null)
|
| | | {
|
| | | boughtTimeChangeEvent();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public int remindTimes {
|
| | | get {
|
| | | var wearyValueLimit = vipModel.GetVipPrivilegeCnt(VipPrivilegeType.BossHomeAwardLimit);
|
| | | return wearyValueLimit + boughtTimes - wearyValue;
|
| | | }
|
| | | }
|
| | |
|
| | | public event Action<int> bossHomeFloorSelectedEvent;
|
| | | public event Action<int> bossSelectedEvent;
|
| | | public event Action bossWearyValueChangeEvent;
|
| | | public event Action boughtTimeChangeEvent;
|
| | |
|
| | | public Redpoint bossHomeRedpoint = new Redpoint(FindPreciousModel.FINDPRECIOUS_REDPOINTID, BOSSHOME_REDPOINT);
|
| | | Dictionary<int, BossHomeData> bossHomes = new Dictionary<int, BossHomeData>();
|
| | |
| | | {
|
| | | var bossId = sortedBosses[i];
|
| | | var bossHomeConfig = BossHomeConfig.Get(bossId);
|
| | | if (findPreciousModel.IsBossUnlock(bossId) |
| | | if (findPreciousModel.IsBossUnlock(bossId)
|
| | | && vipLevel >= GetFloorVipRequirement(bossHomeConfig.FloorNum))
|
| | | {
|
| | | return bossHomeConfig.FloorNum;
|
| | |
| | |
|
| | | private void UpdateRedpoint()
|
| | | {
|
| | | var count = vipModel.GetVipPrivilegeCnt(VipPrivilegeType.BossHomeAwardLimit) - m_WearyValue;
|
| | | var count = remindTimes;
|
| | | bossHomeRedpoint.count = count;
|
| | | bossHomeRedpoint.state = count > 0 ? RedPointState.Quantity : RedPointState.None;
|
| | | }
|
| | |
| | | m_FloorGroup.Init();
|
| | | m_Vip.text = StringUtility.Contact("V", model.GetFloorVipRequirement(model.selectedFloor));
|
| | |
|
| | | var wearyValueLimit = vipModel.GetVipPrivilegeCnt(VipPrivilegeType.BossHomeAwardLimit);
|
| | | m_WearyContainer.gameObject.SetActive(wearyValueLimit > 0);
|
| | | if (wearyValueLimit > 0)
|
| | | {
|
| | | m_WearyValue.text = Language.Get("WorldBoss_Endurance0", wearyValueLimit - model.wearyValue);
|
| | | m_WearyValue.colorType = model.wearyValue >= wearyValueLimit ? TextColType.Red : TextColType.DarkGreen;
|
| | | }
|
| | | DisplayRemindTimes();
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | model.bossSelectedEvent += OnBossSelected;
|
| | | model.bossHomeFloorSelectedEvent += OnFloorSelected;
|
| | | model.boughtTimeChangeEvent += DisplayRemindTimes;
|
| | | findPreciousModel.bossSubscribeChangeEvent += OnSubscribeBoss;
|
| | | }
|
| | |
|
| | |
| | | m_FloorGroup.UnInit();
|
| | | model.bossSelectedEvent -= OnBossSelected;
|
| | | model.bossHomeFloorSelectedEvent -= OnFloorSelected;
|
| | | model.boughtTimeChangeEvent -= DisplayRemindTimes;
|
| | | findPreciousModel.bossSubscribeChangeEvent -= OnSubscribeBoss;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void DisplayRemindTimes()
|
| | | {
|
| | | var wearyValueLimit = vipModel.GetVipPrivilegeCnt(VipPrivilegeType.BossHomeAwardLimit);
|
| | | m_WearyContainer.gameObject.SetActive(wearyValueLimit > 0);
|
| | | if (wearyValueLimit > 0)
|
| | | {
|
| | | var countInfo = string.Format("{0}/{1}", model.remindTimes, wearyValueLimit);
|
| | | m_WearyValue.text = countInfo;
|
| | | m_WearyValue.colorType = model.remindTimes <= 0 ? TextColType.Red : TextColType.DarkGreen;
|
| | | }
|
| | | }
|
| | |
|
| | | private void DisplayGotoKillButton(int bossId)
|
| | | {
|
| | | }
|
| | |
| | |
|
| | | private void OnExitAdventureStage()
|
| | | {
|
| | | SnxxzGame.Instance.StartCoroutine(Co_TryOpenHazyRegionWin());
|
| | | if (PlayerDatas.Instance.baseData.LV > autoOpenLimitLevel)
|
| | | {
|
| | | SnxxzGame.Instance.StartCoroutine(Co_TryOpenHazyRegionWin());
|
| | | }
|
| | | //WindowCenter.Instance.Close<HazyAdventureHintWin>();
|
| | | //taskModel.AutomaticTripToTask(taskModel.currentMission);
|
| | | }
|
| | |
| | | show = !GeneralDefine.worldBossNoRebornRemindMaps.Contains(mapId);
|
| | | break;
|
| | | case FindPreciousType.BossHome:
|
| | | killable = bossHomeModel.wearyValue < vipModel.GetVipPrivilegeCnt(VipPrivilegeType.BossHomeAwardLimit);
|
| | | killable = bossHomeModel.remindTimes > 0;
|
| | | show = !GeneralDefine.bossHomeNoRebornRemindMaps.Contains(mapId);
|
| | | break;
|
| | | case FindPreciousType.ElderGodArea:
|
| | |
| | | case DailyQuestType.FairyFeast:
|
| | | case DailyQuestType.FairyTask:
|
| | | var _dailyConfig = DailyQuestConfig.Get(_dailyQuestId);
|
| | | return PlayerDatas.Instance.baseData.FamilyId > 0 &&
|
| | | (_dailyConfig.UnLockFuncID == 0 || FuncOpen.Instance.IsFuncOpen(_dailyConfig.UnLockFuncID));
|
| | | return (_dailyConfig.UnLockFuncID == 0 || FuncOpen.Instance.IsFuncOpen(_dailyConfig.UnLockFuncID));
|
| | | case DailyQuestType.RuneTowerSweep:
|
| | | return ModelCenter.Instance.GetModel<RuneTowerModel>().yesterdayPassFloor > 0;
|
| | | default:
|
| | |
| | | case JumpUIType.UnionFunc2:
|
| | | case JumpUIType.UnionWarehouse:
|
| | | case JumpUIType.UnionHall:
|
| | | case JumpUIType.UnionTask:
|
| | | case JumpUIType.UnionTask2:
|
| | | case JumpUIType.UnionActive1:
|
| | | case JumpUIType.UnionActive2:
|
| | | if (!PlayerDatas.Instance.fairyData.HasFairy)
|
| | |
| | | AssistXianYuanCoinsRatioAdd = 34,//助战仙缘币获得倍率加成(万分比)
|
| | | JadeDynastyBoss = 35,
|
| | | BatchAlchemyFairy = 36,//批量炼制仙丹
|
| | | BossHomeBuyTimes=37,//boss之家购买次数
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|