MCPcopy Create free account
hub / github.com/crawl/crawl / _mut_weight

Function _mut_weight

crawl-ref/source/mutation.cc:250–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248};
249
250static int _mut_weight(const mutation_def &mut, mutflag flag)
251{
252 switch (flag)
253 {
254 case mutflag::jiyva:
255 return 1;
256 case mutflag::good:
257 case mutflag::bad:
258 default:
259 return mut.weight;
260 }
261}
262
263static int mut_index[NUM_MUTATIONS];
264static int category_mut_index[MUT_NON_MUTATION - CATEGORY_MUTATIONS];

Callers 2

init_mut_indexFunction · 0.85
_get_mut_with_flagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected