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

Re: CF: Feature Request: Pray Until Forgiven?



Mark Wedel wrote:
>  ^^ that is attacktype of FEAR (look for the AT_ in include/define.h.  

Ah, so it was blessed by a new attacktype but it was not ORed with the
existing attacktypes?  I shall have a quick look at the code.

0.95.0 source ...

gods.c: pray_at_altar()
     /* Every once in a while, the god decides to checkup on their
      * follower, and may intervene to help them out. */
     if((RANDOM()%500-bonus)<0) god_intervention(pl,pl_god);

gods.c: god_intervention()
    /* 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;
      }

It's the same in 0.93.7 ... the attach type is properly ORed, so I don't
understand how my weapon could have lost the "physical" attack type.

p.s. anybody know of an ODBC client API for Linux so I can write code
that will access stuff on my department's Microsoft SQL server?

-- 
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.
-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to crossfire-request@ifi.uio.no]