5 float m_TransferabilityIn;
6 float m_TransferabilityOut;
7 float m_Digestibility = 0.1;
9 float m_AutoinfectProbability = CalculateAutoinfectProbability(0);
10 float m_TransferabilityAirOut;
11 float m_AntibioticsResistance = 1;
14 float m_DieOffSpeed = 1;
30 return GetDieOffSpeed();
40 return GetInvasibility();
48 float GetDieOffSpeed()
53 float GetAntiboticsResistance()
55 return m_AntibioticsResistance;
57 float GetAntibioticsResistanceEx(
PlayerBase player)
59 return GetAntiboticsResistance();
62 float GetInvasibility()
64 return m_Invasibility;
67 bool GrowDuringAntibioticsAttack(
PlayerBase player)
72 float GetDigestibility()
74 return m_Digestibility;
77 float CalculateAutoinfectProbability(
float userprob )
79 return ( 1 -
Math.Pow( 1 - userprob, ( 1 / 1200 ) ) );
82 bool AutoinfectCheck(
float deltaT,
PlayerBase player)
84 if ( m_AutoinfectProbability == 0.0 )
87 float dice_throw =
Math.RandomFloat01();
89 if ( dice_throw < m_AutoinfectProbability )
91 return CanAutoinfectPlayer(player);
104 float GetTransferabilityIn()
106 return m_TransferabilityIn;
109 float GetTransferabilityOut()
111 return m_TransferabilityOut;
114 float GetTransferabilityAirOut()
116 return m_TransferabilityAirOut;