Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CF: Feature Request: Pray Until Forgiven?
- To: Crossfire Mailing List <crossfire (at) ifi.uio.no>
- Subject: Re: CF: Feature Request: Pray Until Forgiven?
- From: James Cameron <>
- Date: Wed, 09 Dec 1998 05:47:58 +0000
- Organization: Netrek Vanilla Server Maintainer
- References: <> <> <> <> <>
- Sender:
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 ()
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;
}