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: 0x06003746 RID: 14150 RVA: 0x000E08C4 File Offset: 0x000DEAC4 public static void getMapStone() { if (!Randomizer.ProgressiveMapStones) { Randomizer.getPickup(); return; } Characters.Sein.Inventory.SkillPointsCollected += 8388608; RandomizerSwitch.GivePickup((RandomizerAction)Randomizer.Table[20 + RandomizerBonus.MapStoneProgression() * 4]); }
public static void getMapStone() { if (!Randomizer.ProgressiveMapStones) { Randomizer.getPickup(); return; } RandomizerBonus.CollectMapstone(); RandomizerStatsManager.FoundMapstone(); if (Randomizer.ColorShift) { Randomizer.changeColor(); } RandomizerSwitch.GivePickup((RandomizerAction)Randomizer.Table[20 + RandomizerBonus.MapStoneProgression() * 4], 20 + RandomizerBonus.MapStoneProgression() * 4, true); }
// 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); }
// Token: 0x0600384D RID: 14413 public static void UpdateColors() { if (Randomizer.HotCold || Characters.Sein.PlayerAbilities.Sense.HasAbility) { float scale = 64f; float distance = 100f; if (Characters.Ori.InsideMapstone) { int currentMap = 20 + RandomizerBonus.MapStoneProgression() * 4; using (List <int> .Enumerator enumerator = Randomizer.HotColdMaps.GetEnumerator()) { while (enumerator.MoveNext()) { int map = enumerator.Current; if (map > currentMap) { distance = (float)(map - currentMap - 4) * 2f; break; } } } } else { distance = Vector3.Distance(RandomizerColorManager.HotColdTarget, Characters.Sein.Position); } if (distance >= scale) { Characters.Sein.PlatformBehaviour.Visuals.SpriteRenderer.material.color = RandomizerSettings.ColdColor; return; } Characters.Sein.PlatformBehaviour.Visuals.SpriteRenderer.material.color = new Color(RandomizerSettings.HotColor.r + (RandomizerSettings.ColdColor.r - RandomizerSettings.HotColor.r) * (distance / scale), RandomizerSettings.HotColor.g + (RandomizerSettings.ColdColor.g - RandomizerSettings.HotColor.g) * (distance / scale), RandomizerSettings.HotColor.b + (RandomizerSettings.ColdColor.b - RandomizerSettings.HotColor.b) * (distance / scale), RandomizerSettings.HotColor.a + (RandomizerSettings.ColdColor.a - RandomizerSettings.HotColor.a) * (distance / scale)); return; } if (RandomizerColorManager.customRotation) { RandomizerColorManager.colorIndex %= RandomizerColorManager.colors.Count; Characters.Sein.PlatformBehaviour.Visuals.SpriteRenderer.material.color = RandomizerColorManager.colors[RandomizerColorManager.colorIndex++]; return; } if (RandomizerColorManager.customColor) { Characters.Sein.PlatformBehaviour.Visuals.SpriteRenderer.material.color = RandomizerColorManager.colors[0]; } }
// Token: 0x0600384D RID: 14413 public static void UpdateColors() { try { if (Randomizer.HotCold || Characters.Sein.PlayerAbilities.Sense.HasAbility) { float scale = 64f; float distance = 100f; if (Characters.Ori.InsideMapstone) { int currentMap = 20 + RandomizerBonus.MapStoneProgression() * 4; using (List <int> .Enumerator enumerator = (RandomizerBonus.SenseFragsActive ? Randomizer.HotColdMapsWithFrags : Randomizer.HotColdMaps).GetEnumerator()) { while (enumerator.MoveNext()) { int map = enumerator.Current; if (map > currentMap) { distance = (float)(map - currentMap - 4) * 2f; break; } } } if (distance < scale && RandomizerBonus.SenseFragsEnabled && !RandomizerBonus.SenseFragsActive) { RandomizerBonus.SenseFragsActive = true; } } else { distance = Vector3.Distance(HotColdTarget, Characters.Sein.Position); } if (distance >= scale) { if (!(customRotation && RandomizerSettings.DiscoSense)) { Characters.Sein.PlatformBehaviour.Visuals.SpriteRenderer.material.color = RandomizerSettings.ColdColor; return; } } else { if (!(customRotation && RandomizerSettings.DiscoSense)) { Characters.Sein.PlatformBehaviour.Visuals.SpriteRenderer.material.color = new Color(RandomizerSettings.HotColor.r + (RandomizerSettings.ColdColor.r - RandomizerSettings.HotColor.r) * (distance / scale), RandomizerSettings.HotColor.g + (RandomizerSettings.ColdColor.g - RandomizerSettings.HotColor.g) * (distance / scale), RandomizerSettings.HotColor.b + (RandomizerSettings.ColdColor.b - RandomizerSettings.HotColor.b) * (distance / scale), RandomizerSettings.HotColor.a + (RandomizerSettings.ColdColor.a - RandomizerSettings.HotColor.a) * (distance / scale)); return; } else { colorIndex += (int)(20f * (1f - distance / scale)); } } } if (customRotation) { colorIndex = (colorIndex + 1) % colors.Count; Characters.Sein.PlatformBehaviour.Visuals.SpriteRenderer.material.color = colors[colorIndex]; return; } if (customColor) { Characters.Sein.PlatformBehaviour.Visuals.SpriteRenderer.material.color = colors[0]; } } catch (Exception e) { Randomizer.LogError("ColorTick: " + colorIndex.ToString() + " out of " + colors.Count.ToString() + ": " + e.Message); } }
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); }