3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 3746|回复: 12
打印 上一主题 下一主题

[原创] -----------病房和心理科不做诊断---------

[复制链接]

48

主题

689

帖子

1383

积分

游戏狂人

Rank: 6Rank: 6

贡献度
119
金元
9070
积分
1383
精华
0
注册时间
2009-11-4
跳转到指定楼层
主题
发表于 2018-9-26 01:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
      
找到如下代码
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;
        
}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-3-31 07:30 , Processed in 0.025610 second(s), 16 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表