Changeset 6ef4a18b7fc39bc6572df9cf30ca7f9b5572ffbb

Show
Ignore:
Timestamp:
05/31/08 15:17:03 (4 months ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1212239823 +0200
git-parent:

[f0e1294e591dcb000f1f2b33e19cab6e697e0d70]

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

[feature] Ablative Panzerung wird in der Schiffsliste und im SRS angezeigt.

Files:

Legend:

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

    r52ba38b r6ef4a18  
    347347                                } 
    348348 
    349                                 t.setVar(       "ship.id",              ship.getId(), 
    350                                                         "ship.name",    Common._plaintitle(ship.getName()), 
    351                                                         "ship.battle",  ship.getBattle() != null ? ship.getBattle().getId() : 0, 
    352                                                         "ship.type",    ship.getType(), 
    353                                                         "ship.type.name",       shiptype.getNickname(), 
    354                                                         "ship.location",        Ships.getLocationText(ship.getLocation(),false), 
    355                                                         "ship.e",               ship.getEnergy(), 
    356                                                         "ship.hull",    Common.ln(ship.getHull()), 
    357                                                         "ship.hullcolor",       hullcolor, 
    358                                                         "ship.image",   shiptype.getPicture(), 
    359                                                         "ship.crew",    ship.getCrew(), 
    360                                                         "ship.alarm",   alarms[ship.getAlarm()], 
    361                                                         "ship.offi",    offi, 
    362                                                         "ship.crewcolor",       crewcolor, 
    363                                                         "ship.fleet",   ship.getFleet() != null ? ship.getFleet().getId() : 0, 
    364                                                         "ship.shields", Common.ln(ship.getShields()), 
    365                                                         "ship.werft",   shiptype.getWerft(), 
    366                                                         "ship.adocks",  shiptype.getADocks(), 
    367                                                         "ship.jdocks",  shiptype.getJDocks(), 
    368                                                         "ship.docks",   shiptype.getADocks() + shiptype.getJDocks(), 
     349                                t.setVar(       "ship.id",                              ship.getId(), 
     350                                                        "ship.name",                    Common._plaintitle(ship.getName()), 
     351                                                        "ship.battle",                  ship.getBattle() != null ? ship.getBattle().getId() : 0, 
     352                                                        "ship.type",                    ship.getType(), 
     353                                                        "ship.type.name",               shiptype.getNickname(), 
     354                                                        "ship.location",                Ships.getLocationText(ship.getLocation(),false), 
     355                                                        "ship.e",                               ship.getEnergy(), 
     356                                                        "ship.hull",                    Common.ln(ship.getHull()), 
     357                                                        "ship.hullcolor",               hullcolor, 
     358                                                        "ship.image",                   shiptype.getPicture(), 
     359                                                        "ship.crew",                    ship.getCrew(), 
     360                                                        "ship.alarm",                   alarms[ship.getAlarm()], 
     361                                                        "ship.offi",                    offi, 
     362                                                        "ship.crewcolor",               crewcolor, 
     363                                                        "ship.fleet",                   ship.getFleet() != null ? ship.getFleet().getId() : 0, 
     364                                                        "ship.ablativearmor",   Common.ln(ship.getAblativeArmor()), 
     365                                                        "ship.shields",                 Common.ln(ship.getShields()), 
     366                                                        "ship.werft",                   shiptype.getWerft(), 
     367                                                        "ship.adocks",                  shiptype.getADocks(), 
     368                                                        "ship.jdocks",                  shiptype.getJDocks(), 
     369                                                        "ship.docks",                   shiptype.getADocks() + shiptype.getJDocks(), 
    369370                                                        "schiffe.reslist", "" ); 
    370371                                 
  • src/net/driftingsouls/ds2/server/modules/schiffplugins/SensorsDefault.java

    r51bb341 r6ef4a18  
    541541                                                                "sships.type.id",               aship.getType(), 
    542542                                                                "sships.hull",                  Common.ln(aship.getHull()), 
     543                                                                "sships.ablativearmor", Common.ln(aship.getAblativeArmor()), 
    543544                                                                "sships.shields",               Common.ln(aship.getShields()), 
    544545                                                                "sships.fleet.id",              aship.getFleet() != null ? aship.getFleet().getId() : 0, 
  • templates/schiff.sensors.default.html

    r3d72fd9 r6ef4a18  
    260260                                <td class="show2"> 
    261261                                        <span class="smallfont"> 
    262                                                 {sships.hull}<br />{if sships.shields}<span style="color:orange">{sships.shields}</span>{/endif} 
     262                                                {sships.hull}<br />{if sships.ablativearmor}<span style="color:#808080">{sships.ablativearmor}</span>{/endif}<br />{if sships.shields}<span style="color:orange">{sships.shields}</span>{/endif} 
    263263                                        </span> 
    264264                                </td> 
  • templates/schiffe.html

    r89d279c r6ef4a18  
    125125                <td class="schiffData">{ship.location}</td> 
    126126                <td class="schiffData"><span style="color:{ship.hullcolor}">{ship.hull}</span> 
     127                {if ship.ablativearmor} 
     128                        <br /><span style="color:#808080"> {ship.ablativearmor}</span> 
     129                {else} 
     130                        {if ship.spec} 
     131                                <br /><span style="color:red"> 0</span> 
     132                        {/endif} 
     133                {/endif} 
    127134                {if ship.shields} 
    128135                        <br /><span style="color:orange"> {ship.shields}</span> 
     
    131138                                <br /><span style="color:red"> 0</span> 
    132139                        {/endif} 
    133                 {/endif} 
     140                {/endif}                
    134141                </td> 
    135142                <td class="schiffData"><span style="color:{ship.crewcolor}">{ship.crew}</span>{ship.offi}</td>