Skip to content

Commit

Permalink
Revert "Fix CE-based effects"
Browse files Browse the repository at this point in the history
This reverts commit e030103.
  • Loading branch information
ScriptedSnark committed Apr 12, 2024
1 parent f292608 commit 8f60589
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions GSChaos/CFeatureCombineEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,22 @@ void CFeatureCombineEffects::ActivateFeature()
// doing so bad things here
//yanderedev sim
if (shuffledFeatures[i] == gChaosFeatures[gChaosFeatures.size() - 1]) // Let's make it more chaotic
{
if (shuffledFeatures[i] != this)
m_pFeatures[i] = shuffledFeatures[15];
}
else if (shuffledFeatures[i] == gChaosFeatures[gChaosFeatures.size() - 2]) // Combine effects
{
if (shuffledFeatures[i] != this)
m_pFeatures[i] = shuffledFeatures[12];
}
else if (shuffledFeatures[i] == this || strstr(shuffledFeatures[i]->GetFeatureName(), GetBaseFeatureName()))
{
if (shuffledFeatures[i] != this)
m_pFeatures[i] = shuffledFeatures[18]; // pick 17th effect then
}
else if (strstr(shuffledFeatures[i]->GetFeatureName(), "New Game :tf:") || strstr(shuffledFeatures[i]->GetFeatureName(), "BSP Dementia"))
{
if (shuffledFeatures[i] != this)
m_pFeatures[i] = shuffledFeatures[gChaos.GetRandomValue(19, (int)(gChaosFeatures.size() - 3))];
}
m_pFeatures[i] = shuffledFeatures[15];

if (shuffledFeatures[i] == gChaosFeatures[gChaosFeatures.size() - 2]) // Combine effects
m_pFeatures[i] = shuffledFeatures[12];

if (shuffledFeatures[i] == this || strstr(shuffledFeatures[i]->GetFeatureName(), GetBaseFeatureName()))
m_pFeatures[i] = shuffledFeatures[18]; // pick 17th effect then
else
{
m_pFeatures[i] = shuffledFeatures[i];
}

if (strstr(m_pFeatures[i]->GetFeatureName(), "New Game :tf:") || strstr(m_pFeatures[i]->GetFeatureName(), "BSP Dementia"))
m_pFeatures[i] = shuffledFeatures[gChaos.GetRandomValue(19, (int)(gChaosFeatures.size() - 3))];

if (!m_pFeatures[i])
continue;

m_pszFeatureNames.push_back(m_pFeatures[i]->GetFeatureName());

m_pFeatures[i]->ActivateFeature();
Expand Down

0 comments on commit 8f60589

Please sign in to comment.