add alignment info

This commit is contained in:
bridge
2025-10-04 16:36:41 +08:00
parent ee6fb7f6e4
commit de225bd3da
3 changed files with 9 additions and 5 deletions

View File

@@ -12,10 +12,17 @@ class Alignment(Enum):
def __str__(self) -> str:
return alignment_strs.get(self, self.value)
def get_info(self) -> str:
return alignment_strs[self] + ": " + alignment_infos[self]
alignment_strs = {
Alignment.RIGHTEOUS: "",
Alignment.EVIL: "",
}
alignment_infos = {
Alignment.RIGHTEOUS: "正义阵营的理念是:扶助弱小,维护秩序,除魔卫道。",
Alignment.EVIL: "邪恶阵营的理念是:弱肉强食,以自身利益为先,蔑视规则,推崇权力与恐惧。",
}