Skip to content

Commit

Permalink
maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
adya authored and github-actions[bot] committed Mar 14, 2024
1 parent 1bf640d commit 1b99281
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion SPID/include/Defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct Range
return value >= min && value <= max;
}

[[nodiscard]] bool IsExact() const
[[nodiscard]] bool IsExact() const
{
return min == max;
}
Expand Down
14 changes: 7 additions & 7 deletions SPID/include/Distribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ namespace Distribute
// for now, only packages/death items use this
template <class Form>
void for_each_form(
const NPCData& a_npcData,
Forms::Distributables<Form>& a_distributables,
const PCLevelMult::Input& a_input,
const NPCData& a_npcData,
Forms::Distributables<Form>& a_distributables,
const PCLevelMult::Input& a_input,
std::function<bool(Form*, IndexOrCount)> a_callback)
{
auto& vec = a_distributables.GetForms(a_input.onlyPlayerLevelEntries);
Expand Down Expand Up @@ -138,9 +138,9 @@ namespace Distribute
// items
template <class Form>
void for_each_form(
const NPCData& a_npcData,
Forms::Distributables<Form>& a_distributables,
const PCLevelMult::Input& a_input,
const NPCData& a_npcData,
Forms::Distributables<Form>& a_distributables,
const PCLevelMult::Input& a_input,
std::function<bool(std::map<Form*, Count>&, bool)> a_callback)
{
auto& vec = a_distributables.GetForms(a_input.onlyPlayerLevelEntries);
Expand All @@ -150,7 +150,7 @@ namespace Distribute
}

std::map<Form*, Count> collectedForms{};
bool hasLeveledItems = false;
bool hasLeveledItems = false;

for (auto& formData : vec) {
if (!a_npcData.HasMutuallyExclusiveForm(formData.form) && detail::passed_filters(a_npcData, a_input, formData)) {
Expand Down
4 changes: 2 additions & 2 deletions SPID/src/LookupConfigs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ namespace INI
}

//ITEMCOUNT/INDEX

if (kIdxOrCount < size) {
if (a_key == "Package") { // reuse item count for package stack index
if (const auto& str = sections[kIdxOrCount]; distribution::is_valid_entry(str)) {
Expand All @@ -267,7 +267,7 @@ namespace INI
}
}
}

//CHANCE
if (kChance < size) {
if (const auto& str = sections[kChance]; distribution::is_valid_entry(str)) {
Expand Down

0 comments on commit 1b99281

Please sign in to comment.