|
|
@ -1024,9 +1024,11 @@ void AiL::RenderWorld(float fElapsedTime){ |
|
|
|
} |
|
|
|
} |
|
|
|
const std::vector<Buff>attackBuffs{player->GetStatBuffs({"Attack","Attack %"})}; |
|
|
|
const std::vector<Buff>attackBuffs{player->GetStatBuffs({"Attack","Attack %"})}; |
|
|
|
const std::vector<Buff>movespeedBuffs{player->GetBuffs(BuffType::SPEEDBOOST)}; |
|
|
|
const std::vector<Buff>movespeedBuffs{player->GetBuffs(BuffType::SPEEDBOOST)}; |
|
|
|
|
|
|
|
const std::vector<Buff>adrenalineRushBuffs{player->GetBuffs(BuffType::ADRENALINE_RUSH)}; |
|
|
|
|
|
|
|
|
|
|
|
Pixel playerCol{WHITE}; |
|
|
|
Pixel playerCol{WHITE}; |
|
|
|
if(attackBuffs.size()>0)playerCol={255,uint8_t(255*abs(sin(1.4f*attackBuffs[0].duration))),uint8_t(255*abs(sin(1.4f*attackBuffs[0].duration)))}; |
|
|
|
if(attackBuffs.size()>0)playerCol={255,uint8_t(255*abs(sin(1.4f*attackBuffs[0].duration))),uint8_t(255*abs(sin(1.4f*attackBuffs[0].duration)))}; |
|
|
|
|
|
|
|
else if(adrenalineRushBuffs.size()>0)playerCol={uint8_t(255*abs(sin(6.f*adrenalineRushBuffs[0].duration))),255,uint8_t(255*abs(sin(6.f*adrenalineRushBuffs[0].duration)))}; |
|
|
|
else if(movespeedBuffs.size()>0)playerCol={uint8_t(255*abs(sin(2.f*movespeedBuffs[0].duration))),255,uint8_t(255*abs(sin(2.f*movespeedBuffs[0].duration)))}; |
|
|
|
else if(movespeedBuffs.size()>0)playerCol={uint8_t(255*abs(sin(2.f*movespeedBuffs[0].duration))),255,uint8_t(255*abs(sin(2.f*movespeedBuffs[0].duration)))}; |
|
|
|
if(player->IsUsingAdditiveBlending())SetDecalMode(DecalMode::ADDITIVE); |
|
|
|
if(player->IsUsingAdditiveBlending())SetDecalMode(DecalMode::ADDITIVE); |
|
|
|
else SetDecalMode(DecalMode::NORMAL); |
|
|
|
else SetDecalMode(DecalMode::NORMAL); |
|
|
|