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

Commit

Permalink
Feature Request: #645
Browse files Browse the repository at this point in the history
  • Loading branch information
hotline1337 committed Dec 13, 2023
1 parent 032816a commit 1a48885
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions R3nzSkin/SkinDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ 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 @@ -47,7 +48,9 @@ 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 @@ -63,4 +66,9 @@ 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: 1 addition & 0 deletions R3nzSkin/SkinDatabase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <map>
#include <utility>
#include <vector>
#include <compare>

#include "fnv_hash.hpp"

Expand Down

0 comments on commit 1a48885

Please sign in to comment.