Changeset dcf8d2426124665b83cad9404f478f69914663a9
- 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
| r0de5534 |
rdcf8d24 |
|
| 183 | 183 | "shipinfo.type.image", shipType.getPicture(), |
|---|
| 184 | 184 | "shipinfo.type.hull", Common.ln(shipType.getHull()), |
|---|
| | 185 | "shipinfo.type.ablativeArmor", Common.ln(shipType.getAblativeArmor()), |
|---|
| 185 | 186 | "shipinfo.type.shields", Common.ln(shipType.getShields()), |
|---|
| 186 | 187 | "shipinfo.type.cost", shipType.getCost(), |
|---|
| … | … | |
| 189 | 190 | "shipinfo.type.weapons", shipType.isMilitary(), |
|---|
| 190 | 191 | "shipinfo.hull", Common.ln(ship.getShip().getHull()), |
|---|
| | 192 | "shipinfo.ablativeArmor", Common.ln(ship.getShip().getAblativeArmor()), |
|---|
| 191 | 193 | "shipinfo.panzerung", (int)Math.round(shipType.getPanzerung()*ship.getShip().getHull()/(double)shipType.getHull()), |
|---|
| 192 | 194 | "shipinfo.shields", Common.ln(ship.getShip().getShields()), |
|---|
| … | … | |
| 206 | 208 | "shipinfo.tmp.comm", ship.getComm(), |
|---|
| 207 | 209 | "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()))); |
|---|
| 209 | 212 | |
|---|
| 210 | 213 | // Anzahl |
|---|
| … | … | |
| 212 | 215 | t.set_var( "shipinfo.count", ship.getCount(), |
|---|
| 213 | 216 | "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); |
|---|
| 214 | 231 | } |
|---|
| 215 | 232 | |
|---|
| r3924571 |
rdcf8d24 |
|
| 217 | 217 | {/endif} |
|---|
| 218 | 218 | 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} ({shipinfo.tmp.ablativeArmor}){/endif}<br /> |
|---|
| 219 | 223 | {if shipinfo.hull.bad}<span style="color:#ff0000">{/endif} |
|---|
| 220 | 224 | {if shipinfo.hull.normal}<span style="color:#ffff00">{/endif} |
|---|