// Token: 0x0600090D RID: 2317 RVA: 0x00027270 File Offset: 0x00025470 private void Awake() { this.interactableSelection = this.GenerateDirectorCardWeightedSelection(this.interactableCategories); this.monsterSelection = this.GenerateDirectorCardWeightedSelection(this.monsterCategories); if (NetworkServer.active) { this.rng = new Xoroshiro128Plus(Run.instance.stageRng.nextUlong); if (this.rng.nextNormalizedFloat <= 0.02f) { Debug.Log("Trying to find family selection..."); WeightedSelection <ClassicStageInfo.MonsterFamily> weightedSelection = new WeightedSelection <ClassicStageInfo.MonsterFamily>(8); for (int i = 0; i < this.possibleMonsterFamilies.Length; i++) { if (this.possibleMonsterFamilies[i].minimumStageCompletion <= Run.instance.stageClearCount && this.possibleMonsterFamilies[i].maximumStageCompletion > Run.instance.stageClearCount) { weightedSelection.AddChoice(this.possibleMonsterFamilies[i], this.possibleMonsterFamilies[i].selectionWeight); } } if (weightedSelection.Count > 0) { ClassicStageInfo.MonsterFamily monsterFamily = weightedSelection.Evaluate(this.rng.nextNormalizedFloat); this.monsterSelection = this.GenerateDirectorCardWeightedSelection(monsterFamily.monsterFamilyCategories); base.StartCoroutine("BroadcastFamilySelection", monsterFamily); } } } }
// Token: 0x0600090E RID: 2318 RVA: 0x0002739A File Offset: 0x0002559A private IEnumerator BroadcastFamilySelection(ClassicStageInfo.MonsterFamily selectedFamily) { yield return(new WaitForSeconds(1f)); Chat.SendBroadcastChat(new Chat.SimpleChatMessage { baseToken = selectedFamily.familySelectionChatString }); yield break; }
// Token: 0x06000D9E RID: 3486 RVA: 0x00042FD4 File Offset: 0x000411D4 private void Awake() { this.interactableSelection = this.GenerateDirectorCardWeightedSelection(this.interactableCategories); this.monsterSelection = this.GenerateDirectorCardWeightedSelection(this.monsterCategories); if (NetworkServer.active && Util.CheckRoll(2f, 0f, null)) { Debug.Log("Trying to find family selection..."); WeightedSelection <ClassicStageInfo.MonsterFamily> weightedSelection = new WeightedSelection <ClassicStageInfo.MonsterFamily>(8); for (int i = 0; i < this.possibleMonsterFamilies.Length; i++) { if (this.possibleMonsterFamilies[i].minimumStageCompletion <= Run.instance.stageClearCount && this.possibleMonsterFamilies[i].maximumStageCompletion > Run.instance.stageClearCount) { weightedSelection.AddChoice(this.possibleMonsterFamilies[i], this.possibleMonsterFamilies[i].selectionWeight); } } if (weightedSelection.Count > 0) { ClassicStageInfo.MonsterFamily monsterFamily = weightedSelection.Evaluate(UnityEngine.Random.value); this.monsterSelection = this.GenerateDirectorCardWeightedSelection(monsterFamily.monsterFamilyCategories); base.StartCoroutine("BroadcastFamilySelection", monsterFamily); } } }