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

saving throw and multiple attacktypes



In crossfire 0.92.2, a follower of God prayed at the alter and
got two attacktypes, weaponmagic and fear.  But this weapon is
very useless because fear blocks almost any other attacks in
server/attack.c.

  /* Basically, the next glob of code does saving throw for the attack types */
  if(type&(AT_PARALYZE|AT_FEAR|AT_POISON|AT_CONFUSION|AT_SLOW|
    AT_CANCELLATION|AT_DEPLETE)) 
    if(!op->speed||(!QUERY_FLAG(op, FLAG_MONSTER)&&op->type!=PLAYER)||
       RANDOM()%((type&AT_SLOW)?6:3)||
       /*  the following includes a secret saving throw for magic:
	   you get TWO saving throws for magical attacks! */
       (RANDOM()%20+((op->protected&type)?5:1) >= savethrow[op->level]))
      return 0;

I have some questions.

0. What is saveing throw?  I can't understand a meaning and an
   idea of these words.

1. Is this a specification or just bug of multiple attacktypes?

2. Praying at the alter add some attacktypes to a weapon but
   almost weapons lose the attacktype 'physical'.  I think
   leaving 'physical' is better.  Are there any reason to lose
   'physical'?
-- 
iKAWAMOTO Yosihisa!               kawamoto@ics.es.osaka-u.ac.jp