namespace vnxbqy.UI
|
{
|
//轮回殿活动
|
public class OperationYunShi : OperationBase
|
{
|
public int treasureType;
|
|
public override bool SatisfyOpenCondition()
|
{
|
return PlayerDatas.Instance.baseData.LV >= limitLv;
|
}
|
|
public override string ToDisplayTime()
|
{
|
var textBuilder = OperationTimeHepler.textBuilder;
|
textBuilder.Length = 0;
|
|
OperationDate adjustedStartDate = startDate;
|
int adjustedStartHour = joinStartHour;
|
int adjustedStartMinute = joinStartMinute;
|
if (resetType == 0)
|
{
|
adjustedStartHour = 0;
|
adjustedStartMinute = 0;
|
}
|
else if (resetType == 1)
|
{
|
adjustedStartHour = 4;
|
adjustedStartMinute = 59;
|
}
|
|
textBuilder.Append(adjustedStartDate.ToDisplay(false));
|
textBuilder.Append(string.Format(" {0}:{1}", adjustedStartHour.ToString("D2"), adjustedStartMinute.ToString("D2")));
|
|
|
OperationDate adjustedEndDate = endDate;
|
int adjustedEndHour = joinEndHour;
|
int adjustedEndMinute = joinEndMinute;
|
|
|
if (resetType == 0)
|
{
|
adjustedEndDate.day += 1;
|
}
|
else if (resetType == 1)
|
{
|
adjustedEndDate.day += 1;
|
adjustedEndHour = 4;
|
adjustedEndMinute = 59;
|
}
|
|
textBuilder.Append(" - ");
|
textBuilder.Append(adjustedEndDate.ToDisplay(false));
|
textBuilder.Append(string.Format(" {0}:{1}", adjustedEndHour.ToString("D2"), adjustedEndMinute.ToString("D2")));
|
|
return textBuilder.ToString();
|
}
|
|
public override void Reset()
|
{
|
base.Reset();
|
treasureType = 0;
|
}
|
}
|
}
|