1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-12 23:35:59 +00:00

Chinese ASCII option

This commit is contained in:
Zeno Rogue
2024-10-05 13:03:29 +02:00
parent 2a92a3cfed
commit 96d5eb4127
6 changed files with 86 additions and 23 deletions

View File

@@ -390,6 +390,21 @@ EX string XLAT(string x, stringpar p1, stringpar p2, stringpar p3, stringpar p4,
return x;
}
EX const char* XLAT1_to(string x, int language) {
#if CAP_TRANS
const fullnoun *N = findInHashTable(x, all_nouns);
if(N) return N->n[7].nom;
#endif
return nullptr;
}
EX const char* XLAT1_acc(string x, int language) {
#if CAP_TRANS
const fullnoun *N = findInHashTable(x, all_nouns);
if(N) return N->n[7].acc;
#endif
return nullptr;
}
EX string XLATN(string x) {
#if CAP_TRANS