public bool roomCompletionConditionSatisfied() { Player owningPlayer = this.PrimaryPlayerCharacter.OwningPlayer; if (!this.ActiveRoom.CompletionTriggered) { if (this.CurrentGameplayState != GameplayState.ACTION) { return(false); } if (this.PrimaryPlayerCharacter.IsDead) { return(true); } if (this.WildBossMode) { return(false); } if (this.isBossFloor()) { if ((this.ActiveRoom.MainBossSummoned && (this.BossesKilled > 0)) && (this.ActiveRoom.numberOfBossesAlive() == 0)) { return(true); } } else if (owningPlayer.floorCompletionGoalSatisfied(this)) { return(true); } } return(false); }