MCPcopy Create free account
hub / github.com/NetHack/NetHack / cnf_line_POINTSMIN

Function cnf_line_POINTSMIN

src/cfgfiles.c:1007–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005}
1006
1007staticfn boolean
1008cnf_line_POINTSMIN(char *bufp)
1009{
1010 int n = atoi(bufp);
1011
1012 if (n < 1) {
1013 config_error_add("Illegal value in POINTSMIN (minimum is 1)");
1014 n = 100;
1015 }
1016 sysopt.pointsmin = n;
1017 return TRUE;
1018}
1019
1020staticfn boolean
1021cnf_line_MAX_STATUENAME_RANK(char *bufp)

Callers

nothing calls this directly

Calls 1

config_error_addFunction · 0.85

Tested by

no test coverage detected