Changeset efaad01fe8a6c6ad5f92f2c81419fda14091e7e6

Show
Ignore:
Timestamp:
05/15/08 15:48:27 (5 months ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1210859307 +0200
git-parent:

[1f26e7966a13dc7f6da8de1e805993bd916d7a3a]

git-author:
Simon Dietsch <rhonabwy@sternenbund.org> 1210859307 +0200
Message:

[bug] Hotfix ARMOR_REDUX

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/modules/ks/KSAttackAction.java

    rb742eed refaad01  
    391391                 
    392392                if(this.weapon.getAmmoType().length != 0){ 
    393                         if ( this.localweapon.get("armor_redux") != null){ 
    394                                 schaden = (int)Math.round(schaden/this.getPanzerung(eShip, eShipType)); 
    395                                  
    396                         } 
    397                 } 
    398  
    399                  
    400          
     393                        if ( this.localweapon.getBoolean("armor_redux")){ 
     394                                int tmppanzerung = this.getPanzerung(eShip, eShipType); 
     395                                if (tmppanzerung <= 0){ 
     396                                        tmppanzerung = 1; 
     397                                } 
     398                                schaden = (int)Math.round(schaden/tmppanzerung); 
     399                                 
     400                        } 
     401                } 
     402 
     403                 
    401404                if( (hit != 0) && (eShip.getShields() > 0) ) { 
    402405                        if( eShip.getShields() >= absSchaden*hit ) {