Changeset dcf8d2426124665b83cad9404f478f69914663a9

Show
Ignore:
Timestamp:
08/26/07 10:28:54 (1 year ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1188116934 +0200
git-parent:

[13940572ed2de0bc7430440f97209d8cf11f5a65]

git-author:
Sebastian Gift <Madison@gt-knm.de> 1188116934 +0200
Message:

Fuegt die ablative Panzerung in die Kampfanzeige ein.

Files:

Legend:

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

    r0de5534 rdcf8d24  
    183183                                        "shipinfo.type.image",          shipType.getPicture(), 
    184184                                        "shipinfo.type.hull",           Common.ln(shipType.getHull()), 
     185                                        "shipinfo.type.ablativeArmor", Common.ln(shipType.getAblativeArmor()), 
    185186                                        "shipinfo.type.shields",        Common.ln(shipType.getShields()), 
    186187                                        "shipinfo.type.cost",           shipType.getCost(), 
     
    189190                                        "shipinfo.type.weapons",        shipType.isMilitary(), 
    190191                                        "shipinfo.hull",                        Common.ln(ship.getShip().getHull()), 
     192                                        "shipinfo.ablativeArmor",       Common.ln(ship.getShip().getAblativeArmor()), 
    191193                                        "shipinfo.panzerung",           (int)Math.round(shipType.getPanzerung()*ship.getShip().getHull()/(double)shipType.getHull()), 
    192194                                        "shipinfo.shields",                     Common.ln(ship.getShip().getShields()), 
     
    206208                                        "shipinfo.tmp.comm",            ship.getComm(), 
    207209                                        "shipinfo.tmp.sensors",         ship.getSensors(), 
    208                                         "shipinfo.tmp.panzerung",       (int)Math.round(shipType.getPanzerung()*ship.getHull()/(double)shipType.getHull()) ); 
     210                                        "shipinfo.tmp.panzerung",       (int)Math.round(shipType.getPanzerung()*ship.getHull()/(double)shipType.getHull()),  
     211                                        "shipinfo.tmp.ablativeArmor", ((ship.getAction() & Battle.BS_DESTROYED) != 0 ? 0 : Common.ln(ship.getAblativeArmor()))); 
    209212 
    210213                // Anzahl 
     
    212215                        t.set_var(      "shipinfo.count",               ship.getCount(), 
    213216                                                "shipinfo.tmp.count",   ship.getNewCount() ); 
     217                } 
     218                 
     219                // Ablative Panzerung 
     220                if(ship.getShip().getAblativeArmor() < shipType.getAblativeArmor()/2) 
     221                { 
     222                        t.set_var("shipinfo.ablativeArmor.bad", 1); 
     223                } 
     224                else if(ship.getShip().getAblativeArmor() < shipType.getAblativeArmor())  
     225                { 
     226                        t.set_var("shipinfo.ablativeArmor.normal",1); 
     227                } 
     228                else  
     229                { 
     230                        t.set_var("shipinfo.ablativeArmor.good",1); 
    214231                } 
    215232 
  • templates/angriff.html

    r3924571 rdcf8d24  
    217217                                                {/endif} 
    218218                                                Zustand: 
     219                                                {if shipinfo.ablativeArmor.bad}<span style="color:#ff0000">{/endif} 
     220                                                {if shipinfo.ablativeArmor.normal}<span style="color:#ffff00">{/endif} 
     221                                                {if shipinfo.ablativeArmor.good}<span style="color:#00ff00">{/endif} 
     222                                                {shipinfo.ablativeArmor}/{shipinfo.type.ablativeArmor}</span>{if shipinfo.showtmp}&nbsp;({shipinfo.tmp.ablativeArmor}){/endif}<br /> 
    219223                                                {if shipinfo.hull.bad}<span style="color:#ff0000">{/endif} 
    220224                                                {if shipinfo.hull.normal}<span style="color:#ffff00">{/endif}