private bool setRankA(DifficultKind difficult, DateTime dt, int elapsedYear, uint lostNum, ref OverallRank outRank, ref int outDecNum, ref bool outPositive) { if (difficult > DifficultKind.KOU) { return(false); } Mem_turn user_turn = Comm_UserDatas.Instance.User_turn; outRank = OverallRank.A; outPositive = true; outDecNum = 0; if (difficult == DifficultKind.KOU && lostNum <= 6) { DateTime dateTime = user_turn.GetDateTime(3, 8, 15); outDecNum = 3; if (dt.Date <= dateTime.Date) { return(true); } } if (difficult <= DifficultKind.OTU) { outDecNum = 2; if (difficult != DifficultKind.OTU) { if (elapsedYear <= 1 && lostNum == 0) { return(true); } } else { DateTime dateTime2 = user_turn.GetDateTime(3, 8, 15); if (lostNum <= 6 && dt.Date <= dateTime2.Date) { return(true); } } } if (difficult <= DifficultKind.HEI) { outDecNum = 1; if (elapsedYear <= 2 && lostNum == 0) { return(true); } } outDecNum = 0; if (difficult <= DifficultKind.HEI) { DateTime dateTime3 = user_turn.GetDateTime(3, 8, 15); if (dt.Date <= dateTime3.Date && lostNum == 0) { return(true); } } return(false); }
private bool setRankEx(DifficultKind difficult, DateTime dt, int elapsedYear, uint lostNum, ref OverallRank outRank, ref int outDecNum, ref bool outPositive) { Mem_turn user_turn = Comm_UserDatas.Instance.User_turn; outPositive = true; outRank = OverallRank.EX; outDecNum = 0; if (difficult != DifficultKind.SHI) { return(false); } if (elapsedYear <= 1 && lostNum == 0) { outDecNum = 4; return(true); } if (elapsedYear <= 2 && lostNum == 0) { outDecNum = 3; return(true); } if (elapsedYear <= 3 && lostNum == 0) { outDecNum = 2; DateTime dateTime = user_turn.GetDateTime(3, 8, 15); if (dt.Date <= dateTime.Date) { return(true); } } if (elapsedYear <= 2 && lostNum <= 3) { outDecNum = 1; return(true); } if (elapsedYear <= 3 && lostNum <= 3) { outDecNum = 0; DateTime dateTime2 = user_turn.GetDateTime(3, 8, 15); if (dt.Date <= dateTime2.Date) { return(true); } } return(false); }
private void setTurnRewardItem(out List <ItemGetFmt> turnReward) { turnReward = null; List <ItemGetFmt> list = new List <ItemGetFmt>(); DateTime dateTime = turnInstance.GetDateTime(); if (dateTime.Month == 2 && dateTime.Day == 14) { ItemGetFmt itemGetFmt = new ItemGetFmt(); itemGetFmt.Category = ItemGetKinds.UseItem; itemGetFmt.Id = 56; itemGetFmt.Count = 1; list.Add(itemGetFmt); } if (list.Count > 0) { turnReward = list; } }
private bool setRankB(DifficultKind difficult, DateTime dt, int elapsedYear, uint lostNum, ref OverallRank outRank, ref int outDecNum, ref bool outPositive) { Mem_turn user_turn = Comm_UserDatas.Instance.User_turn; DateTime dateTime = user_turn.GetDateTime(3, 8, 15); outDecNum = 0; outPositive = true; outRank = OverallRank.B; if (dt.Date <= dateTime.Date) { outDecNum = 2; if (difficult <= DifficultKind.HEI && lostNum <= 4) { return(true); } if (difficult == DifficultKind.SHI && lostNum <= 19) { return(true); } if ((difficult == DifficultKind.KOU || difficult == DifficultKind.OTU) && lostNum <= 9) { return(true); } } outDecNum = 1; if (dt.Date <= dateTime.Date) { if (difficult <= DifficultKind.HEI && lostNum <= 9) { return(true); } if ((difficult == DifficultKind.KOU || difficult == DifficultKind.OTU) && lostNum <= 14) { return(true); } } if ((difficult == DifficultKind.KOU || difficult == DifficultKind.OTU) && lostNum <= 9) { return(true); } outDecNum = 0; if (difficult <= DifficultKind.HEI && lostNum <= 9) { return(true); } if ((difficult == DifficultKind.KOU || difficult == DifficultKind.OTU) && dt.Date <= dateTime.Date && lostNum <= 19) { return(true); } if (difficult == DifficultKind.SHI && lostNum <= 19) { return(true); } return(false); }
private bool setRankS(DifficultKind difficult, DateTime dt, int elapsedYear, uint lostNum, ref OverallRank outRank, ref int outDecNum, ref bool outPositive) { if (difficult < DifficultKind.OTU) { return(false); } Mem_turn user_turn = Comm_UserDatas.Instance.User_turn; outPositive = true; outRank = OverallRank.S; outDecNum = 0; if (elapsedYear <= 1 && lostNum == 0u) { outDecNum = 3; return(true); } if (difficult >= DifficultKind.OTU) { outDecNum = 2; if (difficult == DifficultKind.SHI) { if (lostNum <= 6u) { return(true); } } else if (elapsedYear <= 2 && lostNum == 0u) { return(true); } } if (difficult >= DifficultKind.OTU) { outDecNum = 1; if (difficult == DifficultKind.SHI) { if (lostNum <= 9u) { return(true); } } else if (elapsedYear <= 3) { DateTime dateTime = user_turn.GetDateTime(3, 8, 15); if (dt.get_Date() <= dateTime.get_Date() && lostNum == 0u) { return(true); } } } if (difficult >= DifficultKind.OTU) { outDecNum = 0; if (difficult == DifficultKind.SHI) { if (lostNum >= 10u && lostNum <= 19u) { return(true); } } else { DateTime dateTime2 = user_turn.GetDateTime(3, 8, 15); if (dt.get_Date() <= dateTime2.get_Date() && lostNum <= 3u) { return(true); } } } return(false); }