Changeset 2363413f0f8c27b963b10ead194f238c0b89bf63

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

[36f1a995b8f1bf74626122ef10e3bce9158c2c7c]

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

[gameplay] Schiffe in Reihe zwei benoetigen keine Verteidigung gegen Torpedos mehr

Files:

Legend:

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

    refaad01 r2363413  
    803803                                // Wenn wir allerdings nicht genug Crew haben koennen wir auch nicht alle Docks bedienen 
    804804                                docks = docks + (int)Math.floor(type.getJDocks() * crewfactor); 
    805                                 defcount = defcount + 1; 
     805                                // Einschraenkung, nur Schiffe in Reihe 1 muessen verteidigt werden 
     806                                if ((selectedShip.getAction() & Battle.BS_SECONDROW) != 0){ 
     807                                        defcount = defcount + 1; 
     808                                } 
    806809                                // Wenn Schiffe mit Docks Torpabwehr stellen, dann hinzufuegen 
    807810                                if(type.getTorpedoDef() > 0){ 
     
    819822                                docksuse = docksuse + 1; 
    820823                        }else if(type.getSize() > ShipType.SMALL_SHIP_MAXSIZE){ 
    821                                 // GKS ohne Docks muessen auch verteidigt werden 
    822                                 defcount = defcount + 1; 
     824                                // GKS in Reihe 1 ohne Docks muessen auch verteidigt werden 
     825                                if ((selectedShip.getAction() & Battle.BS_SECONDROW) != 0){ 
     826                                        defcount = defcount + 1; 
     827                                } 
    823828                                // Wenn Schiffe Torpabwehr stellen, dann hinzufuegen 
    824829                                if(type.getTorpedoDef() > 0){