游戏狂人
- 贡献度
- 118
- 金元
- 7788
- 积分
- 1251
- 精华
- 0
- 注册时间
- 2009-11-4
|
找到如下代码GetDiagnosisRoom
// Token: 0x06000C86 RID: 3206
private static Room GetDiagnosisRoom(Patient patient, Staff doctor)
{
Level level = patient.Level;
List<Room> list = new List<Room>();
foreach (RoomDefinition.Type type in RoomDefinition.DiagnosisRooms)
{
if (type != RoomDefinition.Type.Ward && type != RoomDefinition.Type.Psychiatry)
{
Room bestRoomOfType = GameAlgorithms.GetBestRoomOfType(level.WorldState, type, patient);
if (bestRoomOfType != null && !patient.HasBeenDiagnosedInRoom(bestRoomOfType.Definition._type))
{
list.Add(bestRoomOfType);
}
}
}
Room nextDiagnosisRoom = GameAlgorithms.GetNextDiagnosisRoom(list, patient, doctor, level.ResearchManager);
if (nextDiagnosisRoom == null)
{
patient.ExhaustedDiagnosisRooms = true;
level.CharacterEvents.OnPatientDiagnosisExhausted.InvokeSafe(patient);
}
return nextDiagnosisRoom;
}
|
|