mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-04-28 21:27:58 +03:00
Fixed typo and clarified check status identified.
This commit is contained in:
parent
646d0e87df
commit
8b5d96eb53
1 changed files with 3 additions and 2 deletions
|
@ -50,7 +50,7 @@ bool LocationAccess::ConditionsMet(Region* parentRegion) const {
|
|||
return conditionsMet && CanBuy();
|
||||
}
|
||||
|
||||
static uint16_t GetMiniumPrice(const Rando::Location* loc) {
|
||||
static uint16_t GetMinimumPrice(const Rando::Location* loc) {
|
||||
extern PriceSettingsStruct shopsanityPrices;
|
||||
extern PriceSettingsStruct scrubPrices;
|
||||
extern PriceSettingsStruct merchantPrices;
|
||||
|
@ -96,8 +96,9 @@ bool LocationAccess::CanBuy() const {
|
|||
const auto& itemLoc = OTRGlobals::Instance->gRandoContext->GetItemLocation(location);
|
||||
|
||||
if (loc->GetRCType() == RCTYPE_SHOP || loc->GetRCType() == RCTYPE_SCRUB || loc->GetRCType() == RCTYPE_MERCHANT) {
|
||||
// Checks should only be identified while playing
|
||||
if (itemLoc->GetCheckStatus() != RCSHOW_IDENTIFIED) {
|
||||
return CanBuyAnother(GetMiniumPrice(loc));
|
||||
return CanBuyAnother(GetMinimumPrice(loc));
|
||||
} else {
|
||||
return CanBuyAnother(itemLoc->GetPrice());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue