/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/ |
H A D | timeout.c | 390 * once a turn from age 151 to 200 (inclusive), hatching if it rolled 391 * a number x, 1<=x<=age, where x>150. This yields a chance of 741 * See begin_burn() for meanings of obj->age and obj->spe. 760 if (how_long >= obj->age) { 761 obj->age = 0; 774 obj->age -= how_long; 790 /* obj->age is the age remaining at this point. */ 815 switch((int)obj->age) { 824 obj->age [all...] |
H A D | mkobj.c | 162 /* Note: setting age to 0 is correct. Age has a different 165 otmp->age = 0L; 374 otmp->age = monstermoves; 467 otmp->age = 20L * /* 400 or 200 */ 476 otmp->age = (long) rn1(500,1000); 539 otmp->age = MAX_OIL_IN_FLASK; /* amount of oil */ 637 * This takes the age of the corpse into consideration as of 3.4.0. 644 long corpse_age; /* age of corpse */ 648 #define TAINT_AGE (50L) /* age when corpses go bad */ 650 #define ROT_AGE (250L) /* age whe 674 long age; local 1170 long age, retval = otmp->age; local 1206 long age; local 1232 long age; local [all...] |
H A D | artifact.c | 221 otmp->age = 0; 1200 if(obj->age > monstermoves) { 1205 obj->age += (long) d(3,10); 1208 obj->age = monstermoves + rnz(100); 1252 obj->age = 0; /* don't charge for changing their mind */ 1262 obj->age = 0; 1358 if(on && obj->age > monstermoves) { 1364 obj->age += (long) d(3,10); 1369 obj->age = monstermoves + rnz(100);
|
H A D | potion.c | 1844 obj->age = 0; 1846 if (obj->age > 1000L) { 1852 obj->age += 2*potion->age; /* burns more efficiently */ 1853 if (obj->age > 1500L) obj->age = 1500L;
|
H A D | read.c | 164 obj->age = 0; 363 obj->age = 1500; 367 obj->age += 750; 368 if (obj->age > 1500) obj->age = 1500;
|
H A D | apply.c | 821 obj->age = moves; 899 obj->age /= 2; 952 if (!otmp->spe || otmp->age > obj->age) 953 otmp->age = obj->age; 1036 else if (obj->otyp != MAGIC_LAMP && obj->age == 0) 1081 if ((!Is_candle(obj) && obj->age == 0) 1102 obj->age == 20L * (long)objects[obj->otyp].oc_cost) { 1128 * age o [all...] |
H A D | bones.c | 104 otmp->age = 50L; /* assume used */
|
H A D | do.c | 776 if (obj->age < monstermoves) 777 obj->age = monstermoves + rnz(100); 779 obj->age += rnz(100); 1585 (void) start_timer(250L - (monstermoves-body->age),
|
H A D | lock.c | 194 otmp->age = monstermoves - otmp->age; /* actual age */
|
H A D | restore.c | 216 /* Ghost levels get object age shifted from old player's clock 221 otmp->age = monstermoves - omoves + otmp->age;
|
H A D | eat.c | 1251 long age = peek_at_iced_corpse_age(otmp); local 1253 rotted = (monstermoves - age)/(10L + rn2(20)); 1772 long age = peek_at_iced_corpse_age(otmp); local 1775 rotted = (monstermoves - age)/(10L + 0 /* was rn2(20) */); 2052 (((monstermoves - otmp->age) > (int) otmp->blessed ? 50:30) &&
|
H A D | invent.c | 164 /* Approximate age: we do it this way because if we were to 167 * otmp->age = otmp->age*(1-proportion) + obj->age*proportion; 169 * Don't do the age manipulation if lit. We would need 170 * to stop the burn on both items, then merge the age, 174 otmp->age = ((otmp->age*otmp->quan) + (obj->age*obj->quan)) 2367 if (Is_candle(obj) && obj->age/2 [all...] |
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/ |
H A D | timeout.c | 390 * once a turn from age 151 to 200 (inclusive), hatching if it rolled 391 * a number x, 1<=x<=age, where x>150. This yields a chance of 741 * See begin_burn() for meanings of obj->age and obj->spe. 760 if (how_long >= obj->age) { 761 obj->age = 0; 774 obj->age -= how_long; 790 /* obj->age is the age remaining at this point. */ 815 switch((int)obj->age) { 824 obj->age [all...] |
H A D | mkobj.c | 162 /* Note: setting age to 0 is correct. Age has a different 165 otmp->age = 0L; 374 otmp->age = monstermoves; 467 otmp->age = 20L * /* 400 or 200 */ 476 otmp->age = (long) rn1(500,1000); 539 otmp->age = MAX_OIL_IN_FLASK; /* amount of oil */ 637 * This takes the age of the corpse into consideration as of 3.4.0. 644 long corpse_age; /* age of corpse */ 648 #define TAINT_AGE (50L) /* age when corpses go bad */ 650 #define ROT_AGE (250L) /* age whe 674 long age; local 1170 long age, retval = otmp->age; local 1206 long age; local 1232 long age; local [all...] |
H A D | artifact.c | 221 otmp->age = 0; 1200 if(obj->age > monstermoves) { 1205 obj->age += (long) d(3,10); 1208 obj->age = monstermoves + rnz(100); 1252 obj->age = 0; /* don't charge for changing their mind */ 1262 obj->age = 0; 1358 if(on && obj->age > monstermoves) { 1364 obj->age += (long) d(3,10); 1369 obj->age = monstermoves + rnz(100);
|
H A D | potion.c | 1844 obj->age = 0; 1846 if (obj->age > 1000L) { 1852 obj->age += 2*potion->age; /* burns more efficiently */ 1853 if (obj->age > 1500L) obj->age = 1500L;
|
H A D | read.c | 164 obj->age = 0; 363 obj->age = 1500; 367 obj->age += 750; 368 if (obj->age > 1500) obj->age = 1500;
|
H A D | apply.c | 821 obj->age = moves; 899 obj->age /= 2; 952 if (!otmp->spe || otmp->age > obj->age) 953 otmp->age = obj->age; 1036 else if (obj->otyp != MAGIC_LAMP && obj->age == 0) 1081 if ((!Is_candle(obj) && obj->age == 0) 1102 obj->age == 20L * (long)objects[obj->otyp].oc_cost) { 1128 * age o [all...] |
H A D | bones.c | 104 otmp->age = 50L; /* assume used */
|
H A D | do.c | 776 if (obj->age < monstermoves) 777 obj->age = monstermoves + rnz(100); 779 obj->age += rnz(100); 1585 (void) start_timer(250L - (monstermoves-body->age),
|
H A D | lock.c | 194 otmp->age = monstermoves - otmp->age; /* actual age */
|
H A D | restore.c | 216 /* Ghost levels get object age shifted from old player's clock 221 otmp->age = monstermoves - omoves + otmp->age;
|
H A D | eat.c | 1251 long age = peek_at_iced_corpse_age(otmp); local 1253 rotted = (monstermoves - age)/(10L + rn2(20)); 1772 long age = peek_at_iced_corpse_age(otmp); local 1775 rotted = (monstermoves - age)/(10L + 0 /* was rn2(20) */); 2052 (((monstermoves - otmp->age) > (int) otmp->blessed ? 50:30) &&
|
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/ |
H A D | obj.h | 101 long age; /* creation date */ member in struct:obj 208 #define stale_egg(egg) ((monstermoves - (egg)->age) > (2*MAX_EGG_HATCH_TIME)) 269 /* age field of this is relative age rather than absolute */
|
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/ |
H A D | obj.h | 101 long age; /* creation date */ member in struct:obj 208 #define stale_egg(egg) ((monstermoves - (egg)->age) > (2*MAX_EGG_HATCH_TIME)) 269 /* age field of this is relative age rather than absolute */
|