public MoonPhase GetLunarPhase() { //divide it by the cycle. int currentDay = GetDayOfCycle(SDate.Now()); MoonPhase ret = SDVMoon.GetLunarPhase(currentDay); if (IsBloodMoon) //restructuring. { return(MoonPhase.BloodMoon); } return(ret); }
public MoonPhase GetLunarPhase() { //divide it by the cycle. int currentDay = GetDayOfCycle(SDate.Now()); MoonPhase ret = SDVMoon.GetLunarPhase(currentDay); if (ret == MoonPhase.FullMoon) { if (Dice.NextDoublePositive() <= ModConfig.BadMoonRising) { return(MoonPhase.BloodMoon); } } return(ret); }