38 {
39 if(!super.RemoveBleedingSource(bit))
40 {
41 Error(
"Failed to remove bleeding source:" + bit);
42 }
43 else
44 {
46 }
47
48 int inverse_bit_mask = ~bit;
50
51
52
53 float chanceToInfect;
54
56 {
57 chanceToInfect =
m_Item.GetInfectionChance(0, CachedObjectsParams.PARAM1_BOOL);
58 }
59 else
60 {
61 chanceToInfect = PlayerConstants.BLEEDING_SOURCE_CLOSE_INFECTION_CHANCE;
62 }
63 float diceRoll = Math.RandomFloat01();
64 if (diceRoll < chanceToInfect)
65 {
67 }
68
70
71 return true;
72 }
void Error(string err)
Messagebox with error message.