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

注册 登录

QQ登录

只需一步,快速开始

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

[原创] 医院100%治愈

[复制链接]

15

主题

685

帖子

665

积分

超级玩家

Rank: 5Rank: 5

贡献度
19
金元
5892
积分
665
精华
0
注册时间
2011-7-4
跳转到指定楼层
主题
发表于 2018-9-3 16:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
// Token: 0x0600125C RID: 4700 RVA: 0x0008B64C File Offset: 0x0008984C
        
public static TreatmentCalculationBreakdown CalculateEstimatedTreatmentOutcome(Patient patient, Staff staff, Room room)
        
{
            
float diagnosisCertainty = patient.DiagnosisCertainty;
            
float num = (room == null || staff == null) ? 0f : staff.GetTreatmentSkillRating(room);
            
float num2 = (room == null) ? 0f : room.TreatmentModifier;
            
IllnessDefinition.TreatmentType bestTreatmentType = patient.Illness.GetBestTreatmentType((room == null) ? null : room.Definition, patient.Level.ResearchManager);
            
float num3 = (bestTreatmentType == null) ? 0f : bestTreatmentType._effectiveness;
            
float num4 = (bestTreatmentType == null) ? 0f : bestTreatmentType._effectivenessMax;
            
if (room != null)
            
{
               
foreach (RoomItem current in room.FloorPlan.Items)
               
{
                    
float roomItemEffectiveness = 0f;
                    
current.IterateModifiers<RoomModifierTreatment>(delegate(RoomModifierTreatment treatment)
                    
{
                        
if (!treatment.RoomWide)
                        
{
                           
roomItemEffectiveness += treatment.Percentage / 100f;
                        
}
                    
});
                    
num2 += roomItemEffectiveness;
               
}
            
}
            
float num5 = num + num2;
            
num5 = Mathf.Min(num5, 1f);
            
float num6 = Mathf.Lerp(num3, num4, num5);
            
float chanceOfSuccess = diagnosisCertainty * num6 / 1f;
            
return new TreatmentCalculationBreakdown
            
{
               
ChanceOfSuccess = chanceOfSuccess,
               
DiagnosisCertainty = diagnosisCertainty,
               
StaffSkill = num * 1f,
               
RoomModifiers = num2 * 1f,
               
MinTreatmentEffectiveness = num3,
               
MaxTreatmentEffectiveness = num4


以上是100%治愈 自己打开文件核对修改就可以 修改了道具加成以及医生或护士的技能加成 提高100倍

PS:修改仅供参考 不提供文件

评分

1

查看全部评分

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-3-31 09:09 , Processed in 0.028735 second(s), 18 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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