Пример #1
0
 public static bool canFinalEscape()
 {
     if (Randomizer.fragsEnabled && RandomizerBonus.WarmthFrags() < Randomizer.fragKeyFinish)
     {
         Randomizer.printInfo(string.Concat(new string[]
         {
             "Frags: (",
             RandomizerBonus.WarmthFrags().ToString(),
             "/",
             Randomizer.fragKeyFinish.ToString(),
             ")"
         }));
         return(false);
     }
     if (Randomizer.WorldTour)
     {
         int relics = Characters.Sein.Inventory.GetRandomizerItem(302);
         if (relics < Randomizer.RelicCount)
         {
             Randomizer.printInfo("Relics (" + relics.ToString() + "/" + Randomizer.RelicCount.ToString() + ")");
             return(false);
         }
     }
     if (Randomizer.ForceTrees && RandomizerBonus.SkillTreeProgression() < 10)
     {
         Randomizer.printInfo("Trees (" + RandomizerBonus.SkillTreeProgression().ToString() + "/10)");
         return(false);
     }
     if (Randomizer.ForceMaps && RandomizerBonus.MapStoneProgression() < 9)
     {
         Randomizer.printInfo("Maps (" + RandomizerBonus.MapStoneProgression().ToString() + "/9)");
         return(false);
     }
     return(true);
 }
    // Token: 0x060037BE RID: 14270 RVA: 0x000E472C File Offset: 0x000E292C
    public static string GetClues()
    {
        string text  = "";
        string text2 = "";
        string text3 = "";

        string[] array = new string[]
        {
            "????",
            "????",
            "????"
        };
        if (Keys.GinsoTree)
        {
            array[0] = RandomizerClues.Clues[RandomizerClues.RevealOrder[0] - 1];
            text     = "*";
        }
        if (Keys.ForlornRuins)
        {
            array[1] = RandomizerClues.Clues[RandomizerClues.RevealOrder[1] - 1];
            text2    = "#";
        }
        if (Keys.MountHoru)
        {
            array[2] = RandomizerClues.Clues[RandomizerClues.RevealOrder[2] - 1];
            text3    = "@";
        }
        for (int i = 0; i < 3; i++)
        {
            if (RandomizerBonus.SkillTreeProgression() >= RandomizerClues.RevealOrder[i] * 3)
            {
                array[i] = RandomizerClues.Clues[RandomizerClues.RevealOrder[i] - 1];
            }
        }
        return(string.Concat(new string[]
        {
            text,
            "WV: ",
            array[0],
            text,
            " ",
            text2,
            "GS: ",
            array[1],
            text2,
            "  ",
            text3,
            "SS: ",
            array[2],
            text3
        }));
    }
Пример #3
0
    // Token: 0x060037D1 RID: 14289
    public static string GetClues()
    {
        string blue   = "";
        string yellow = "";
        string red    = "";

        string[] revealedClues = new string[]
        {
            "????",
            "????",
            "????"
        };
        if (Keys.GinsoTree)
        {
            revealedClues[0] = RandomizerClues.Clues[RandomizerClues.RevealOrder[0] - 1];
            blue             = "*";
        }
        if (Keys.ForlornRuins)
        {
            revealedClues[1] = RandomizerClues.Clues[RandomizerClues.RevealOrder[1] - 1];
            yellow           = "#";
        }
        if (Keys.MountHoru)
        {
            revealedClues[2] = RandomizerClues.Clues[RandomizerClues.RevealOrder[2] - 1];
            red = "@";
        }
        for (int i = 0; i < 3; i++)
        {
            if (RandomizerBonus.SkillTreeProgression() >= RandomizerClues.RevealOrder[i] * 3)
            {
                revealedClues[i] = RandomizerClues.Clues[RandomizerClues.RevealOrder[i] - 1];
            }
        }
        return(string.Concat(new string[]
        {
            blue,
            "Water Vein: ",
            revealedClues[0],
            blue,
            "\n",
            yellow,
            "Gumon Seal: ",
            revealedClues[1],
            yellow,
            "  ",
            red,
            "Sunstone: ",
            revealedClues[2],
            red
        }));
    }
Пример #4
0
    // Token: 0x0600374A RID: 14154 RVA: 0x000E127C File Offset: 0x000DF47C
    public static void showProgress()
    {
        string text = "";

        if (RandomizerBonus.SkillTreeProgression() < 10)
        {
            text = text + "Trees (" + RandomizerBonus.SkillTreeProgression().ToString() + "/10)  ";
        }
        else
        {
            text += "$Trees (10/10)$  ";
        }
        text = text + "Maps (" + RandomizerBonus.MapStoneProgression().ToString() + "/9)  ";
        text = text + "Total (" + RandomizerBonus.GetPickupCount().ToString() + "/248)\n";
        if (Randomizer.CluesMode)
        {
            text += RandomizerClues.GetClues();
        }
        else
        {
            if (Keys.GinsoTree)
            {
                text += "*WV (3/3)*  ";
            }
            else
            {
                text = text + " *WV* (" + RandomizerBonus.WaterVeinShards().ToString() + "/3)  ";
            }
            if (Keys.ForlornRuins)
            {
                text += "#GS (3/3)#  ";
            }
            else
            {
                text = text + "#GS# (" + RandomizerBonus.GumonSealShards().ToString() + "/3)  ";
            }
            if (Keys.MountHoru)
            {
                text += "@SS (3/3)@";
            }
            else
            {
                text = text + " @SS@ (" + RandomizerBonus.SunstoneShards().ToString() + "/3)";
            }
        }
        Randomizer.MessageQueue.Enqueue(text);
    }
Пример #5
0
    // Token: 0x06003747 RID: 14151 RVA: 0x000E091C File Offset: 0x000DEB1C
    public static void showProgress()
    {
        string text = "";

        if (RandomizerBonus.SkillTreeProgression() < 10)
        {
            text += "Trees (" + RandomizerBonus.SkillTreeProgression().ToString() + "/10) ";
        }
        else
        {
            text += "#Trees (10/10)# ";
        }
        if (Keys.GinsoTree)
        {
            text += " #Water Vein (3/3)#\n";
        }
        else
        {
            text += " Water Vein (" + RandomizerBonus.WaterVeinShards().ToString() + "/3)\n";
        }
        if (Keys.ForlornRuins)
        {
            text += "#Gumon Seal (3/3)# ";
        }
        else
        {
            text += "Gumon Seal (" + RandomizerBonus.GumonSealShards().ToString() + "/3) ";
        }
        if (Keys.MountHoru)
        {
            text += " #Sunstone (3/3)#";
        }
        else
        {
            text += " Sunstone (" + RandomizerBonus.SunstoneShards().ToString() + "/3)";
        }
        Randomizer.MessageProvider.SetMessage(text);
        UI.Hints.Show(Randomizer.MessageProvider, HintLayer.GameSaved, 3f);
    }
Пример #6
0
 // Token: 0x06003743 RID: 14147 RVA: 0x000E06A0 File Offset: 0x000DE8A0
 public static void Update()
 {
     if (Characters.Sein && !Characters.Sein.IsSuspended)
     {
         Characters.Sein.Mortality.Health.GainHealth((float)RandomizerBonus.HealthRegeneration() * (Characters.Sein.PlayerAbilities.HealthEfficiency.HasAbility ? 0.0016f : 0.0008f));
         Characters.Sein.Energy.Gain((float)RandomizerBonus.EnergyRegeneration() * (Characters.Sein.PlayerAbilities.EnergyEfficiency.HasAbility ? 0.0003f : 0.0002f));
         if (Randomizer.ForceTrees && Scenes.Manager.CurrentScene != null && Scenes.Manager.CurrentScene.Scene == "catAndMouseResurrectionRoom" && RandomizerBonus.SkillTreeProgression() < 10)
         {
             Characters.Sein.Position = new Vector3(20f, 105f);
         }
         if (Randomizer.Chaos)
         {
             RandomizerChaosManager.Update();
         }
     }
     if (MoonInput.GetKey(KeyCode.LeftAlt) || MoonInput.GetKey(KeyCode.RightAlt))
     {
         if (MoonInput.GetKeyDown(RandomizerRebinding.ReplayMessage))
         {
             Randomizer.playLastMessage();
             return;
         }
         if (MoonInput.GetKeyDown(RandomizerRebinding.ReturnToStart) && Characters.Sein)
         {
             Randomizer.returnToStart();
             return;
         }
         if (MoonInput.GetKeyDown(RandomizerRebinding.ReloadSeed))
         {
             Randomizer.initialize();
             Randomizer.showSeedInfo();
             return;
         }
         if (MoonInput.GetKeyDown(RandomizerRebinding.ShowProgress) && Characters.Sein)
         {
             Randomizer.showProgress();
             return;
         }
         if (MoonInput.GetKeyDown(RandomizerRebinding.ToggleChaos) && Characters.Sein)
         {
             if (Randomizer.Chaos)
             {
                 Randomizer.showChaosMessage("Chaos deactivated");
                 Randomizer.Chaos = false;
                 RandomizerChaosManager.ClearEffects();
                 return;
             }
             Randomizer.showChaosMessage("Chaos activated");
             Randomizer.Chaos = true;
             return;
         }
         else if (MoonInput.GetKeyDown(RandomizerRebinding.ChaosVerbosity) && Randomizer.Chaos)
         {
             Randomizer.ChaosVerbose = !Randomizer.ChaosVerbose;
             if (Randomizer.ChaosVerbose)
             {
                 Randomizer.showChaosMessage("Chaos messages enabled");
                 return;
             }
             Randomizer.showChaosMessage("Chaos messages disabled");
             return;
         }
         else if (MoonInput.GetKeyDown(RandomizerRebinding.ForceChaosEffect) && Randomizer.Chaos && Characters.Sein)
         {
             RandomizerChaosManager.SpawnEffect();
             return;
         }
     }
 }
Пример #7
0
    public static void showProgress()
    {
        string text = "";

        if (Randomizer.ForceTrees || Randomizer.CluesMode)
        {
            if (RandomizerBonus.SkillTreeProgression() == 10)
            {
                text += "$Trees (10/10)$  ";
            }
            else
            {
                text = text + "Trees (" + RandomizerBonus.SkillTreeProgression().ToString() + "/10)  ";
            }
        }
        if (Randomizer.WorldTour && Characters.Sein)
        {
            int relics = Characters.Sein.Inventory.GetRandomizerItem(302);
            if (relics < Randomizer.RelicCount)
            {
                text += "Relics (" + relics.ToString() + "/" + Randomizer.RelicCount.ToString() + ") ";
            }
            else
            {
                text += "$Relics (" + relics.ToString() + "/" + Randomizer.RelicCount.ToString() + ")$ ";
            }
        }
        if (RandomizerBonus.MapStoneProgression() == 9 && Randomizer.ForceMaps)
        {
            text += "$Maps (9/9)$  ";
        }
        else
        {
            text = text + "Maps (" + RandomizerBonus.MapStoneProgression().ToString() + "/9)  ";
        }
        text = text + "Total (" + RandomizerBonus.GetPickupCount().ToString() + "/256)\n";
        if (Randomizer.CluesMode)
        {
            text += RandomizerClues.GetClues();
        }
        else
        {
            if (Keys.GinsoTree)
            {
                text += "*WV (3/3)*  ";
            }
            else
            {
                text = text + " *WV* (" + RandomizerBonus.WaterVeinShards().ToString() + "/3)  ";
            }
            if (Keys.ForlornRuins)
            {
                text += "#GS (3/3)#  ";
            }
            else
            {
                text = text + "#GS# (" + RandomizerBonus.GumonSealShards().ToString() + "/3)  ";
            }
            if (Keys.MountHoru)
            {
                text += "@SS (3/3)@";
            }
            else
            {
                text = text + " @SS@ (" + RandomizerBonus.SunstoneShards().ToString() + "/3)";
            }
        }
        if (Randomizer.fragsEnabled)
        {
            text = string.Concat(new string[] { text, " Frags: (", RandomizerBonus.WarmthFrags().ToString(), "/", Randomizer.fragKeyFinish.ToString(), ")" });
        }
        if (RandomizerBonus.ForlornEscapeHint())
        {
            string s_color = "";
            string g_color = "";
            if (Characters.Sein)
            {
                if (Characters.Sein.PlayerAbilities.HasAbility(AbilityType.Stomp))
                {
                    s_color = "$";
                }
                if (Characters.Sein.PlayerAbilities.HasAbility(AbilityType.Grenade))
                {
                    g_color = "$";
                }
            }

            text += "\n" + s_color + "Stomp: " + StompZone + s_color + g_color + "    Grenade: " + GrenadeZone + g_color;
        }
        Randomizer.printInfo(text);
    }
Пример #8
0
 // Token: 0x06003746 RID: 14150 RVA: 0x000E0F2C File Offset: 0x000DF12C
 public static void Update()
 {
     Randomizer.UpdateMessages();
     if (Characters.Sein && !Characters.Sein.IsSuspended)
     {
         Characters.Sein.Mortality.Health.GainHealth((float)RandomizerBonus.HealthRegeneration() * (Characters.Sein.PlayerAbilities.HealthEfficiency.HasAbility ? 0.0016f : 0.0008f));
         Characters.Sein.Energy.Gain((float)RandomizerBonus.EnergyRegeneration() * (Characters.Sein.PlayerAbilities.EnergyEfficiency.HasAbility ? 0.0003f : 0.0002f));
         if (Randomizer.ForceTrees && Scenes.Manager.CurrentScene != null && Scenes.Manager.CurrentScene.Scene == "catAndMouseResurrectionRoom" && RandomizerBonus.SkillTreeProgression() < 10)
         {
             Randomizer.MessageQueue.Enqueue("Trees (" + RandomizerBonus.SkillTreeProgression().ToString() + "/10)");
             if (Randomizer.Entrance)
             {
                 Randomizer.EnterDoor(new Vector3(-242f, 489f));
             }
             else
             {
                 Characters.Sein.Position = new Vector3(20f, 105f);
             }
         }
         if (Randomizer.Chaos)
         {
             RandomizerChaosManager.Update();
         }
         if (Randomizer.Sync)
         {
             RandomizerSyncManager.Update();
         }
         if (Randomizer.Returning)
         {
             Characters.Sein.Position = new Vector3(189f, -215f);
             Characters.Ori.Position  = new Vector3(190f, -210f);
             Randomizer.Returning     = false;
         }
     }
     if (RandomizerRebinding.ReplayMessage.IsPressed())
     {
         Randomizer.playLastMessage();
         return;
     }
     if (RandomizerRebinding.ReturnToStart.IsPressed() && Characters.Sein)
     {
         Randomizer.returnToStart();
         return;
     }
     if (RandomizerRebinding.ReloadSeed.IsPressed())
     {
         Randomizer.initialize();
         Randomizer.showSeedInfo();
         return;
     }
     if (RandomizerRebinding.ShowProgress.IsPressed() && Characters.Sein)
     {
         Randomizer.showProgress();
         return;
     }
     if (RandomizerRebinding.ColorShift.IsPressed())
     {
         string obj = "Color shift enabled";
         if (Randomizer.ColorShift)
         {
             obj = "Color shift disabled";
         }
         Randomizer.ColorShift = !Randomizer.ColorShift;
         Randomizer.MessageQueue.Enqueue(obj);
     }
     if (RandomizerRebinding.ToggleChaos.IsPressed() && Characters.Sein)
     {
         if (Randomizer.Chaos)
         {
             Randomizer.showChaosMessage("Chaos deactivated");
             Randomizer.Chaos = false;
             RandomizerChaosManager.ClearEffects();
             return;
         }
         Randomizer.showChaosMessage("Chaos activated");
         Randomizer.Chaos = true;
         return;
     }
     else if (RandomizerRebinding.ChaosVerbosity.IsPressed() && Randomizer.Chaos)
     {
         Randomizer.ChaosVerbose = !Randomizer.ChaosVerbose;
         if (Randomizer.ChaosVerbose)
         {
             Randomizer.showChaosMessage("Chaos messages enabled");
             return;
         }
         Randomizer.showChaosMessage("Chaos messages disabled");
         return;
     }
     else
     {
         if (RandomizerRebinding.ForceChaosEffect.IsPressed() && Randomizer.Chaos && Characters.Sein)
         {
             RandomizerChaosManager.SpawnEffect();
             return;
         }
         return;
     }
 }