mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Commands] Add #find ldon_theme Subcommand (#4564)
This commit is contained in:
+25
-25
@@ -2019,38 +2019,38 @@ void Client::Handle_OP_AdventureMerchantPurchase(const EQApplicationPacket *app)
|
||||
return;
|
||||
}
|
||||
|
||||
if (item->LDoNTheme <= LDoNThemeBits::TAKBit) {
|
||||
if (item->LDoNTheme <= LDoNTheme::TAKBit) {
|
||||
uint32 ldon_theme;
|
||||
if (item->LDoNTheme & LDoNThemeBits::TAKBit) {
|
||||
if (item->LDoNTheme & LDoNTheme::TAKBit) {
|
||||
if (m_pp.ldon_points_tak < item_cost) {
|
||||
cannot_afford = true;
|
||||
ldon_theme = LDoNThemes::TAK;
|
||||
ldon_theme = LDoNTheme::TAK;
|
||||
}
|
||||
} else if (item->LDoNTheme & LDoNThemeBits::RUJBit) {
|
||||
} else if (item->LDoNTheme & LDoNTheme::RUJBit) {
|
||||
if (m_pp.ldon_points_ruj < item_cost) {
|
||||
cannot_afford = true;
|
||||
ldon_theme = LDoNThemes::RUJ;
|
||||
ldon_theme = LDoNTheme::RUJ;
|
||||
}
|
||||
} else if (item->LDoNTheme & LDoNThemeBits::MMCBit) {
|
||||
} else if (item->LDoNTheme & LDoNTheme::MMCBit) {
|
||||
if (m_pp.ldon_points_mmc < item_cost) {
|
||||
cannot_afford = true;
|
||||
ldon_theme = LDoNThemes::MMC;
|
||||
ldon_theme = LDoNTheme::MMC;
|
||||
}
|
||||
} else if (item->LDoNTheme & LDoNThemeBits::MIRBit) {
|
||||
} else if (item->LDoNTheme & LDoNTheme::MIRBit) {
|
||||
if (m_pp.ldon_points_mir < item_cost) {
|
||||
cannot_afford = true;
|
||||
ldon_theme = LDoNThemes::MIR;
|
||||
ldon_theme = LDoNTheme::MIR;
|
||||
}
|
||||
} else if (item->LDoNTheme & LDoNThemeBits::GUKBit) {
|
||||
} else if (item->LDoNTheme & LDoNTheme::GUKBit) {
|
||||
if (m_pp.ldon_points_guk < item_cost) {
|
||||
cannot_afford = true;
|
||||
ldon_theme = LDoNThemes::GUK;
|
||||
ldon_theme = LDoNTheme::GUK;
|
||||
}
|
||||
}
|
||||
|
||||
merchant_type = fmt::format(
|
||||
"{} Point{}",
|
||||
EQ::constants::GetLDoNThemeName(ldon_theme),
|
||||
LDoNTheme::GetName(ldon_theme),
|
||||
item_cost != 1 ? "s" : ""
|
||||
);
|
||||
}
|
||||
@@ -2194,19 +2194,19 @@ void Client::Handle_OP_AdventureMerchantRequest(const EQApplicationPacket *app)
|
||||
|
||||
item = database.GetItem(ml.item);
|
||||
if (item) {
|
||||
uint32 theme = LDoNThemes::Unused;
|
||||
if (item->LDoNTheme > LDoNThemeBits::TAKBit) {
|
||||
theme = LDoNThemes::Unused;
|
||||
} else if (item->LDoNTheme & LDoNThemeBits::TAKBit) {
|
||||
theme = LDoNThemes::TAK;
|
||||
} else if (item->LDoNTheme & LDoNThemeBits::RUJBit) {
|
||||
theme = LDoNThemes::RUJ;
|
||||
} else if (item->LDoNTheme & LDoNThemeBits::MMCBit) {
|
||||
theme = LDoNThemes::MMC;
|
||||
} else if (item->LDoNTheme & LDoNThemeBits::MIRBit) {
|
||||
theme = LDoNThemes::MIR;
|
||||
} else if (item->LDoNTheme & LDoNThemeBits::GUKBit) {
|
||||
theme = LDoNThemes::GUK;
|
||||
uint32 theme = LDoNTheme::Unused;
|
||||
if (item->LDoNTheme > LDoNTheme::TAKBit) {
|
||||
theme = LDoNTheme::Unused;
|
||||
} else if (item->LDoNTheme & LDoNTheme::TAKBit) {
|
||||
theme = LDoNTheme::TAK;
|
||||
} else if (item->LDoNTheme & LDoNTheme::RUJBit) {
|
||||
theme = LDoNTheme::RUJ;
|
||||
} else if (item->LDoNTheme & LDoNTheme::MMCBit) {
|
||||
theme = LDoNTheme::MMC;
|
||||
} else if (item->LDoNTheme & LDoNTheme::MIRBit) {
|
||||
theme = LDoNTheme::MIR;
|
||||
} else if (item->LDoNTheme & LDoNTheme::GUKBit) {
|
||||
theme = LDoNTheme::GUK;
|
||||
}
|
||||
ss << "^" << item->Name << "|";
|
||||
ss << item->ID << "|";
|
||||
|
||||
Reference in New Issue
Block a user