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

Function property_by_index

src/timeout.c:116–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114};
115
116const char *
117property_by_index(int idx, int *propertynum)
118{
119 if (!IndexOkT(idx, propertynames))
120 idx = SIZE(propertynames) - 1;
121
122 if (propertynum)
123 *propertynum = propertynames[idx].prop_num;
124 return propertynames[idx].prop_name;
125}
126
127/* He is being petrified - dialogue by inmet!tower */
128static NEARDATA const char *const stoned_texts[] = {

Callers 1

wiz_intrinsicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected