DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ AntibioticsAttack()

void PlayerAgentPool::AntibioticsAttack ( float attack_value)
inlineprotected

См. определение в файле PlayerAgentPool.c строка 269

270 {
271 for (int i = 0; i < m_VirusPool.Count(); ++i)
272 {
273 int agentId = m_VirusPool.GetKey(i);
274 float resistance = 1 - m_PluginTransmissionAgents.GetAgentAntiboticsResistanceEx(agentId, m_Player);
275 float delta = attack_value * resistance;
276 float actualAgentCount = m_VirusPool.Get(agentId);
277 float newAgentCount = actualAgentCount - delta;
278 SetAgentCount(agentId, newAgentCount);
279 }
280 }
PluginTransmissionAgents m_PluginTransmissionAgents
Определения PlayerAgentPool.c:14
PlayerBase m_Player
Определения PlayerAgentPool.c:8
ref map< int, float > m_VirusPool
Определения PlayerAgentPool.c:10
void SetAgentCount(int agent_id, float count)
Определения PlayerAgentPool.c:247

Перекрестные ссылки m_Player, m_PluginTransmissionAgents, m_VirusPool и SetAgentCount().

Используется в DrugsAttack().