[CF List] wraight (& fireborns)

Steven Lembark lembark at wrkhors.com
Sat Mar 9 10:24:33 CST 2002


>
     
       Nope - if the sign for resistance is negative, you take more damage -
     
     >
     
      this is how vulnerabilities are done.
     
     >
     
     
     >
     
       The code form attack.c is:
     
     >
     
     
     >
     
      	dam *= (100-op->resist[attacknum]);
     
     >
     
            if (dam >= 100) dam /= 100;
     
     >
     
            else
     
     >
     
              dam = (dam > (random_roll(0, 99, op, PREFER_LOW))) ? 1 : 0;
     
     >
     
     
     >
     
       so giving a negative resistance will not do what you want to do.
     
     
Shows how long its been since I've played around inside
the code... Ah well, so much for that syntatic suger.


Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                            +1 800 762 1582

    
    


More information about the crossfire mailing list