3 override void CreateActionComponent()
13 ItemBase item = action_data.m_MainItem;
14 item.AddQuantity(-item.GetDisinfectQuantity());
31 m_Text =
"#disinfect_self";
47 return (player.IsBleeding() || (player.m_SyncedModifiers &
eModifierSyncIDs.MODIFIER_SYNC_WOUND_INFECT_1) || (player.m_SyncedModifiers &
eModifierSyncIDs.MODIFIER_SYNC_WOUND_INFECT_2));
54 if( action_data.m_Player.GetModifiersManager().IsModifierActive(
eModifiers.MDF_DISINFECTION))
56 action_data.m_Player.GetModifiersManager().DeactivateModifier(
eModifiers.MDF_DISINFECTION );
58 action_data.m_Player.GetModifiersManager().ActivateModifier(
eModifiers.MDF_DISINFECTION );