Ejemplo n.º 1
0
 public static DDisease[] ToData()
 {
     DDisease[] result = new DDisease[]
     {
         new DDisease()
         {
             id                     = 1,
             name                   = "New Virus",
             infectPerMeet          = 0.2f,
             curedDay               = 0.095f,
             selfCuredDay           = 0.08f,
             symptomDay             = 0.14f,
             deadDay                = 0.005f,
             selfDeadDay            = 0.02f,
             nonAnitbody            = 0.01f,
             canExposedInfectOthers = true
         }
     };
     return(result);
 }
Ejemplo n.º 2
0
    private Disease GetDisease(Province province)
    {
        if (baseDisease == null)
        {
            Debug.LogErrorFormat("cnm, 爷的数据都没有nsnmn");
            baseDisease = Data.Disease[0];
        }
        Disease result = new Disease()
        {
            infectPerMeet          = baseDisease.infectPerMeet,
            curedDay               = baseDisease.curedDay,
            selfCuredDay           = baseDisease.selfCuredDay,
            symptomDay             = baseDisease.symptomDay,
            deadDay                = baseDisease.deadDay,
            selfDeadDay            = baseDisease.selfDeadDay,
            nonAnitbody            = baseDisease.nonAnitbody,
            canExposedInfectOthers = baseDisease.canExposedInfectOthers,
        };
        // 根据各行省受到的调整值进行调整
        var finalMods = province.GetFinalMods();

        ModifyDisease(finalMods, ref result);
        return(result);
    }