Changeset 752
- Timestamp:
- 03/07/08 18:28:55 (6 months ago)
- Files:
-
- trunk/src/effects.c (modified) (8 diffs)
- trunk/src/list-effects.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/effects.c
r732 r752 413 413 case EF_BRAWN: 414 414 { 415 int stat = rand_int(A_MAX); 415 /* Pick a random stat to decrease other than strength */ 416 int stat = rand_int(A_MAX-1) + 1; 417 416 418 if (!do_dec_stat(stat, TRUE)) return FALSE; 417 419 if (do_inc_stat(A_STR)) *ident = TRUE; … … 421 423 case EF_INTELLECT: 422 424 { 423 int stat = rand_int(A_MAX); 425 /* Pick a random stat to decrease other than intelligence */ 426 int stat = rand_int(A_MAX-1); 427 if (stat >= A_INT) stat++; 428 424 429 if (!do_dec_stat(stat, TRUE)) return FALSE; 425 430 if (do_inc_stat(A_INT)) *ident = TRUE; … … 429 434 case EF_CONTEMPLATION: 430 435 { 431 int stat = rand_int(A_MAX); 436 /* Pick a random stat to decrease other than wisdom */ 437 int stat = rand_int(A_MAX-1); 438 if (stat >= A_WIS) stat++; 439 432 440 if (!do_dec_stat(stat, TRUE)) return FALSE; 433 441 if (do_inc_stat(A_WIS)) *ident = TRUE; … … 437 445 case EF_TOUGHNESS: 438 446 { 439 int stat = rand_int(A_MAX); 447 /* Pick a random stat to decrease other than constitution */ 448 int stat = rand_int(A_MAX-1); 449 if (stat >= A_CON) stat++; 450 440 451 if (!do_dec_stat(stat, TRUE)) return FALSE; 441 452 if (do_inc_stat(A_CON)) *ident = TRUE; … … 445 456 case EF_NIMBLENESS: 446 457 { 447 int stat = rand_int(A_MAX); 458 /* Pick a random stat to decrease other than dexterity */ 459 int stat = rand_int(A_MAX-1); 460 if (stat >= A_DEX) stat++; 461 448 462 if (!do_dec_stat(stat, TRUE)) return FALSE; 449 463 if (do_inc_stat(A_DEX)) *ident = TRUE; … … 453 467 case EF_PLEASING: 454 468 { 455 int stat = rand_int(A_MAX); 469 /* Pick a random stat to decrease other than charisma */ 470 int stat = rand_int(A_MAX-1); 471 456 472 if (!do_dec_stat(stat, TRUE)) return FALSE; 457 473 if (do_inc_stat(A_CHR)) *ident = TRUE; … … 1183 1199 } 1184 1200 1201 case EF_FIRE_BALL200: 1202 { 1203 *ident = TRUE; 1204 fire_ball(GF_FIRE, dir, 200, 3); 1205 return TRUE; 1206 } 1207 1185 1208 case EF_COLD_BOLT: 1186 1209 { … … 1215 1238 *ident = TRUE; 1216 1239 fire_ball(GF_COLD, dir, 100, 2); 1240 return TRUE; 1241 } 1242 1243 case EF_COLD_BALL160: 1244 { 1245 *ident = TRUE; 1246 fire_ball(GF_COLD, dir, 160, 3); 1217 1247 return TRUE; 1218 1248 } trunk/src/list-effects.h
r732 r752 45 45 EFFECT(GAIN_CHR, FALSE, "restores and increases your charisma") 46 46 EFFECT(GAIN_ALL, FALSE, "restores and increases all your stats") 47 EFFECT(BRAWN, FALSE, "raises your strength at the expense of your intelligence")48 EFFECT(INTELLECT, FALSE, "raises your intelligence at the expense of your constitution")49 EFFECT(CONTEMPLATION, FALSE, "raises your wisdom at the expense of your dexterity")50 EFFECT(TOUGHNESS, FALSE, "raises your constitution at the expense of your charisma")51 EFFECT(NIMBLENESS, FALSE, "raises your dexterity at the expense of your strength")52 EFFECT(PLEASING, FALSE, "raises your charisma at the expense of your wisdom")47 EFFECT(BRAWN, FALSE, "raises your strength at the expense of a random attribute") 48 EFFECT(INTELLECT, FALSE, "raises your intelligence at the expense of a random attribute") 49 EFFECT(CONTEMPLATION, FALSE, "raises your wisdom at the expense of a random attribute") 50 EFFECT(TOUGHNESS, FALSE, "raises your constitution at the expense of a random attribute") 51 EFFECT(NIMBLENESS, FALSE, "raises your dexterity at the expense of a random attribute") 52 EFFECT(PLEASING, FALSE, "raises your charisma at the expense of a random attribute") 53 53 EFFECT(LOSE_STR, FALSE, "reduces your strength with damage 5d5") 54 54 EFFECT(LOSE_INT, FALSE, "reduces your intelligence with damage 5d5")
