Changeset 241

Show
Ignore:
Timestamp:
06/29/07 12:35:07 (1 year ago)
Author:
takkaria
Message:
  • Mention and credit the GTK2 port.
  • Make the failrate effect of amnesia show up on the browsing/casting menu.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/changes.txt

    r204 r241  
    66must be given to Hugo Kornelis, Pete Mack, Marco K and Frank Palazzolo, 
    77Christer Nyfalt, Leon Marrick, Andrew Doull, Kenneth Boyd, Iain McFall, 
    8 Kiyoshi Aman, Christophe Cavalaria, Nick McConnell, and Brendon Oliver. 
     8Kiyoshi Aman, Christophe Cavalaria, Nick McConnell, Brendon Oliver, and 
     9Shanoah Alkire. 
    910 
    1011Special thanks go to Antony Sidwell for setting up the new website, and 
     
    205206  main.c mechanism.  Thanks to Brendon Oliver for the initial code 
    206207  for this. 
     208- GTK port is a GTK2 port, and uses pango and cairo.  (Shanoah Alkire) 
  • trunk/src/cmd5.c

    r203 r241  
    6666        if (p_ptr->timed[TMD_STUN] > 50) chance += 25; 
    6767        else if (p_ptr->timed[TMD_STUN]) chance += 15; 
     68 
     69        /* Amnesia makes spells fail half the time */ 
     70        if (p_ptr->timed[TMD_AMNESIA]) chance *= 2; 
    6871 
    6972        /* Always a 5 percent chance of working */ 
     
    600603        } 
    601604 
    602 #if 0 
    603  
    604         /* No lite */ 
    605         if (p_ptr->timed[TMD_BLIND] || no_lite()) 
    606         { 
    607                 msg_print("You cannot see!"); 
    608                 return; 
    609         } 
    610  
    611         /* Confused */ 
    612         if (p_ptr->timed[TMD_CONFUSED]) 
    613         { 
    614                 msg_print("You are too confused!"); 
    615                 return; 
    616         } 
    617  
    618 #endif 
    619  
    620605        /* Restrict choices to "useful" books */ 
    621606        item_tester_tval = cp_ptr->spell_book; 
     
    906891        } 
    907892 
    908         /* Check for amnesia */ 
    909         else if (rand_int(2) != 0 && p_ptr->timed[TMD_AMNESIA]) 
    910         { 
    911                 /* Can't remember how */ 
    912                 if (flush_failure) flush(); 
    913                 msg_print("The words are meaningless; you cannot remember how to read."); 
    914         } 
    915  
    916893        /* Process spell */ 
    917894        else 
     
    10841061        } 
    10851062 
    1086         /* Check for amnesia */ 
    1087         else if (rand_int(2) != 0 && p_ptr->timed[TMD_AMNESIA]) 
    1088         { 
    1089                 /* Can't remember how */ 
    1090                 if (flush_failure) flush(); 
    1091                 msg_print("The words are meaningless; you cannot remember how to read."); 
    1092         } 
    1093  
    10941063        /* Success */ 
    10951064        else