1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

set_char_by_name

This commit is contained in:
Zeno Rogue 2023-05-19 01:18:02 +02:00
parent a5e327f67f
commit 9658950e6a
2 changed files with 61 additions and 49 deletions

View File

@ -4958,3 +4958,11 @@ Other fixes:
- fixed the orientation in the hat tiling
- fixed bugs when regenerating a map in the hat tiling + embedding
- fixed variation not showing in some geometries
2023-05-19 01:15 Update 12.1p:
Mostly embedding-related improvements:
- embedding scale parameter now works in "lower curvature" (horospher) embedding (redundant, but useful)
- better wall shading in EuclidSquare embeddings
- many embedding-related fixes
- "Non-Euclidean Third Dimension" demo (of embeddings) in RogueViz
(also, the "imaginary" hat parameter)

View File

@ -3773,6 +3773,13 @@ EX int read_config_args() {
auto& cs = vid.cs;
shift();
string s = args();
set_char_by_name(cs, s);
}
else return 1;
return 0;
}
EX void set_char_by_name(charstyle& cs, const string& s) {
if(s == "dodek") {
cs.charid = 4;
cs.lefthanded = false;
@ -3818,14 +3825,11 @@ EX int read_config_args() {
cs.swordcolor = 0x808080FF;
}
else {
cs.charid = argi();
cs.charid = atoi(s.c_str());
cs.lefthanded = cs.charid >= 10;
cs.charid %= 10;
}
}
else return 1;
return 0;
}
EX int read_param_args() {
const string& s = arg::args();