1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-10 06:16:00 +00:00

more elegant advanced field parameters

This commit is contained in:
Zeno Rogue
2019-11-17 13:47:13 +01:00
parent 82083ba83d
commit 4333acf54d
2 changed files with 18 additions and 1 deletions

View File

@@ -385,4 +385,12 @@ EX string XLAT1(string x) {
EX string XLATT1(stringpar p) { return XLAT1(p.v); }
EX bool shapename_available(int id) { return id >= 3 && id < 9; }
EX string shapename(int id) {
if(!shapename_available(id)) return "";
string english[9] = {"", "", "digon", "triangle", "square", "pentagon", "hexagon", "heptagon", "octagon"};
return english[id];
}
}