Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Sorting skins prevents R3nzSkin working.
Browse files Browse the repository at this point in the history
  • Loading branch information
R3nzTheCodeGOD committed Jan 10, 2024
1 parent 3fa3283 commit 1d8cd84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
12 changes: 2 additions & 10 deletions R3nzSkin/SkinDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ void SkinDatabase::load() noexcept
const auto champ_name{ fnv::hash_runtime(champion->champion_name.str) };
this->champions_skins[champ_name].push_back({ champion->champion_name.str, skin_display_name_translated, i });

if (i == 7 && champ_name == FNV("Lux"))
{
if (i == 7 && champ_name == FNV("Lux")) {
this->champions_skins[champ_name].push_back({ "LuxAir", "Elementalist Air Lux", i });
this->champions_skins[champ_name].push_back({ "LuxDark", "Elementalist Dark Lux", i });
this->champions_skins[champ_name].push_back({ "LuxFire", "Elementalist Fire Lux", i });
Expand All @@ -48,9 +47,7 @@ void SkinDatabase::load() noexcept
this->champions_skins[champ_name].push_back({ "LuxNature", "Elementalist Nature Lux", i });
this->champions_skins[champ_name].push_back({ "LuxStorm", "Elementalist Storm Lux", i });
this->champions_skins[champ_name].push_back({ "LuxWater", "Elementalist Water Lux", i });
}
else if (i == 6 && champ_name == FNV("Sona"))
{
} else if (i == 6 && champ_name == FNV("Sona")) {
this->champions_skins[champ_name].push_back({ "SonaDJGenre02", "DJ Sona 2", i });
this->champions_skins[champ_name].push_back({ "SonaDJGenre03", "DJ Sona 3", i });
}
Expand All @@ -66,9 +63,4 @@ void SkinDatabase::load() noexcept

this->wards_skins.emplace_back(ward_skin_id, ward_display_name_translated);
}

/* sort wards */
std::ranges::sort(this->wards_skins, [](const auto& a, const auto& b) {
return std::strong_ordering::less == std::strcmp(a.second, b.second) <=> 0;
});
}
1 change: 0 additions & 1 deletion R3nzSkin/SkinDatabase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <map>
#include <utility>
#include <vector>
#include <compare>

#include "fnv_hash.hpp"

Expand Down

0 comments on commit 1d8cd84

Please sign in to comment.