Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CF: Feature Request: Pray Until Forgiven?



Mark Wedel wrote:
> So it is possible that the spear had no attacktype, so it was given
> physical attacktype as a default whenever you used it.  However, the
> or the fear or'd with no value, so it just came out fear.

Ah.  Patch attached.  Relative to 0.95.0.  Untested.

-- 
James Cameron                                      (cameron@stl.dec.com)

OpenVMS, Linux, Firewalls, Software Engineering, CGI, HTTP, X, C, FORTH,
COBOL, BASIC, DCL, csh, bash, ksh, sh, Electronics, Microcontrollers,
Disability Engineering, Netrek, Bicycles, Pedant, Farming, Home Control,
Remote Area Power, Greek Scholar, Tenor Vocalist, Church Sound, Husband.

"Specialisation is for insects." -- Robert Heinlein.
*** gods.c.orig	Wed Dec  9 16:43:46 1998
--- gods.c	Wed Dec  9 16:45:31 1998
***************
*** 438,444 ****
      /* add the gods attacktype*/
        if(!(RANDOM()%2)&&!(weapon->attacktype&god->attacktype)) {
          new_draw_info(NDI_UNIQUE,0,op,"Your weapon suddenly glows!");
! 	weapon->attacktype=weapon->attacktype|god->attacktype;
  	return;
        }
  
--- 438,446 ----
      /* add the gods attacktype*/
        if(!(RANDOM()%2)&&!(weapon->attacktype&god->attacktype)) {
          new_draw_info(NDI_UNIQUE,0,op,"Your weapon suddenly glows!");
! 	if(weapon->attacktype==0)
! 	  weapon->attacktype|=AT_PHYSICAL;
! 	weapon->attacktype|=god->attacktype;
  	return;
        }