mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-21 05:43:42 -07:00
Fixes some miscellaneous issues for Switch builds.
This commit is contained in:
parent
c7c29034eb
commit
674645ef14
5 changed files with 27 additions and 8 deletions
|
@ -127,6 +127,20 @@ ItemLocation* Context::GetItemLocation(size_t locKey) {
|
|||
return &itemLocationTable[static_cast<RandomizerCheck>(locKey)];
|
||||
}
|
||||
|
||||
ItemOverride& Context::GetItemOverride(RandomizerCheck locKey) {
|
||||
if (!overrides.contains(locKey)) {
|
||||
overrides.emplace(locKey, ItemOverride());
|
||||
}
|
||||
return overrides.at(locKey);
|
||||
}
|
||||
|
||||
ItemOverride& Context::GetItemOverride(size_t locKey) {
|
||||
if (!overrides.contains(static_cast<RandomizerCheck>(locKey))) {
|
||||
overrides.emplace(static_cast<RandomizerCheck>(locKey), ItemOverride());
|
||||
}
|
||||
return overrides.at(static_cast<RandomizerCheck>(locKey));
|
||||
}
|
||||
|
||||
void Context::PlaceItemInLocation(const RandomizerCheck locKey, const RandomizerGet item, const bool applyEffectImmediately,
|
||||
const bool setHidden) {
|
||||
const auto loc = GetItemLocation(locKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue