| | |
| | | using System.Text;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PlayerDeadModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | public class PlayerDeadModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public int[]dungeonKillArray { get; private set; }
|
| | | public int deadBuffId { get; private set;}
|
| | | public int maxDeadBuffLV { get; private set;}
|
| | | public int[] dungeonKillArray { get; private set; }
|
| | | public int deadBuffId { get; private set; }
|
| | | public int maxDeadBuffLV { get; private set; }
|
| | |
|
| | | public override void Init()
|
| | | {
|
| | |
| | | public bool isBossKill = false;
|
| | | public float duplicatesRebornTime = 0;
|
| | | private Dictionary<int, int> duplicatesRebornDict;
|
| | | public bool playerIsDie
|
| | | {
|
| | | public bool playerIsDie {
|
| | | get {
|
| | |
|
| | | if(PlayerDatas.Instance.hero != null)
|
| | | if (PlayerDatas.Instance.hero != null)
|
| | | {
|
| | | return PlayerDatas.Instance.hero.ActorInfo.serverDie;
|
| | | }
|
| | |
| | | private DungeonOpenTimeConfig _dungeonOpenTimeModel;
|
| | |
|
| | | public bool IsCanReborn { get; private set; }
|
| | | public bool localBossState { get; private set;}
|
| | | public bool localBossState { get; private set; }
|
| | | public string killerName { get; private set; }
|
| | | public bool isKillByPlayer { get; private set; }
|
| | | public int npcRealmLv { get; private set; }
|
| | |
| | | }
|
| | | break;
|
| | | case "GeRen_chenxin_279029":
|
| | | if(infolist.Count > 0)
|
| | | if (infolist.Count > 0)
|
| | | {
|
| | | WorldBossConfig bossConfig = Config.Instance.Get<WorldBossConfig>(int.Parse(infolist[0].ToString()));
|
| | | NPCConfig nPCConfig = Config.Instance.Get<NPCConfig>(int.Parse(infolist[0].ToString()));
|
| | | if(nPCConfig != null)
|
| | | if (nPCConfig != null)
|
| | | {
|
| | | killerName = nPCConfig.charName;
|
| | | npcRealmLv = nPCConfig.Realm;
|
| | | }
|
| | | if(bossConfig != null)
|
| | | if (bossConfig != null)
|
| | | {
|
| | | localBossState = true;
|
| | | }
|
| | |
| | | break;
|
| | | case "RobotKill_1":
|
| | | if (infolist.Count > 1)
|
| | | { |
| | | {
|
| | | int objId = int.Parse(infolist[0].ToString());
|
| | | int npcId = int.Parse(infolist[1].ToString());
|
| | | killerName = activityModel.GetAncientRobotName(objId,npcId);
|
| | | killerName = activityModel.GetAncientRobotName(objId, npcId);
|
| | | isKillByPlayer = false;
|
| | | }
|
| | | |
| | |
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | public bool CheckIsRealmSuppress(out StringBuilder builder)
|
| | | {
|
| | | builder = new StringBuilder();
|
| | | if(npcRealmLv > PlayerDatas.Instance.baseData.realmLevel)
|
| | | if (npcRealmLv > PlayerDatas.Instance.baseData.realmLevel)
|
| | | {
|
| | | var curRealmConfig = Config.Instance.Get<RealmConfig>(npcRealmLv);
|
| | | builder.AppendFormat("<Img img={0}/>", curRealmConfig.Img);
|
| | |
| | | autoRebornTime = RebornConditions[3];
|
| | | }
|
| | |
|
| | | if(!WindowCenter.Instance.IsOpen<RebornWin>())
|
| | | if (!WindowCenter.Instance.IsOpen<RebornWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<RebornWin>();
|
| | | }
|
| | |
| | |
|
| | | TimeDownMgr.Instance.Begin(TimeDownMgr.CoolTimeType.DuplicatesReborn, this.duplicatesRebornTime, RefreshDuplicatesRebornCD);
|
| | |
|
| | | switch(PlayerDatas.Instance.baseData.MapID)
|
| | | switch (PlayerDatas.Instance.baseData.MapID)
|
| | | {
|
| | | case 31150:
|
| | | if (dungeonModel.mission.score >= 100)
|
| | | {
|
| | | if(!WindowCenter.Instance.IsOpen<ElderGodAreaExitWin>())
|
| | | if (!WindowCenter.Instance.IsOpen<ElderGodAreaExitWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<ElderGodAreaExitWin>();
|
| | | }
|
| | |
| | | }
|
| | | break;
|
| | | case 31110:
|
| | | if(dungeonModel.mission.leaderID != playerId)
|
| | | if (dungeonModel.mission.leaderID != playerId)
|
| | | {
|
| | | if (!WindowCenter.Instance.IsOpen<ReliveWin>())
|
| | | {
|