Searched refs:oc_prob (Results 1 - 2 of 2) sorted by relevance

/openbsd-current/games/hack/
H A Ddef.objclass.h74 schar oc_prob; /* probability for mkobj() */ member in struct:objclass
H A Dhack.o_init.c108 for(j = first; j < last; j++) sum += objects[j].oc_prob;
111 objects[j].oc_prob = (100+j-first)/(last-first);
139 while((prob -= objects[i].oc_prob) >= 0) i++;
154 objects[first+j].oc_prob = 0;
162 objects[j].oc_prob = (20+j-first)/(LAST_GEM-first);

Completed in 64 milliseconds