Searched refs:chance (Results 1 - 25 of 38) sorted by relevance

12

/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/
H A Ddgn_file.h25 chance, member in struct:tmpdungeon
35 int chance, rndlevs, chain, flags; member in struct:tmplevel
H A Dsp_lev.h55 xchar x, y, chance, type; member in struct:__anon699
62 xchar x, y, chance, class, appear; member in struct:__anon700
70 xchar x, y, chance, class, containment; member in struct:__anon701
195 xchar rtype, chance, rlit, filled; member in struct:_room
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/
H A Ddgn_file.h25 chance, member in struct:tmpdungeon
35 int chance, rndlevs, chain, flags; member in struct:tmplevel
H A Dsp_lev.h55 xchar x, y, chance, type; member in struct:__anon21
62 xchar x, y, chance, class, appear; member in struct:__anon22
70 xchar x, y, chance, class, containment; member in struct:__anon23
195 xchar rtype, chance, rlit, filled; member in struct:_room
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dsteed.c46 int chance; local
106 /* Calculate your chance */
107 chance = ACURR(A_DEX) + ACURR(A_CHA)/2 + 2*mtmp->mtame;
108 chance += u.ulevel * (mtmp->mtame ? 20 : 5);
109 if (!mtmp->mtame) chance -= 10*mtmp->m_lev;
111 chance += 20;
116 chance -= 20; break;
120 chance += 15; break;
122 chance += 30; break;
125 chance
[all...]
H A Dspell.c440 /* uncursed - chance to fail */
717 int energy, damage, chance, n, intell; local
798 chance = percent_success(spell);
799 if (confused || (rnd(100) > chance)) {
1139 int chance, splcaster, special, statused; local
1180 chance = 11 * statused / 2;
1193 chance -= isqrt(900 * difficulty + 2000);
1201 chance += learning > 20 ? 20 : learning;
1204 /* Clamp the chance: >18 stat and advanced learning only help
1209 if (chance <
[all...]
H A Ddog.c56 int chance, trycnt = 100; local
100 chance = rn2(10); /* 0==tame, 1==peaceful, 2==hostile */
101 if (chance > 2) chance = otmp->blessed ? 0 : !otmp->cursed ? 1 : 2;
103 if (chance > 0) {
105 if (chance == 2) { /* hostile (cursed figurine) */
568 chance comes up, but have him resume his present location
883 /* chance it goes wild anyway - Pet Semetary */
H A Dlock.c14 int picktyp, chance, usedtime; member in struct:xlock_s
106 if(rn2(100) >= xlock.chance) return(1); /* still busy */
163 if(rn2(100) >= xlock.chance) return(1); /* still busy */
217 xlock.usedtime = xlock.chance = xlock.picktyp = 0;
429 xlock.chance = ch;
488 xlock.chance = objects[uwep->otyp].oc_wldam * 2;
H A Dtrap.c2593 int chance; local
2613 chance = 40;
2616 chance = 30;
2619 chance = 20;
2622 if (!force && (Luck + 5) > rn2(chance))
2638 /* chance per item of sustaining damage:
2703 /* chance per item of sustaining damage:
3007 int chance = 3; local
3011 chance = 30;
3012 if (Confusion || Hallucination) chance
[all...]
H A Dpotion.c1934 int chance; local
1949 chance = rn2(5);
1950 if (obj->blessed) chance = (chance == 4) ? rnd(4) : 0;
1951 else if (obj->cursed) chance = (chance == 0) ? rn2(4) : 4;
1954 switch (chance) {
H A Deat.c223 * 11/10/89: if hard, rarely vomit anyway, for slim chance.
648 register int chance; local
658 chance = 1;
660 chance = 15;
663 chance = 10;
666 chance = 12;
669 chance = 1;
672 chance = 15;
676 if (ptr->mlevel <= rn2(chance))
933 * a 1/1 * 1/2 * 2/3 * 3/4 = 1/4 chance o
[all...]
H A Ddothrow.c1107 /* an object may hit a monster; various factors adjust the chance of hitting */
1116 /* size of target affects the chance of hitting */
1182 register int tmp; /* Base chance to hit */
1196 * Distance and monster size affect chance to hit.
1326 int broken, chance; local
1327 chance = 3 + greatest_erosion(obj) - obj->spe;
1328 if (chance > 1)
1329 broken = rn2(chance);
H A Dsp_lev.c715 if (rn2(100) < t->chance) {
759 if (rn2(100) < m->chance) {
897 } /* if (rn2(100) < m->chance) */
917 if (rn2(100) < o->chance) {
1037 } /* if (rn2(100) < o->chance) */
1116 * If so, it's an 80% chance that the altar will be co-aligned.
1601 xchar rtype = (!r->chance || rn2(100) < r->chance) ? r->rtype : OROOM;
1869 Fread((genericptr_t) &r->chance, 1, sizeof(r->chance), f
[all...]
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dsteed.c46 int chance; local
106 /* Calculate your chance */
107 chance = ACURR(A_DEX) + ACURR(A_CHA)/2 + 2*mtmp->mtame;
108 chance += u.ulevel * (mtmp->mtame ? 20 : 5);
109 if (!mtmp->mtame) chance -= 10*mtmp->m_lev;
111 chance += 20;
116 chance -= 20; break;
120 chance += 15; break;
122 chance += 30; break;
125 chance
[all...]
H A Dspell.c440 /* uncursed - chance to fail */
717 int energy, damage, chance, n, intell; local
798 chance = percent_success(spell);
799 if (confused || (rnd(100) > chance)) {
1139 int chance, splcaster, special, statused; local
1180 chance = 11 * statused / 2;
1193 chance -= isqrt(900 * difficulty + 2000);
1201 chance += learning > 20 ? 20 : learning;
1204 /* Clamp the chance: >18 stat and advanced learning only help
1209 if (chance <
[all...]
H A Ddog.c56 int chance, trycnt = 100; local
100 chance = rn2(10); /* 0==tame, 1==peaceful, 2==hostile */
101 if (chance > 2) chance = otmp->blessed ? 0 : !otmp->cursed ? 1 : 2;
103 if (chance > 0) {
105 if (chance == 2) { /* hostile (cursed figurine) */
568 chance comes up, but have him resume his present location
883 /* chance it goes wild anyway - Pet Semetary */
H A Dlock.c14 int picktyp, chance, usedtime; member in struct:xlock_s
106 if(rn2(100) >= xlock.chance) return(1); /* still busy */
163 if(rn2(100) >= xlock.chance) return(1); /* still busy */
217 xlock.usedtime = xlock.chance = xlock.picktyp = 0;
429 xlock.chance = ch;
488 xlock.chance = objects[uwep->otyp].oc_wldam * 2;
H A Dtrap.c2593 int chance; local
2613 chance = 40;
2616 chance = 30;
2619 chance = 20;
2622 if (!force && (Luck + 5) > rn2(chance))
2638 /* chance per item of sustaining damage:
2703 /* chance per item of sustaining damage:
3007 int chance = 3; local
3011 chance = 30;
3012 if (Confusion || Hallucination) chance
[all...]
H A Dpotion.c1934 int chance; local
1949 chance = rn2(5);
1950 if (obj->blessed) chance = (chance == 4) ? rnd(4) : 0;
1951 else if (obj->cursed) chance = (chance == 0) ? rn2(4) : 4;
1954 switch (chance) {
H A Deat.c223 * 11/10/89: if hard, rarely vomit anyway, for slim chance.
648 register int chance; local
658 chance = 1;
660 chance = 15;
663 chance = 10;
666 chance = 12;
669 chance = 1;
672 chance = 15;
676 if (ptr->mlevel <= rn2(chance))
933 * a 1/1 * 1/2 * 2/3 * 3/4 = 1/4 chance o
[all...]
H A Ddothrow.c1107 /* an object may hit a monster; various factors adjust the chance of hitting */
1116 /* size of target affects the chance of hitting */
1182 register int tmp; /* Base chance to hit */
1196 * Distance and monster size affect chance to hit.
1326 int broken, chance; local
1327 chance = 3 + greatest_erosion(obj) - obj->spe;
1328 if (chance > 1)
1329 broken = rn2(chance);
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/sys/share/
H A Ddgn_yacc.c349 tmpdungeon[n_dgns].chance = 100;
368 tmplevel[n_levs].chance = 100;
449 * have a 100% chance of existing).
472 /* KMH -- tmplevel[tmpbranch[i].chain].chance was in error */
473 if(tmplevel[tmplevel[i].chain].chance != 100) {
491 * have a 100% chance of existing).
517 if(tmplevel[tmpbranch[i].chain].chance != 100) {
733 tmpdungeon[n_dgns].chance = yyvsp[0].i;
804 tmplevel[n_levs].chance = yyvsp[0].i;
816 tmplevel[n_levs].chance
[all...]
H A Dlev_yacc.c783 "monster_detail : MONSTER_ID chance ':' monster_c ',' m_name ',' coordinate $$2 monster_infos",
794 "object_desc : chance ':' object_c ',' o_name $$3 ',' object_where object_infos",
810 "trap_detail : TRAP_ID chance ':' trap_name ',' coordinate",
877 "chance :",
878 "chance : PERCENT",
1392 if (tmproom[nrooms]->chance)
1393 yyerror("This room already assigned a chance!");
1395 yyerror("Only typed rooms can have a chance!");
1397 yyerror("The chance is supposed to be percentile.");
1399 tmproom[nrooms]->chance
[all...]
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/sys/share/
H A Ddgn_yacc.c349 tmpdungeon[n_dgns].chance = 100;
368 tmplevel[n_levs].chance = 100;
449 * have a 100% chance of existing).
472 /* KMH -- tmplevel[tmpbranch[i].chain].chance was in error */
473 if(tmplevel[tmplevel[i].chain].chance != 100) {
491 * have a 100% chance of existing).
517 if(tmplevel[tmpbranch[i].chain].chance != 100) {
733 tmpdungeon[n_dgns].chance = yyvsp[0].i;
804 tmplevel[n_levs].chance = yyvsp[0].i;
816 tmplevel[n_levs].chance
[all...]
H A Dlev_yacc.c783 "monster_detail : MONSTER_ID chance ':' monster_c ',' m_name ',' coordinate $$2 monster_infos",
794 "object_desc : chance ':' object_c ',' o_name $$3 ',' object_where object_infos",
810 "trap_detail : TRAP_ID chance ':' trap_name ',' coordinate",
877 "chance :",
878 "chance : PERCENT",
1392 if (tmproom[nrooms]->chance)
1393 yyerror("This room already assigned a chance!");
1395 yyerror("Only typed rooms can have a chance!");
1397 yyerror("The chance is supposed to be percentile.");
1399 tmproom[nrooms]->chance
[all...]

Completed in 115 milliseconds

12