From f230cff5e5d6f26d809128a936d635a73d9ec489 Mon Sep 17 00:00:00 2001
From: Atony <75191600+AtonyGit@users.noreply.github.com>
Date: Wed, 19 Aug 2026 23:28:00 -0500
Subject: [PATCH] Add RoleMedDescription for the role guide
---
MiraAPI/Patches/RoleGuidePatches.cs | 2 +-
MiraAPI/Roles/ICustomRole.cs | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/MiraAPI/Patches/RoleGuidePatches.cs b/MiraAPI/Patches/RoleGuidePatches.cs
index e617f96..ca7f2be 100644
--- a/MiraAPI/Patches/RoleGuidePatches.cs
+++ b/MiraAPI/Patches/RoleGuidePatches.cs
@@ -141,7 +141,7 @@ public static class RoleGuidePatches
if (role is ICustomRole customRole)
{
__instance.roleName.text = customRole.RoleName;
- __instance.roleDescription.text = $"{customRole.RoleFactionTitle}\n" + customRole.RoleDescription;
+ __instance.roleDescription.text = $"{customRole.RoleFactionTitle}\n" + customRole.RoleMedDescription;
__instance.roleIcon.sprite = customRole.Configuration.Icon?.LoadAsset();
__instance.roleCount.text += $" ({customRole.ParentMod.MiraPlugin.GetAbbreviatedModName()})";
}
diff --git a/MiraAPI/Roles/ICustomRole.cs b/MiraAPI/Roles/ICustomRole.cs
index fde5a7c..33bbd7e 100644
--- a/MiraAPI/Roles/ICustomRole.cs
+++ b/MiraAPI/Roles/ICustomRole.cs
@@ -23,6 +23,11 @@ public interface ICustomRole : IOptionable
///
string RoleDescription { get; }
+ ///
+ /// Gets the medium description of the role. Used in the role guide.
+ ///
+ string RoleMedDescription => RoleDescription;
+
///
/// Gets the long description of the role. Used in the Role Tab and Role Options.
///