超级玩家
 
- 贡献度
- 19
- 金元
- 5892
- 积分
- 665
- 精华
- 0
- 注册时间
- 2011-7-4
|
// 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
查看全部评分
-
|