public string getRandomMinionId() { if ((this.SecondaryMinionType != GameLogic.CharacterType.UNSPECIFIED) && (UnityEngine.Random.Range((float)0f, (float)1f) > ConfigGameplay.SPAWN_CHANCE_FROM_PRIMARY_MINION_POOL)) { return(LangUtil.GetKeyFromDictionaryWithWeights <string>(ConfigGameplay.CHARACTER_SPAWN_WEIGHTS[this.SecondaryMinionType], null)); } return(LangUtil.GetKeyFromDictionaryWithWeights <string>(ConfigGameplay.CHARACTER_SPAWN_WEIGHTS[this.PrimaryMinionType], null)); }
public string getBossId(Player player, int floor) { return((player.hasRetired() || (this.FtueBoss == null)) ? LangUtil.GetKeyFromDictionaryWithWeights <string>(this.BossPool, new uint?(player.RetirementHash.GetHash(floor))) : this.FtueBoss); }