[Commands] Cleanup #guild Command. (#1880)

- Cleanup messages and logic.
- Adds GetGuildNameByID, GetGuildRankName, GetGuildIDByCharacterID, and IsCharacterInGuild helper methods for guild stuff.
- Convert #guild info message to a popup display to tidy it up and make it more legible.
This commit is contained in:
Kinglykrab authored and GitHub committed 2021-12-23 13:04:26 -05:00
1 parent d0ec0872b9
commit 6a77764f8b
5 files changed
+671 -440

No files matched your search

+2 -12
View File
@@ -5371,25 +5371,15 @@ void Client::ShowSkillsWindow()
// Current Skill Level out of Max Skill Level or a Check Mark for Maxed
popup_text += fmt::format(
"<td>{}{}{}</td>",
"<td>{}</td>",
(
skill_maxed ?
"<c \"#00FF00\">" :
""
),
(
skill_maxed ?
"✔" :
"<c \"#00FF00\">✔</c>" :
fmt::format(
"{}/{}",
current_skill,
max_skill
)
),
(
skill_maxed ?
"</c>" :
""
)
);